Skip to content

Commit 8e2281b

Browse files
committed
Fixes iOS and macOS unit tests
1 parent a755fcc commit 8e2281b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

auth0_flutter/darwin/auth0_flutter/Package.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ let package = Package(
1414
.package(url: "https://github.com/auth0/Auth0.swift", exact: "2.18.0"),
1515
.package(url: "https://github.com/auth0/JWTDecode.swift", exact: "3.3.0"),
1616
.package(url: "https://github.com/auth0/SimpleKeychain", exact: "1.3.0"),
17+
.package(name: "FlutterFramework", path: "../FlutterFramework"),
1718
],
1819
targets: [
1920
.target(
@@ -22,6 +23,7 @@ let package = Package(
2223
.product(name: "Auth0", package: "Auth0.swift"),
2324
.product(name: "JWTDecode", package: "JWTDecode.swift"),
2425
.product(name: "SimpleKeychain", package: "SimpleKeychain"),
26+
.product(name: "FlutterFramework", package: "FlutterFramework"),
2527
],
2628
path: "Sources/auth0_flutter"
2729
),

auth0_flutter/example/ios/Tests/Mocks.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ class SpyPluginRegistrar: NSObject, FlutterPluginRegistrar {
114114

115115
func addApplicationDelegate(_ delegate: FlutterPlugin) {}
116116

117+
func addSceneDelegate(_ delegate: FlutterSceneLifeCycleDelegate) {}
118+
117119
func register(_ factory: FlutterPlatformViewFactory,
118120
withId: String,
119121
gestureRecognizersBlockingPolicy: FlutterPlatformViewGestureRecognizersBlockingPolicy) {}

0 commit comments

Comments
 (0)