Skip to content

Commit

Permalink
Update FIRAuthInterop to use _Nullable_result annotation (#12841)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard authored Apr 23, 2024
1 parent a0bdbc0 commit 88c47ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions FirebaseAuth/Interop/FIRAuthInterop.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
/** @typedef FIRTokenCallback
@brief The type of block which gets called when a token is ready.
*/
typedef void (^FIRTokenCallback)(NSString *_Nullable token, NSError *_Nullable error)
typedef void (^FIRTokenCallback)(NSString *_Nullable_result token, NSError *_Nullable error)
NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead.");

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

/// Get the current Auth user's UID. Returns nil if there is no user signed in.
Expand Down
2 changes: 1 addition & 1 deletion FirebaseFunctions.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Cloud Functions for Firebase.
s.dependency 'FirebaseCore', '~> 10.0'
s.dependency 'FirebaseCoreExtension', '~> 10.0'
s.dependency 'FirebaseAppCheckInterop', '~> 10.10'
s.dependency 'FirebaseAuthInterop', '~> 10.0'
s.dependency 'FirebaseAuthInterop', '~> 10.25'
s.dependency 'FirebaseMessagingInterop', '~> 10.0'
s.dependency 'FirebaseSharedSwift', '~> 10.0'
s.dependency 'GTMSessionFetcher/Core', '>= 2.1', '< 4.0'
Expand Down
2 changes: 1 addition & 1 deletion FirebaseStorage.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Firebase Storage provides robust, secure file uploads and downloads from Firebas
]

s.dependency 'FirebaseAppCheckInterop', '~> 10.0'
s.dependency 'FirebaseAuthInterop', '~> 10.0'
s.dependency 'FirebaseAuthInterop', '~> 10.25'
s.dependency 'FirebaseCore', '~> 10.0'
s.dependency 'FirebaseCoreExtension', '~> 10.0'
s.dependency 'GTMSessionFetcher/Core', '>= 2.1', '< 4.0'
Expand Down

0 comments on commit 88c47ba

Please sign in to comment.