Skip to content

Commit 6cabb4d

Browse files
author
盧彥辰
committed
feat: 修改GoogleSignIn.mm及GoogleSignInAppController.mm
1. CLIENT_ID 改為 ios 的 client id issue #6
1 parent e3d61bb commit 6cabb4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Assets/Plugins/iOS/GoogleSignIn/GoogleSignIn.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ bool GoogleSignIn_Configure(void *unused, bool useGameSignIn,
225225
void *GoogleSignIn_SignIn() {
226226
SignInResult *result = startSignIn();
227227
if (!result) {
228-
[[GIDSignIn sharedInstance] setClientID:@"303413321002-osmliudj71vc5e0lqjd8l6mb137v0clj.apps.googleusercontent.com"];
228+
[[GIDSignIn sharedInstance] setClientID:@"303413321002-01cqhk44kfd7o0lh4168805744fcobqd.apps.googleusercontent.com"];
229229
[[GIDSignIn sharedInstance] signIn];
230230
result = currentResult_.get();
231231
}
@@ -249,7 +249,7 @@ bool GoogleSignIn_Configure(void *unused, bool useGameSignIn,
249249
SignInResult *result = startSignIn();
250250
if (!result) {
251251
[GIDSignIn sharedInstance].presentingViewController = UnityGetGLViewController();
252-
[[GIDSignIn sharedInstance] setClientID:@"303413321002-osmliudj71vc5e0lqjd8l6mb137v0clj.apps.googleusercontent.com"];
252+
[[GIDSignIn sharedInstance] setClientID:@"303413321002-01cqhk44kfd7o0lh4168805744fcobqd.apps.googleusercontent.com"];
253253
[[GIDSignIn sharedInstance] restorePreviousSignIn];
254254
result = currentResult_.get();
255255
}

Assets/Plugins/iOS/GoogleSignIn/GoogleSignInAppController.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ - (BOOL)GoogleSignInAppController:(UIApplication *)application
6868
NSString *path = [[NSBundle mainBundle] pathForResource:@"GoogleService-Info"
6969
ofType:@"plist"];
7070
NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:path];
71-
NSString *clientId = [dict objectForKey:@"303413321002-osmliudj71vc5e0lqjd8l6mb137v0clj.apps.googleusercontent.com"];
71+
NSString *clientId = [dict objectForKey:@"303413321002-01cqhk44kfd7o0lh4168805744fcobqd.apps.googleusercontent.com"];
7272
/*修改前版本*/
7373
//NSString *clientId = [dict objectForKey:@"CLIENT_ID"];
7474

0 commit comments

Comments
 (0)