|
27 | 27 | #import "GoogleSignIn/Sources/GIDCallbackQueue.h" |
28 | 28 | #import "GoogleSignIn/Sources/GIDScopes.h" |
29 | 29 | #import "GoogleSignIn/Sources/GIDSignInCallbackSchemes.h" |
| 30 | +#import "GoogleSignIn/Sources/GIDAuthStateMigration.h" |
30 | 31 | #if TARGET_OS_IOS && !TARGET_OS_MACCATALYST |
31 | 32 | #import <AppCheckCore/GACAppCheckToken.h> |
32 | 33 | #import "GoogleSignIn/Sources/GIDAppCheck/Implementations/GIDAppCheck.h" |
33 | 34 | #import "GoogleSignIn/Sources/GIDAppCheck/UI/GIDActivityIndicatorViewController.h" |
34 | | -#import "GoogleSignIn/Sources/GIDAuthStateMigration.h" |
35 | 35 | #import "GoogleSignIn/Sources/GIDEMMErrorHandler.h" |
36 | 36 | #import "GoogleSignIn/Sources/GIDTimedLoader/GIDTimedLoader.h" |
37 | 37 | #endif // TARGET_OS_IOS && !TARGET_OS_MACCATALYST |
@@ -560,15 +560,13 @@ - (instancetype)initWithKeychainStore:(GTMKeychainStore *)keychainStore { |
560 | 560 | initWithAuthorizationEndpoint:[NSURL URLWithString:authorizationEnpointURL] |
561 | 561 | tokenEndpoint:[NSURL URLWithString:tokenEndpointURL]]; |
562 | 562 | _keychainStore = keychainStore; |
563 | | -#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST |
564 | 563 | // Perform migration of auth state from old (before 5.0) versions of the SDK if needed. |
565 | 564 | GIDAuthStateMigration *migration = |
566 | 565 | [[GIDAuthStateMigration alloc] initWithKeychainStore:_keychainStore]; |
567 | 566 | [migration migrateIfNeededWithTokenURL:_appAuthConfiguration.tokenEndpoint |
568 | 567 | callbackPath:kBrowserCallbackPath |
569 | 568 | keychainName:kGTMAppAuthKeychainName |
570 | 569 | isFreshInstall:isFreshInstall]; |
571 | | -#endif // TARGET_OS_IOS && !TARGET_OS_MACCATALYST |
572 | 570 | } |
573 | 571 | return self; |
574 | 572 | } |
|
0 commit comments