diff --git a/GoogleSignIn.podspec b/GoogleSignIn.podspec index c6d7c612..91c0350e 100644 --- a/GoogleSignIn.podspec +++ b/GoogleSignIn.podspec @@ -35,7 +35,6 @@ The Google Sign-In SDK allows users to sign in with their Google account from th s.osx.framework = 'AppKit' s.dependency 'AppAuth', '>= 1.7.3', '< 2.0' s.dependency 'GTMAppAuth', '>= 4.1.1', '< 5.0' - s.dependency 'GTMSessionFetcher/Core', '~> 3.3' s.resource_bundle = { 'GoogleSignIn' => ['GoogleSignIn/Sources/{Resources,Strings}/*'] } diff --git a/GoogleSignIn/Sources/GIDSignIn.m b/GoogleSignIn/Sources/GIDSignIn.m index 4b942ed9..0860ddb6 100644 --- a/GoogleSignIn/Sources/GIDSignIn.m +++ b/GoogleSignIn/Sources/GIDSignIn.m @@ -252,15 +252,21 @@ - (void)signInWithPresentingViewController:(UIViewController *)presentingViewCon - (void)signInWithPresentingViewController:(UIViewController *)presentingViewController hint:(nullable NSString *)hint additionalScopes:(nullable NSArray *)additionalScopes + additionalParams:(nullable NSDictionary *)extraParams completion:(nullable GIDSignInCompletion)completion { - GIDSignInInternalOptions *options = + GIDSignInInternalOptions *options = [GIDSignInInternalOptions defaultOptionsWithConfiguration:_configuration presentingViewController:presentingViewController loginHint:hint addScopesFlow:NO scopes:additionalScopes completion:completion]; - [self signInWithOptions:options]; + + if (extraParams != nil) { + options = [options optionsWithExtraParameters:extraParams forContinuation:NO]; + } + + [self signInWithOptions:options]; } - (void)signInWithPresentingViewController:(UIViewController *)presentingViewController diff --git a/GoogleSignIn/Sources/Public/GoogleSignIn/GIDSignIn.h b/GoogleSignIn/Sources/Public/GoogleSignIn/GIDSignIn.h index 2576b13d..3e34da2d 100644 --- a/GoogleSignIn/Sources/Public/GoogleSignIn/GIDSignIn.h +++ b/GoogleSignIn/Sources/Public/GoogleSignIn/GIDSignIn.h @@ -162,6 +162,7 @@ typedef NS_ERROR_ENUM(kGIDSignInErrorDomain, GIDSignInErrorCode) { - (void)signInWithPresentingViewController:(UIViewController *)presentingViewController hint:(nullable NSString *)hint additionalScopes:(nullable NSArray *)additionalScopes + additionalParams:(nullable NSDictionary *)extraParams completion: (nullable void (^)(GIDSignInResult *_Nullable signInResult, NSError *_Nullable error))completion