This repository was archived by the owner on Feb 5, 2025. It is now read-only.
Update GoogleSignIn to 6.0.1 #610
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Closes #609
This updates
GoogleSignInto version6.0.1, enabling support for M1. Some adjustments were required due to breaking changes introduced in version6.0.0. Google has conveniently provided a migration checklist:Update all
[GIDSignIn sharedInstance](orGIDSignIn.sharedInstance()) calls toGIDSignIn.sharedInstanceproperty accesses.Move all client configuration (client IDs, etc.) to a
GIDConfigurationobject.Update calls to removed methods to their new equivalents:
signInsignInWithConfiguration:presentingViewController:callback:signInmethod inGIDSignInDelegateextension is migrated.restorePreviousSignInrestorePreviousSignInWithCallback:disconnectdisconnectWithCallBack:GIDSignInDelegateis not implemented, so there's no need to define the callback.getTokensWithHandler:doWithFreshTokens:refreshTokensWithHandler:doWithFreshTokensRemove all references to the
GIDSignInDelegateprotocol and its methods.signIn:didSignInForUser:withError:to the callback block ofsignInWithConfiguration:presentingViewController:callback:.signIn:didDisconnectWithUser:withError:to the callback block ofdisconnectWithCallback:.Manually connect
GIDSignInButtonto a method that callssignInWithConfiguration:presentingViewController:callback:using anIBActionor similar.Todos:
1.41.0-beta.2