Skip to content

Commit 9ac80e9

Browse files
committed
changes to get ready for review
1 parent ec65658 commit 9ac80e9

4 files changed

Lines changed: 12 additions & 11 deletions

File tree

GoogleSignIn/Sources/GIDSignIn.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ - (instancetype)initWithKeychainStore:(GTMKeychainStore *)keychainStore {
560560
initWithAuthorizationEndpoint:[NSURL URLWithString:authorizationEnpointURL]
561561
tokenEndpoint:[NSURL URLWithString:tokenEndpointURL]];
562562
_keychainStore = keychainStore;
563-
// Perform migration of auth state from old (before 5.0) versions of the SDK if needed.
563+
// Perform migration of auth state from old versions of the SDK if needed.
564564
GIDAuthStateMigration *migration =
565565
[[GIDAuthStateMigration alloc] initWithKeychainStore:_keychainStore];
566566
[migration migrateIfNeededWithTokenURL:_appAuthConfiguration.tokenEndpoint

GoogleSignIn/Tests/Unit/GIDAuthStateMigrationTest.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ - (void)testMigrateIfNeeded_NoPreviousMigration {
135135
[[[_mockUserDefaults expect] andReturnValue:@NO] boolForKey:kMigrationCheckPerformedKey];
136136
[[_mockUserDefaults expect] setBool:YES forKey:kMigrationCheckPerformedKey];
137137

138+
[[_mockGTMKeychainStore expect] saveAuthSession:OCMOCK_ANY error:OCMArg.anyObjectRef];
139+
138140
#if TARGET_OS_OSX || TARGET_OS_MACCATALYST
139141
[[[_mockGTMKeychainStore expect] andReturn:kKeychainName] itemName];
140142
OIDAuthState *authState = [OIDAuthState testInstance];
@@ -146,10 +148,8 @@ - (void)testMigrateIfNeeded_NoPreviousMigration {
146148
[self setUpCommonExtractAuthorizationMocksWithFingerPrint:kSavedFingerprint];
147149
#endif
148150

149-
[[_mockGTMKeychainStore expect] saveAuthSession:OCMOCK_ANY error:OCMArg.anyObjectRef];
150-
151151
GIDAuthStateMigration *migration =
152-
[[GIDAuthStateMigration alloc] initWithKeychainStore:_mockGTMKeychainStore];
152+
[[GIDAuthStateMigration alloc] initWithKeychainStore:_mockGTMKeychainStore];
153153
[migration migrateIfNeededWithTokenURL:[NSURL URLWithString:kTokenURL]
154154
callbackPath:kCallbackPath
155155
keychainName:kKeychainName

Samples/Swift/DaysUntilBirthday/DaysUntilBirthday.xcodeproj/project.pbxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 54;
6+
objectVersion = 52;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -663,7 +663,7 @@
663663
COMBINE_HIDPI_IMAGES = YES;
664664
CURRENT_PROJECT_VERSION = 1;
665665
DEVELOPMENT_ASSET_PATHS = "\"macOS/Preview Content\"";
666-
DEVELOPMENT_TEAM = V5B29DAW4U;
666+
DEVELOPMENT_TEAM = "";
667667
ENABLE_PREVIEWS = YES;
668668
GENERATE_INFOPLIST_FILE = YES;
669669
INFOPLIST_FILE = macOS/Info.plist;
@@ -674,7 +674,7 @@
674674
);
675675
MACOSX_DEPLOYMENT_TARGET = 12.0;
676676
MARKETING_VERSION = 1.0;
677-
PRODUCT_BUNDLE_IDENTIFIER = Google.camdenking.DaysUntilBirthdayOnMac;
677+
PRODUCT_BUNDLE_IDENTIFIER = Google.DaysUntilBirthdayOnMac;
678678
PRODUCT_NAME = "$(TARGET_NAME)";
679679
PROVISIONING_PROFILE_SPECIFIER = "";
680680
SDKROOT = macosx;
@@ -695,7 +695,7 @@
695695
COMBINE_HIDPI_IMAGES = YES;
696696
CURRENT_PROJECT_VERSION = 1;
697697
DEVELOPMENT_ASSET_PATHS = "\"macOS/Preview Content\"";
698-
DEVELOPMENT_TEAM = V5B29DAW4U;
698+
DEVELOPMENT_TEAM = "";
699699
ENABLE_PREVIEWS = YES;
700700
GENERATE_INFOPLIST_FILE = YES;
701701
INFOPLIST_FILE = macOS/Info.plist;
@@ -706,7 +706,7 @@
706706
);
707707
MACOSX_DEPLOYMENT_TARGET = 12.0;
708708
MARKETING_VERSION = 1.0;
709-
PRODUCT_BUNDLE_IDENTIFIER = Google.camdenking.DaysUntilBirthdayOnMac;
709+
PRODUCT_BUNDLE_IDENTIFIER = Google.DaysUntilBirthdayOnMac;
710710
PRODUCT_NAME = "$(TARGET_NAME)";
711711
PROVISIONING_PROFILE_SPECIFIER = "";
712712
SDKROOT = macosx;

Samples/Swift/DaysUntilBirthday/macOS/Info.plist

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
</array>
1616
</dict>
1717
</array>
18-
<key>GIDClientID</key>
19-
<string>687389107077-8qr6dh8fr4uaja89sdr5ieqb7mep04qv.apps.googleusercontent.com</string>
18+
<!-- Do not use this client ID in your own app, it will only work for this sample. -->
19+
<key>GIDClientID</key>
20+
<string>687389107077-8qr6dh8fr4uaja89sdr5ieqb7mep04qv.apps.googleusercontent.com</string>
2021
</dict>
2122
</plist>

0 commit comments

Comments
 (0)