Google Signin Leaderboards fixed
parent
7282422d5e
commit
863458846e
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: a55ee4efaad27d948ba5f03fc6d7bc80
|
guid: c86158f937dbef3469d4bed1a9cbf3f1
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 942372e0a39170840b5107589bbc8855
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0349fcb1e5762334391642aca2cd6ec9
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d29c0cdd54ad5bf42961a942a27587b6
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 570dd445e1db5f043b0bed2a4b26a858
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 81ba2e5a7b10b804b9b3f8f44cd08d65
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4b12ef651963e1647bcf34b06d452359
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3fbcb798450a9da458bd1ff200efc8e4
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 546d95353e1ea6741b19368cca1ccb30
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d3a26cbe3cb25014bbe2889e4c379bcc
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
@ -0,0 +1,29 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ed2ae7de4097e26439f6aef5df2ce991
|
||||||
|
labels:
|
||||||
|
- gpsr
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>com.google.signin</groupId>
|
||||||
|
<artifactId>google-signin-support</artifactId>
|
||||||
|
<version>1.0.4</version>
|
||||||
|
<packaging>aar</packaging>
|
||||||
|
</project>
|
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1847715e547531b4d91b87619689c0f1
|
||||||
|
labels:
|
||||||
|
- gpsr
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a089c79cc334748a5a29c5f219b7cfd4
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1490807626
|
||||||
|
licenseType: Pro
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a7e77ece57ef34772969fad4915b1a4c
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1490978071
|
||||||
|
licenseType: Pro
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 938014c9994164100b26d82840a88fbb
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<dependencies>
|
||||||
|
<!-- Internal library dependency generated at build time. -->
|
||||||
|
<androidPackages>
|
||||||
|
<androidPackage spec="com.google.signin:google-signin-support:1.0.4">
|
||||||
|
<repositories>
|
||||||
|
<repository>Assets/GoogleSignIn/Editor/m2repository</repository>
|
||||||
|
</repositories>
|
||||||
|
</androidPackage>
|
||||||
|
</androidPackages>
|
||||||
|
</dependencies>
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e8689106c65f445c19cec6044d615c19
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,33 @@
|
|||||||
|
Assets/PlayServicesResolver/Editor/Google.VersionHandlerImpl_v1.2.89.0.dll
|
||||||
|
Assets/PlayServicesResolver/Editor/Google.IOSResolver_v1.2.89.0.dll
|
||||||
|
Assets/PlayServicesResolver/Editor/Google.VersionHandler.dll
|
||||||
|
Assets/PlayServicesResolver/Editor/Google.JarResolver_v1.2.89.0.dll
|
||||||
|
Assets/Plugins/iOS/GoogleSignIn/GoogleSignInAppController.mm
|
||||||
|
Assets/Plugins/iOS/GoogleSignIn/GoogleSignInAppController.h
|
||||||
|
Assets/Plugins/iOS/GoogleSignIn/GoogleSignIn.h
|
||||||
|
Assets/Plugins/iOS/GoogleSignIn/GoogleSignIn.mm
|
||||||
|
Assets/Parse/LICENSE
|
||||||
|
Assets/Parse/Plugins/Unity.Compat.dll
|
||||||
|
Assets/Parse/Plugins/Unity.Tasks.dll
|
||||||
|
Assets/SignInSample/MainScene.unity
|
||||||
|
Assets/SignInSample/SigninSampleScript.cs
|
||||||
|
Assets/GoogleSignIn/Impl/GoogleSignInImpl.cs
|
||||||
|
Assets/GoogleSignIn/Impl/SignInHelperObject.cs
|
||||||
|
Assets/GoogleSignIn/Impl/NativeFuture.cs
|
||||||
|
Assets/GoogleSignIn/Impl/BaseObject.cs
|
||||||
|
Assets/GoogleSignIn/GoogleSignIn.cs
|
||||||
|
Assets/GoogleSignIn/GoogleSignInConfiguration.cs
|
||||||
|
Assets/GoogleSignIn/Future.cs
|
||||||
|
Assets/GoogleSignIn/GoogleSignInUser.cs
|
||||||
|
Assets/GoogleSignIn/GoogleSignInStatusCode.cs
|
||||||
|
Assets/GoogleSignIn/Editor/GoogleSignInDependencies.xml
|
||||||
|
Assets/GoogleSignIn/Editor/GoogleSignInSupportDependencies.xml
|
||||||
|
Assets/GoogleSignIn/Editor/m2repository/com/google/signin/google-signin-support/maven-metadata.xml
|
||||||
|
Assets/GoogleSignIn/Editor/m2repository/com/google/signin/google-signin-support/maven-metadata.xml.md5
|
||||||
|
Assets/GoogleSignIn/Editor/m2repository/com/google/signin/google-signin-support/maven-metadata.xml.sha1
|
||||||
|
Assets/GoogleSignIn/Editor/m2repository/com/google/signin/google-signin-support/1.0.4/google-signin-support-1.0.4.pom.md5
|
||||||
|
Assets/GoogleSignIn/Editor/m2repository/com/google/signin/google-signin-support/1.0.4/google-signin-support-1.0.4.srcaar.sha1
|
||||||
|
Assets/GoogleSignIn/Editor/m2repository/com/google/signin/google-signin-support/1.0.4/google-signin-support-1.0.4.pom.sha1
|
||||||
|
Assets/GoogleSignIn/Editor/m2repository/com/google/signin/google-signin-support/1.0.4/google-signin-support-1.0.4.srcaar
|
||||||
|
Assets/GoogleSignIn/Editor/m2repository/com/google/signin/google-signin-support/1.0.4/google-signin-support-1.0.4.pom
|
||||||
|
Assets/GoogleSignIn/Editor/m2repository/com/google/signin/google-signin-support/1.0.4/google-signin-support-1.0.4.srcaar.md5
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a67d5f0cfc09749e6b1ce13e8b8e6e1d
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_manifest
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: eefc3dc8b56e545998952bd59ab36247
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1508956004
|
||||||
|
licenseType: Free
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ade49ef91c70440a0baeac322ecaa2d7
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1508956004
|
||||||
|
licenseType: Free
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 707de6ade212a46b1ab4bf4d42325176
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1508956004
|
||||||
|
licenseType: Free
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 34b86fc2e934d482ea5f9d1f5354b0f9
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1508956004
|
||||||
|
licenseType: Free
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e3becceb8680148d59e5bb93e5eb5a24
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1508956004
|
||||||
|
licenseType: Free
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 001a15402063b4df983ba8bc4ddb269f
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1537405253
|
||||||
|
licenseType: Pro
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>com.google.signin</groupId>
|
||||||
|
<artifactId>google-signin-support</artifactId>
|
||||||
|
<version>1.0.4</version>
|
||||||
|
<packaging>srcaar</packaging>
|
||||||
|
</project>
|
@ -0,0 +1 @@
|
|||||||
|
7cd48eaf454469c04dae63043d467d69
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 907bf7a19cd7848cabf1f641f61343ee
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a3f74b3d329a24e81a6c6f9f1d2f46f1
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1 @@
|
|||||||
|
f30d09407a5b0e439bfc0e54e33f3a34f7c7d35c
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e1a3ff77f802d43818521ff3db2bf944
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
040097cf545e84135c0e4d783e3b1143
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 79f9d122dd99b483282294f3b1f1bd36
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6eab7a3cbdbf34cffaf951dc9210a32c
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1 @@
|
|||||||
|
632874f93336b4f05e15f55b63656dace924fa72
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d508eb0e16bb14c8a962b343e755ef01
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<metadata>
|
||||||
|
<groupId>com.google.signin</groupId>
|
||||||
|
<artifactId>google-signin-support</artifactId>
|
||||||
|
<versioning>
|
||||||
|
<release>1.0.4</release>
|
||||||
|
<versions>
|
||||||
|
<version>1.0.4</version>
|
||||||
|
</versions>
|
||||||
|
<lastUpdated>20180920010048</lastUpdated>
|
||||||
|
</versioning>
|
||||||
|
</metadata>
|
@ -0,0 +1 @@
|
|||||||
|
e243363a85b4f7bd1170918ba674061b
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c020582c1a85d47c7934908f00a0bd37
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f3911d467587242978192a8723c68395
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1 @@
|
|||||||
|
43ebede449c3782df517a7156c18c28cde4fd4f4
|
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 16b8065a143bb4277af08381a56157dd
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,14 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ad3b09fb652fb4ff0a68d1966f13160e
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,14 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 138b984208e394be797ce8905a44fd54
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,14 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0c3999c0f68f04ae08f04fb3bf2a2050
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8948afce6ec0e984aa137d3f84aba688
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,14 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 077933fcaedac412d9762bf3e0a3be68
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,14 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c56b92217d0144af5907627d1235e0a5
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2fbe4f3ec9db4415e849f9bb89e63a92
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1502761839
|
||||||
|
licenseType: Pro
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,14 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fe250cda690a44cb08f8f7d26c9723b4
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,14 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9ae1f008f9f994b9c96c1a14067d7b48
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,14 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5f1aae79b1ca4432d9d8ec382c54bf46
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,14 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ad98e5b48888e44eb81dd5884d3a1754
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-1.0.4
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: df8ccdbfa53820647be6f67fba435252
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: aea303bf6931eb64a925ac187863ae99
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,23 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
public static class PlayerPrefsKeys
|
||||||
|
{
|
||||||
|
private const string KeyRegistry = "_AllPlayerPrefsKeys";
|
||||||
|
|
||||||
|
public static void RegisterKey(string key)
|
||||||
|
{
|
||||||
|
var keys = PlayerPrefs.GetString(KeyRegistry, "");
|
||||||
|
if (!keys.Contains(key))
|
||||||
|
{
|
||||||
|
keys += key + ";";
|
||||||
|
SafePlayerPrefs.SetString(KeyRegistry, keys);
|
||||||
|
PlayerPrefs.Save();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static List<string> GetAllKeys()
|
||||||
|
{
|
||||||
|
var keysString = PlayerPrefs.GetString(KeyRegistry, "");
|
||||||
|
return new List<string>(keysString.Split(';', System.StringSplitOptions.RemoveEmptyEntries));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ffa4debad77245b4d9620a5fc2b07c9d
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c814388591ae90d4aa18f1259f9c3b10
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,124 @@
|
|||||||
|
using PlayFab.ClientModels;
|
||||||
|
using PlayFab;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
using MS;
|
||||||
|
using TMPro;
|
||||||
|
|
||||||
|
public class Profile : MonoBehaviour
|
||||||
|
{
|
||||||
|
// Start is called before the first frame update
|
||||||
|
public Button EnteredNameButton;
|
||||||
|
public List<Sprite> AvatarSprites;
|
||||||
|
public Sprite AvatarSelectedSprite;
|
||||||
|
public Popup EnterNamePanel;
|
||||||
|
public Popup MainPanel;
|
||||||
|
public TMP_InputField nameInputField;
|
||||||
|
public Image HeaderProfileImg;
|
||||||
|
public TextMeshProUGUI HeaderProfileName;
|
||||||
|
public Image LevelFillerImg;
|
||||||
|
public TextMeshProUGUI LevelFillerText;
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
CheckForDisplayName();
|
||||||
|
CheckForAvatar();
|
||||||
|
if (EnteredNameButton != null)
|
||||||
|
EnteredNameButton.interactable = false;
|
||||||
|
}
|
||||||
|
private void CheckForAvatar()
|
||||||
|
{
|
||||||
|
int hasSelectedAvatar = PlayerPrefs.GetInt(GameConstants.AvatarSelectedCheckKey, 0);
|
||||||
|
if (hasSelectedAvatar > 0)
|
||||||
|
{
|
||||||
|
//string name = PlayerPrefs.GetString(GameConstants.DisplayNameKey);
|
||||||
|
//PlayFabLeaderboards.DisplayName = name;
|
||||||
|
AvatarSelectedSprite = AvatarSprites[PlayerPrefs.GetInt(GameConstants.AvatarSelectedIndex)];
|
||||||
|
HeaderProfileImg.sprite = AvatarSelectedSprite;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MainPanel.Close();
|
||||||
|
if (!EnterNamePanel.isOpen)
|
||||||
|
EnterNamePanel.Open();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void CheckForDisplayName()
|
||||||
|
{
|
||||||
|
int hasEnteredName = PlayerPrefs.GetInt(GameConstants.NameEnteredCheckKey, 0);
|
||||||
|
if (hasEnteredName > 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
string name = PlayerPrefs.GetString(GameConstants.DisplayNameKey);
|
||||||
|
PlayFabLeaderboards.DisplayName = name;
|
||||||
|
PlayFabManager.Instance.playFabLeaderboards.SetDisplayName(name);
|
||||||
|
HeaderProfileName.text = name;
|
||||||
|
LevelFillerSetter();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
Debug.Log("Name not found in plaerprefs");
|
||||||
|
MainPanel.Close();
|
||||||
|
if (!EnterNamePanel.isOpen)
|
||||||
|
EnterNamePanel.Open();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public void LevelFillerSetter()
|
||||||
|
{
|
||||||
|
int bestScore = PlayerPrefs.GetInt("BestScore", 0); // Default to 0 if not set
|
||||||
|
|
||||||
|
float fillAmount = Mathf.Clamp01((float)bestScore / 100f); // Ensure it stays between 0 and 1
|
||||||
|
LevelFillerImg.fillAmount = fillAmount;
|
||||||
|
|
||||||
|
//LevelFillerText.text = bestScore + "/" + maxScore;
|
||||||
|
}
|
||||||
|
public void OnDisplayNameEntered()
|
||||||
|
{
|
||||||
|
if (PlayFabClientAPI.IsClientLoggedIn())
|
||||||
|
{
|
||||||
|
PlayFabManager.Instance.playFabLeaderboards.SetDisplayName(nameInputField.text);
|
||||||
|
}
|
||||||
|
SafePlayerPrefs.SetInt(GameConstants.NameEnteredCheckKey, 1);
|
||||||
|
SafePlayerPrefs.SetString(GameConstants.DisplayNameKey, nameInputField.text);
|
||||||
|
HeaderProfileName.text = nameInputField.text;
|
||||||
|
|
||||||
|
EnterNamePanel.Close();
|
||||||
|
LevelFillerSetter();
|
||||||
|
}
|
||||||
|
public void OnAvatarSelected(int AvatarID)
|
||||||
|
{
|
||||||
|
//PlayFabManager.Instance.playFabLeaderboards.SetDisplayName(nameInputField.text);
|
||||||
|
EnteredNameButton.interactable = true;
|
||||||
|
SafePlayerPrefs.SetInt(GameConstants.AvatarSelectedCheckKey, 1);
|
||||||
|
SafePlayerPrefs.SetInt(GameConstants.AvatarSelectedIndex, AvatarID);
|
||||||
|
AvatarSelectedSprite = AvatarSprites[AvatarID];
|
||||||
|
HeaderProfileImg.sprite = AvatarSelectedSprite;
|
||||||
|
SetAvatarID(AvatarID);
|
||||||
|
//NameEnterPanel.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetAvatarID(int avatarID)
|
||||||
|
{
|
||||||
|
var request = new UpdateUserDataRequest
|
||||||
|
{
|
||||||
|
Data = new Dictionary<string, string>
|
||||||
|
{
|
||||||
|
{ "AvatarID", avatarID.ToString() } // Convert int to string for storage
|
||||||
|
},
|
||||||
|
Permission = UserDataPermission.Public
|
||||||
|
};
|
||||||
|
if (PlayFabClientAPI.IsClientLoggedIn())
|
||||||
|
PlayFabClientAPI.UpdateUserData(request, OnDataUpdateSuccess, OnDataUpdateFailure);
|
||||||
|
}
|
||||||
|
private void OnDataUpdateSuccess(UpdateUserDataResult result)
|
||||||
|
{
|
||||||
|
Debug.Log("Avatar ID updated successfully.");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnDataUpdateFailure(PlayFabError error)
|
||||||
|
{
|
||||||
|
Debug.LogError("Failed to update Avatar ID: " + error.GenerateErrorReport());
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 21236f4bddba5ff4db559d91c0c804b4
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,24 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
public static class SafePlayerPrefs
|
||||||
|
{
|
||||||
|
public static void SetInt(string key, int value)
|
||||||
|
{
|
||||||
|
PlayerPrefs.SetInt(key, value);
|
||||||
|
PlayerPrefsKeys.RegisterKey(key);
|
||||||
|
PlayerPrefs.Save();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void SetFloat(string key, float value)
|
||||||
|
{
|
||||||
|
PlayerPrefs.SetFloat(key, value);
|
||||||
|
PlayerPrefsKeys.RegisterKey(key);
|
||||||
|
PlayerPrefs.Save();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void SetString(string key, string value)
|
||||||
|
{
|
||||||
|
PlayerPrefs.SetString(key, value);
|
||||||
|
PlayerPrefsKeys.RegisterKey(key);
|
||||||
|
PlayerPrefs.Save();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3f16590318a73204e98d26d21f94e188
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
@ -0,0 +1,140 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2d53a66c391dadc4b8ad1347e8c7682f
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: iPhone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: ed9b95dc6ed6d0647ad7f1a8f305385d
|
guid: ee723588dbcf9034d82443ab62c094db
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,32 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 46cc214f66e2d5845aef9fa4a84a11da
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Android: Android
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,5 @@
|
|||||||
|
android {
|
||||||
|
packagingOptions {
|
||||||
|
pickFirst "META-INF/kotlinx_coroutines_core.version"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,2 @@
|
|||||||
|
target=android-31
|
||||||
|
android.library=true
|
@ -0,0 +1,97 @@
|
|||||||
|
// Copyright (C) 2023 Google LLC
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
|
import groovy.util.XmlSlurper
|
||||||
|
import groovy.xml.XmlUtil
|
||||||
|
|
||||||
|
import java.util.zip.ZipEntry
|
||||||
|
import java.util.zip.ZipOutputStream
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
// Configuration used to resolve the artifacts of dependencies.
|
||||||
|
aarArtifacts.extendsFrom implementation
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validates the Unity GMA plugin dependencies.
|
||||||
|
* Add the following snippet to Assets/Plugins/Android/mainTemplate.gradle in the Unity Editor or
|
||||||
|
* unityLibrary/build.gradle in an Android project to use this script:
|
||||||
|
* <pre>{@code
|
||||||
|
* gradle.projectsEvaluated {
|
||||||
|
* apply from: 'GoogleMobileAdsPlugin.androidlib/validate_dependencies.gradle'
|
||||||
|
* }
|
||||||
|
* }</pre>
|
||||||
|
*/
|
||||||
|
task validateDependencies {
|
||||||
|
def expandedArchiveDirectory
|
||||||
|
// List of artifacts resolved from the aarArtifacts configuration.
|
||||||
|
project.configurations.aarArtifacts.
|
||||||
|
resolvedConfiguration.lenientConfiguration.
|
||||||
|
getArtifacts(Specs.satisfyAll()).findResults {
|
||||||
|
ResolvedArtifact artifact ->
|
||||||
|
File artifactTargetFile = new File(artifact.file.parent , artifact.file.name)
|
||||||
|
// Desired artifact - com.google.android.gms:play-services-ads-lite:22.4.0
|
||||||
|
// Group ID - com.google.android.gms
|
||||||
|
// Artifact ID - play-services-ads-lite
|
||||||
|
// Since Gradle has different naming convention for the same artifact in
|
||||||
|
// * modules-2 cache - play-services-ads-lite-22.4.0.aar
|
||||||
|
// * transforms-2 cache - com.google.android.gms.play-services-ads-lite-22.4.0
|
||||||
|
// we look for the common segment.
|
||||||
|
if (artifact.name.contains("play-services-ads-lite")) {
|
||||||
|
// Explode the archive to a temporary directory.
|
||||||
|
FileTree expandedArchive = project.zipTree(artifactTargetFile)
|
||||||
|
expandedArchive.forEach { File androidManifest ->
|
||||||
|
if (androidManifest.getName() == "AndroidManifest.xml") {
|
||||||
|
def xml = new XmlSlurper().parse(androidManifest)
|
||||||
|
def propertyNode = xml.depthFirst().find { it.name() == 'property' }
|
||||||
|
if (propertyNode) {
|
||||||
|
// Replace the <property> node with a comment.
|
||||||
|
propertyNode.replaceNode {
|
||||||
|
mkp.comment 'android.adservices.AD_SERVICES_CONFIG property'\
|
||||||
|
+ ' removed by GoogleMobileAds Unity plugin - Release notes: '\
|
||||||
|
+ 'https://github.com/googleads/googleads-mobile-unity/releases/'\
|
||||||
|
+ 'tag/v8.6.0'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
def updatedXml = XmlUtil.serialize(xml)
|
||||||
|
androidManifest.setWritable(true)
|
||||||
|
androidManifest.text = updatedXml
|
||||||
|
expandedArchiveDirectory = androidManifest.parent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Update the artifact archive.
|
||||||
|
artifactTargetFile.withOutputStream { outputStream ->
|
||||||
|
def zipStream = new ZipOutputStream(outputStream)
|
||||||
|
file(expandedArchiveDirectory).eachFileRecurse { file ->
|
||||||
|
if (file.isFile()) {
|
||||||
|
def entry = new ZipEntry(file.name)
|
||||||
|
zipStream.putNextEntry(entry)
|
||||||
|
file.withInputStream { zipStream << it }
|
||||||
|
zipStream.closeEntry()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
zipStream.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Clean up the temporary directory.
|
||||||
|
if (expandedArchiveDirectory) delete expandedArchiveDirectory
|
||||||
|
}
|
||||||
|
|
||||||
|
// Run the update task before unityLibrary project is built.
|
||||||
|
project(':unityLibrary:GoogleMobileAdsPlugin.androidlib') {
|
||||||
|
tasks.named('preBuild') {
|
||||||
|
dependsOn validateDependencies
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,32 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ff8209b689cd4e54b844eda1ce5184c6
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Android: Android
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue