Skip to content

Commit 88c47ba

Browse files
authored
Update FIRAuthInterop to use _Nullable_result annotation (#12841)
1 parent a0bdbc0 commit 88c47ba

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

FirebaseAuth/Interop/FIRAuthInterop.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
2424
/** @typedef FIRTokenCallback
2525
@brief The type of block which gets called when a token is ready.
2626
*/
27-
typedef void (^FIRTokenCallback)(NSString *_Nullable token, NSError *_Nullable error)
27+
typedef void (^FIRTokenCallback)(NSString *_Nullable_result token, NSError *_Nullable error)
2828
NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead.");
2929

3030
/// Common methods for Auth interoperability.
@@ -34,7 +34,7 @@ NS_SWIFT_NAME(AuthInterop)
3434
/// Retrieves the Firebase authentication token, possibly refreshing it if it has expired.
3535
- (void)getTokenForcingRefresh:(BOOL)forceRefresh
3636
withCallback:
37-
(void (^)(NSString *_Nullable token, NSError *_Nullable error))callback
37+
(void (^)(NSString *_Nullable_result token, NSError *_Nullable error))callback
3838
NS_SWIFT_NAME(getToken(forcingRefresh:completion:));
3939

4040
/// Get the current Auth user's UID. Returns nil if there is no user signed in.

FirebaseFunctions.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Cloud Functions for Firebase.
4040
s.dependency 'FirebaseCore', '~> 10.0'
4141
s.dependency 'FirebaseCoreExtension', '~> 10.0'
4242
s.dependency 'FirebaseAppCheckInterop', '~> 10.10'
43-
s.dependency 'FirebaseAuthInterop', '~> 10.0'
43+
s.dependency 'FirebaseAuthInterop', '~> 10.25'
4444
s.dependency 'FirebaseMessagingInterop', '~> 10.0'
4545
s.dependency 'FirebaseSharedSwift', '~> 10.0'
4646
s.dependency 'GTMSessionFetcher/Core', '>= 2.1', '< 4.0'

FirebaseStorage.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Firebase Storage provides robust, secure file uploads and downloads from Firebas
3838
]
3939

4040
s.dependency 'FirebaseAppCheckInterop', '~> 10.0'
41-
s.dependency 'FirebaseAuthInterop', '~> 10.0'
41+
s.dependency 'FirebaseAuthInterop', '~> 10.25'
4242
s.dependency 'FirebaseCore', '~> 10.0'
4343
s.dependency 'FirebaseCoreExtension', '~> 10.0'
4444
s.dependency 'GTMSessionFetcher/Core', '>= 2.1', '< 4.0'

0 commit comments

Comments
 (0)