mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-09 22:36:01 +05:45
[Auth] Fix 'PhoneAuthProviderFake.swift' following Swift 6 changes (#14895)
This commit is contained in:
1 parent
c8a6c0a4cc
commit
e5933a02c2
2 files changed
+10
-9
No files matched your search
@@ -33,12 +33,13 @@ on:
|
||||
# Rebuild on Ruby infrastructure changes.
|
||||
- 'Gemfile'
|
||||
|
||||
# Dependencies (Disabled to avoid building Firestore in presubmits)
|
||||
# - 'FirebaseCore/**'
|
||||
# - 'FirebaseAuth/**'
|
||||
# - 'FirebaseFunctions/**'
|
||||
# - 'Firestore/**'
|
||||
# - 'FirebaseStorage/**'
|
||||
# Dependencies
|
||||
- 'FirebaseCore/**'
|
||||
- 'FirebaseTestingSupport/**'
|
||||
- 'FirebaseAuth/**'
|
||||
- 'FirebaseFunctions/**'
|
||||
- 'FirebaseStorage/**'
|
||||
# - 'Firestore/**' # (Disabled to avoid building Firestore in presubmits)
|
||||
|
||||
schedule:
|
||||
# Run every day at 11pm (PST) - cron uses UTC times
|
||||
|
||||
@@ -16,16 +16,16 @@
|
||||
import Foundation
|
||||
|
||||
/// A fake object to replace a real `AuthAPNSTokenManager` in tests.
|
||||
public class PhoneAuthProviderFake: PhoneAuthProvider {
|
||||
public class PhoneAuthProviderFake: PhoneAuthProvider, @unchecked Sendable {
|
||||
override init(auth: Auth) {
|
||||
super.init(auth: auth)
|
||||
}
|
||||
|
||||
var verifyPhoneNumberHandler: (((String?, Error?) -> Void) -> Void)?
|
||||
var verifyPhoneNumberHandler: ((@MainActor (String?, Error?) -> Void) -> Void)?
|
||||
|
||||
override public func verifyPhoneNumber(_ phoneNumber: String,
|
||||
uiDelegate: AuthUIDelegate? = nil,
|
||||
completion: ((_: String?, _: Error?) -> Void)?) {
|
||||
completion: (@MainActor (String?, Error?) -> Void)?) {
|
||||
if let verifyPhoneNumberHandler,
|
||||
let completion {
|
||||
verifyPhoneNumberHandler(completion)
|
||||
|
||||
Reference in new issue
Block a user