Skip to content

Commit 315800e

Browse files
committed
Updated firebase version to 11.
1 parent 71e364f commit 315800e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ let package = Package(
2828
)
2929
],
3030
dependencies: [
31-
.package(url: "https://github.com/firebase/firebase-ios-sdk", .exactItem("10.29.0")),
31+
.package(url: "https://github.com/firebase/firebase-ios-sdk", .upToNextMajor(from: "11.0.0")),
3232
.package(url: "https://github.com/google/GoogleSignIn-iOS", .upToNextMajor(from: "7.1.0")),
3333
.package(url: "https://github.com/sparrowcode/SwiftBoost", .upToNextMajor(from: "4.0.9"))
3434
],

Sources/FirewrapAuth/Error/FirewrapDeleteProfileError.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ public enum FirewrapDeleteProfileError: Error {
1212
guard error.domain == AuthErrorDomain else{
1313
return nil
1414
}
15-
let code = AuthErrorCode.init(_nsError: error)
16-
switch code.code {
15+
#warning("here migrated to firebase 11 so need test if code unwrap corectly")
16+
let authErrorCode = AuthErrorCode.init(rawValue: error.code)
17+
switch authErrorCode {
1718
case .requiresRecentLogin:
1819
return .requiredLogin
1920
default:

Sources/FirewrapDatabase/FirewrapSource.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if os(iOS)
12
import Foundation
23
import FirebaseFirestore
34

@@ -15,3 +16,4 @@ public enum FirewrapSource {
1516
}
1617
}
1718
}
19+
#endif

0 commit comments

Comments
 (0)