File tree Expand file tree Collapse file tree 2 files changed +31
-34
lines changed
Expand file tree Collapse file tree 2 files changed +31
-34
lines changed Original file line number Diff line number Diff line change 1+ # How To Install
2+ ### Install by add directly in ` manifest.json ` in folder ` Packages/manifest.json `
3+ - for version ` 1.0.5 `
4+ ``` json
5+ "com.google.signin" : " https://github.com/unity-package/google-signin-unity.git#1.0.5" ,
6+ ```
7+ - dependency ` external-dependency-manager 1.2.186 `
8+ ``` json
9+ "com.unity.nuget.newtonsoft-json" : " 3.2.1" ,
10+ "com.google.external-dependency-manager" : " https://github.com/googlesamples/unity-jar-resolver.git?path=upm#v1.2.186" ,
11+ ```
112# Forked to upgrade base library to newer version
213
314https://developer.android.com/identity/sign-in/legacy-gsi-migration
@@ -25,20 +36,6 @@ Also, this new system seem like it did not support email hint. And now require W
2536 };
2637```
2738
28- Tested in unity 2021.3.21 and unity 6000.0.5
29-
30- Add UPM dependency with branch tag ` https://github.com/Thaina/google-signin-unity.git#newmigration `
31-
32- ``` json
33- {
34- "dependencies" : {
35- "com.google.external-dependency-manager" : " https://github.com/googlesamples/unity-jar-resolver.git?path=upm" ,
36- "com.google.signin" : " https://github.com/Thaina/google-signin-unity.git#newmigration" ,
37- ...
38- }
39- }
40- ```
41-
4239Also, [ New version of iOS recommend] ( https://developers.google.com/identity/sign-in/ios/quick-migration-guide#google_sign-in_sdk_v700 ) that we should set ` GIDClientID ` and ` GIDServerClientID ` into Info.plist
4340
4441So I have add an editor tool ` PListProcessor ` that look for plist files in the project, extract ` CLIENT_ID ` and ` WEB_CLIENT_ID ` property of the plist which contain the ` BUNDLE_ID ` with the same name as bundle identifier of the project
Original file line number Diff line number Diff line change 11{
2- "name" : " com.google.signin" ,
3- "displayName" : " Google Signin" ,
4- "version" : " 0.9.0 " ,
5- "unity" : " 2021.3" ,
6- "description" : " Google Signin for android, ios ,desktop" ,
7- "keywords" : [
8- " google" ,
9- " signin"
10- ],
11- "dependencies" : {
12- "com.unity.nuget.newtonsoft-json" : " 3.2.1" ,
13- "com.google.external-dependency-manager" : " 1.2.175 "
14- },
15- "samples" : [
16- {
17- "displayName" : " SignIn Sample" ,
18- "description" : " Simple SignIn Sample" ,
19- "path" : " Samples~/SignInSample"
20- }
21- ]
2+ "name" : " com.google.signin" ,
3+ "displayName" : " Google Signin" ,
4+ "version" : " 1.0.5 " ,
5+ "unity" : " 2021.3" ,
6+ "description" : " Google Signin for android, ios ,desktop" ,
7+ "keywords" : [
8+ " google" ,
9+ " signin"
10+ ],
11+ "dependencies" : {
12+ "com.unity.nuget.newtonsoft-json" : " 3.2.1" ,
13+ "com.google.external-dependency-manager" : " https://github.com/googlesamples/unity-jar-resolver.git?path=upm#v1.2.186 "
14+ },
15+ "samples" : [
16+ {
17+ "displayName" : " SignIn Sample" ,
18+ "description" : " Simple SignIn Sample" ,
19+ "path" : " Samples~/SignInSample"
20+ }
21+ ]
2222}
You can’t perform that action at this time.
0 commit comments