- Google Sign-In for iOS is now open source.
- Swift Package Manager support.
- Support for Simulator on M1 Macs.
- API surface updates
GIDSignInsharedInstanceis now a class property.signInis nowsignInWithConfiguration:presentingViewController:callback:and always requests basic profile scopes.addScopes:presentingViewController:callback:is the new way to add scopes beyond basic profile to a currently signed-in user.restorePreviousSignInis nowrestorePreviousSignInWithCallback:.disconnectis nowdisconnectWithCallback:.- The
GIDSignInDelegateprotocol has been removed in favor ofGIDSignInCallbackandGIDDisconnectCallbackblocks. - All sign-in flow configuration properties have been moved to
GIDConfiguration.
- The
GIDConfigurationclass had been added to represent the configuration needed to sign in a user. GIDAuthenticationgetTokensWithHandler:is nowdoWithFreshTokens:.- The
GIDAuthenticationHandlertypedef has been renamedGIDAuthenticationAction. refreshTokensWithHandler:has been removed, usedoWithFreshTokens:instead.
GIDSignInButtonno longer makes calls toGIDSignIninternally and will need to be wired to anIBActionor similar in order for you to callsignInWithConfiguration:presentingViewController:callback:to initiate a sign-in flow.