|
|
@@ -259,7 +259,8 @@ static NSString * const kClientID =
|
|
|
- (IBAction)signIn:(id)sender {
|
|
|
[GIDSignIn.sharedInstance signInWithConfiguration:_configuration
|
|
|
presentingViewController:self
|
|
|
- completion:^(GIDGoogleUser *user, NSError *error) {
|
|
|
+ callback:^(GIDGoogleUser * _Nullable user,
|
|
|
+ NSError * _Nullable error) {
|
|
|
if (error) {
|
|
|
self->_signInAuthStatus.text =
|
|
|
[NSString stringWithFormat:@"Status: Authentication error: %@", error];
|
|
|
@@ -277,7 +278,7 @@ static NSString * const kClientID =
|
|
|
}
|
|
|
|
|
|
- (IBAction)disconnect:(id)sender {
|
|
|
- [GIDSignIn.sharedInstance disconnectWithCompletion:^(NSError *error) {
|
|
|
+ [GIDSignIn.sharedInstance disconnectWithCallback:^(NSError * _Nullable error) {
|
|
|
if (error) {
|
|
|
self->_signInAuthStatus.text = [NSString stringWithFormat:@"Status: Failed to disconnect: %@",
|
|
|
error];
|
|
|
@@ -292,7 +293,8 @@ static NSString * const kClientID =
|
|
|
- (IBAction)addScopes:(id)sender {
|
|
|
[GIDSignIn.sharedInstance addScopes:@[ @"https://www.googleapis.com/auth/user.birthday.read" ]
|
|
|
presentingViewController:self
|
|
|
- completion:^(GIDGoogleUser *user, NSError *error) {
|
|
|
+ callback:^(GIDGoogleUser * _Nullable user,
|
|
|
+ NSError * _Nullable error) {
|
|
|
if (error) {
|
|
|
self->_signInAuthStatus.text = [NSString stringWithFormat:@"Status: Failed to add scopes: %@",
|
|
|
error];
|