-
Notifications
You must be signed in to change notification settings - Fork 1.6k
watchOS support for FirebaseAuth #5585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
33b8b55
to
576feb3
Compare
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
Co-authored-by: Harri Hohteri <[email protected]>
576feb3
to
8409101
Compare
In this PR or after, please restore the FirebaseStorage watchOS |
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) ℹ️ Googlers: Go here for more info. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@hohteri apologies for the trouble, but do you mind commenting here with only " |
@googlebot I consent. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Tested with a small sample app in SwiftUI with anonymous sign in, email/password sign up and email/password log in.
f16c933
to
d0468ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
- (FIRUser *)getStoredUserForAccessGroup:(NSString *)accessGroup | ||
projectIdentifier:(NSString *)projectIdentifier | ||
error:(NSError *_Nullable *_Nullable)outError; | ||
- (FIRUser *_Nullable)getStoredUserForAccessGroup:(NSString *)accessGroup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: - (nullable FIRUser *)...
looks more usual to me but I don't mind leaving it as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally had it to match the above function, but I'll change them both to nullable
.
FirebaseAuth.podspec
Outdated
@@ -47,10 +48,12 @@ supports email and password accounts, as well as several 3rd party authenticatio | |||
s.ios.framework = 'SafariServices' | |||
s.dependency 'FirebaseCore', '~> 6.8' | |||
s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 6.5' | |||
s.dependency 'GoogleUtilities/Environment', '~> 6.5' | |||
s.dependency 'GoogleUtilities/Environment', '~> 6.6' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder is there an issue with bumping GoogleUtilities version in this PR as well? Since we use local specs in the tests it should not break anything.
Would you like to update GoogleUtilities changelog in the PR as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep GoogleUtilities should bump to 6.7 here and in its podspec for the new API
FirebaseAuth.podspec
Outdated
@@ -47,10 +48,12 @@ supports email and password accounts, as well as several 3rd party authenticatio | |||
s.ios.framework = 'SafariServices' | |||
s.dependency 'FirebaseCore', '~> 6.8' | |||
s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 6.5' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, versions of all GoogleUtilities dependencies should be updated
@@ -1,3 +1,6 @@ | |||
# Unreleased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be 6.7.0 for sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline - will leave it as is until it's released.
@@ -56,12 +60,21 @@ typedef void (^FIRAuthAPNSTokenCallback)(FIRAuthAPNSToken *_Nullable token, | |||
*/ | |||
- (instancetype)init NS_UNAVAILABLE; | |||
|
|||
/** @fn initWithApplication:bundle | |||
#if TARGET_OS_WATCH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like GDTCORPlatform to abstract WKExtension
and UIApplication
might be cleaner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out these weren't actually needed - only for Phone Auth which was disabled already 😅 removed. Thanks for making me look a second time!
This is a redo of #5585, which was a re-implementation of #4632. This ignores any changes to GoogleUtilities, those will be done in a later PR to create a common KeyedArchiver utility. Co-authored-by: Harri Hohteri <[email protected]>
Closing in favour of the more up to date #6260 |
* watchOS support for FirebaseAuth. This is a redo of #5585, which was a re-implementation of #4632. This ignores any changes to GoogleUtilities, those will be done in a later PR to create a common KeyedArchiver utility. Co-authored-by: Harri Hohteri <[email protected]> * Fixed lint errors, added GHA tests. * Enabled GHA for PRs as well. Co-authored-by: Harri Hohteri <[email protected]>
This is a re-implementation of #4632 on top of master, along with some small improvements in code structure that were needed after some refactoring.
Credit goes to @hohteri for doing this work in the first place!
Fix #4621