DLL Issue Occuring

hazim-dev
Ali Sharoz 2 weeks ago
parent 0182c8e031
commit de38fbe0ee

@ -1,82 +0,0 @@
fileFormatVersion: 2
guid: ae27fcbe11294c9e9eeca7eb5ad2c857
labels:
- gvh
- gvh_version-9.2.0
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.181/Google.IOSResolver.dll
- gvhp_targets-editor
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 0
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 1
Exclude Editor: 0
Exclude Linux64: 1
Exclude OSXUniversal: 1
Exclude Win: 1
Exclude Win64: 1
- first:
Android: Android
second:
enabled: 0
settings:
AndroidSharedLibraryType: Executable
CPU: ARMv7
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 1
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: AnyOS
- first:
Standalone: Linux64
second:
enabled: 0
settings:
CPU: x86_64
- first:
Standalone: OSXUniversal
second:
enabled: 0
settings:
CPU: None
- first:
Standalone: Win
second:
enabled: 0
settings:
CPU: x86
- first:
Standalone: Win64
second:
enabled: 0
settings:
CPU: x86_64
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 5af2f64c940efd5419caa30bcf31cd2f guid: e3c0eac9e1ce97146a6ed9d27ef9da67
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}

@ -0,0 +1,38 @@
fileFormatVersion: 2
guid: a1a3cd348b3c4bbc82b68b73893f222a
labels:
- gvh
- gvh_version-1.2.185
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.185/Google.IOSResolver.dll
- gvhp_targets-editor
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
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

@ -1,9 +1,9 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: a256270a3ad7437582a4117da5a86488 guid: 459f2b4255ec498caed1c0aeb1bf03a0
labels: labels:
- gvh - gvh
- gvh_version-9.2.0 - gvh_version-1.2.185
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.181/Google.JarResolver.dll - gvhp_exportpath-ExternalDependencyManager/Editor/1.2.185/Google.JarResolver.dll
- gvhp_targets-editor - gvhp_targets-editor
PluginImporter: PluginImporter:
externalObjects: {} externalObjects: {}

@ -1,9 +1,9 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 1f5eb6215e764865b06833b8dcd541ea guid: bf27b3f704244da0af729a6737adb7f1
labels: labels:
- gvh - gvh
- gvh_version-9.2.0 - gvh_version-1.2.185
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.181/Google.PackageManagerResolver.dll - gvhp_exportpath-ExternalDependencyManager/Editor/1.2.185/Google.PackageManagerResolver.dll
- gvhp_targets-editor - gvhp_targets-editor
PluginImporter: PluginImporter:
externalObjects: {} externalObjects: {}

@ -1,9 +1,9 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 389e9f28fd444accbfe5e1f62a0ef8b1 guid: e2831157d94e4d15998dcb6ad1418057
labels: labels:
- gvh - gvh
- gvh_version-9.2.0 - gvh_version-1.2.185
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.181/Google.VersionHandlerImpl.dll - gvhp_exportpath-ExternalDependencyManager/Editor/1.2.185/Google.VersionHandlerImpl.dll
- gvhp_targets-editor - gvhp_targets-editor
PluginImporter: PluginImporter:
externalObjects: {} externalObjects: {}

@ -1,3 +1,21 @@
# Version 1.2.185 - Feb 3, 2025
* Android Resolver - Reverse conditional checker for `packaging` keyword in maintemplate based on android gradle plugin version. Fixes #715
# Version 1.2.184 - Jan 28, 2025
* Android Resolver - Update and resolve `packaging` keyword in maintemplate
based on android gradle plugin version.
Fixes #715
# Version 1.2.183 - Sep 18, 2024
* Android Resolver - Handle package paths that don't include a version hash,
which is no longer present with Unity 6. Fixes #697
* Android Resolver - Handle packages referenced using local file paths.
Fixes #701
# Version 1.2.182 - Aug 2, 2024
* General - Check for gradle version instead of Unity version when determining
the template files to modify.
# Version 1.2.181 - Jun 26, 2024 # Version 1.2.181 - Jun 26, 2024
* General - Disable `EditorMeasurement` reporting that relied on the * General - Disable `EditorMeasurement` reporting that relied on the
Measurement Protocol for Universal Analytics. Measurement Protocol for Universal Analytics.

@ -1,11 +1,12 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: d02dd8321d384ea8ba892f52dcb2cab3 guid: 15066d50e81445ed9e318d0c2beede4e
labels: labels:
- gvh - gvh
- gvh_version-9.2.0 - gvh_version-1.2.185
- gvhp_exportpath-ExternalDependencyManager/Editor/CHANGELOG.md - gvhp_exportpath-ExternalDependencyManager/Editor/CHANGELOG.md
timeCreated: 1584567712
licenseType: Pro
TextScriptImporter: TextScriptImporter:
externalObjects: {}
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:

@ -1,20 +1,18 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: c993f1fd754545c3adbe64e1fa53d539 guid: 61c24b9980ea49ae90c8b62fb489de77
labels: labels:
- gvh - gvh
- gvh_version-9.2.0 - gvh_version-1.2.185
- gvhp_exportpath-ExternalDependencyManager/Editor/Google.VersionHandler.dll - gvhp_exportpath-ExternalDependencyManager/Editor/Google.VersionHandler.dll
- gvhp_targets-editor - gvhp_targets-editor
timeCreated: 1480838400
PluginImporter: PluginImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2
iconMap: {} iconMap: {}
executionOrder: {} executionOrder: {}
defineConstraints: []
isPreloaded: 0 isPreloaded: 0
isOverridable: 0 isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData: platformData:
- first: - first:
Any: Any:

@ -1,11 +1,12 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: e1f69eb2faf34f8aa3f6e3dd5c7b3d03 guid: a0a74f7579114ab58b46e496d4b2ba97
labels: labels:
- gvh - gvh
- gvh_version-9.2.0 - gvh_version-1.2.185
- gvhp_exportpath-ExternalDependencyManager/Editor/LICENSE - gvhp_exportpath-ExternalDependencyManager/Editor/LICENSE
DefaultImporter: timeCreated: 1584567712
externalObjects: {} licenseType: Pro
TextScriptImporter:
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:

@ -72,6 +72,12 @@ EDM4U is available on
openupm add com.google.external-dependency-manager openupm add com.google.external-dependency-manager
``` ```
### Install via git URL
1. Open Package Manager
2. Click on the + icon on the top left corner of the "Package Manager" screen
3. Click on "Install package from git url..."
4. Paste: https://github.com/googlesamples/unity-jar-resolver.git?path=upm
### Install via Google APIs for Unity ### Install via Google APIs for Unity
EDM4U is available both in UPM and legacy `.unitypackage` formats on EDM4U is available both in UPM and legacy `.unitypackage` formats on

@ -1,11 +1,12 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 58e98ad89e7c461c89bb54acbde380d4 guid: eda60a5e280441219d51748b60eaf0b7
labels: labels:
- gvh - gvh
- gvh_version-9.2.0 - gvh_version-1.2.185
- gvhp_exportpath-ExternalDependencyManager/Editor/README.md - gvhp_exportpath-ExternalDependencyManager/Editor/README.md
timeCreated: 1584567712
licenseType: Pro
TextScriptImporter: TextScriptImporter:
externalObjects: {}
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:

@ -1,13 +0,0 @@
Assets/ExternalDependencyManager/Editor/1.2.181/Google.IOSResolver.dll
Assets/ExternalDependencyManager/Editor/1.2.181/Google.IOSResolver.pdb
Assets/ExternalDependencyManager/Editor/1.2.181/Google.JarResolver.dll
Assets/ExternalDependencyManager/Editor/1.2.181/Google.JarResolver.pdb
Assets/ExternalDependencyManager/Editor/1.2.181/Google.PackageManagerResolver.dll
Assets/ExternalDependencyManager/Editor/1.2.181/Google.PackageManagerResolver.pdb
Assets/ExternalDependencyManager/Editor/1.2.181/Google.VersionHandlerImpl.dll
Assets/ExternalDependencyManager/Editor/1.2.181/Google.VersionHandlerImpl.pdb
Assets/ExternalDependencyManager/Editor/CHANGELOG.md
Assets/ExternalDependencyManager/Editor/Google.VersionHandler.dll
Assets/ExternalDependencyManager/Editor/Google.VersionHandler.pdb
Assets/ExternalDependencyManager/Editor/LICENSE
Assets/ExternalDependencyManager/Editor/README.md

@ -0,0 +1,13 @@
Assets/ExternalDependencyManager/Editor/1.2.185/Google.IOSResolver.dll
Assets/ExternalDependencyManager/Editor/1.2.185/Google.IOSResolver.pdb
Assets/ExternalDependencyManager/Editor/1.2.185/Google.JarResolver.dll
Assets/ExternalDependencyManager/Editor/1.2.185/Google.JarResolver.pdb
Assets/ExternalDependencyManager/Editor/1.2.185/Google.PackageManagerResolver.dll
Assets/ExternalDependencyManager/Editor/1.2.185/Google.PackageManagerResolver.pdb
Assets/ExternalDependencyManager/Editor/1.2.185/Google.VersionHandlerImpl.dll
Assets/ExternalDependencyManager/Editor/1.2.185/Google.VersionHandlerImpl.pdb
Assets/ExternalDependencyManager/Editor/CHANGELOG.md
Assets/ExternalDependencyManager/Editor/Google.VersionHandler.dll
Assets/ExternalDependencyManager/Editor/Google.VersionHandler.pdb
Assets/ExternalDependencyManager/Editor/LICENSE
Assets/ExternalDependencyManager/Editor/README.md

@ -1,14 +1,15 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 7163600552a34531add1231247b5a3f2 guid: de14403f051e49a4a8b255f2137eed89
labels: labels:
- gvh - gvh
- gvh_manifest - gvh_manifest
- gvh_version-1.2.181 - gvh_version-1.2.185
- gvhp_exportpath-ExternalDependencyManager/Editor/external-dependency-manager_version-1.2.181_manifest.txt - gvhp_exportpath-ExternalDependencyManager/Editor/external-dependency-manager_version-1.2.185_manifest.txt
- gvhp_manifestname-0External Dependency Manager - gvhp_manifestname-0External Dependency Manager
- gvhp_manifestname-play-services-resolver - gvhp_manifestname-play-services-resolver
timeCreated: 1474401009
licenseType: Pro
TextScriptImporter: TextScriptImporter:
externalObjects: {}
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:

@ -1,9 +1,8 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: a089c79cc334748a5a29c5f219b7cfd4 guid: a089c79cc334748a5a29c5f219b7cfd4
folderAsset: yes folderAsset: yes
timeCreated: 1490807626
licenseType: Pro
DefaultImporter: DefaultImporter:
externalObjects: {}
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: a7e77ece57ef34772969fad4915b1a4c
folderAsset: yes
timeCreated: 1490978071
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<dependencies>
<androidPackages>
<androidPackage spec="com.google.android.gms:play-services-auth:20.4.1" />
<androidPackage spec="com.google.android.gms:play-services-base:18.1.0" />
<androidPackage spec="com.google.android.gms:play-services-tasks:18.0.2" />
</androidPackages>
<iosPods>
<iosPod name="GoogleSignIn" version=">= 6.0.2" bitcodeEnabled="false" minTargetSdk="10.0" />
</iosPods>
</dependencies>

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: 938014c9994164100b26d82840a88fbb
labels:
- gvh
- gvh_version-1.0.4
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,11 +0,0 @@
<?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>

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: e8689106c65f445c19cec6044d615c19
labels:
- gvh
- gvh_version-1.0.4
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,33 +0,0 @@
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

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: a67d5f0cfc09749e6b1ce13e8b8e6e1d
labels:
- gvh
- gvh_manifest
- gvh_version-1.0.4
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: eefc3dc8b56e545998952bd59ab36247
folderAsset: yes
timeCreated: 1508956004
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: ade49ef91c70440a0baeac322ecaa2d7
folderAsset: yes
timeCreated: 1508956004
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: 707de6ade212a46b1ab4bf4d42325176
folderAsset: yes
timeCreated: 1508956004
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: 34b86fc2e934d482ea5f9d1f5354b0f9
folderAsset: yes
timeCreated: 1508956004
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: e3becceb8680148d59e5bb93e5eb5a24
folderAsset: yes
timeCreated: 1508956004
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: 001a15402063b4df983ba8bc4ddb269f
folderAsset: yes
timeCreated: 1537405253
licenseType: Pro
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,9 +0,0 @@
<?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>

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: 907bf7a19cd7848cabf1f641f61343ee
labels:
- gvh
- gvh_version-1.0.4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: a3f74b3d329a24e81a6c6f9f1d2f46f1
labels:
- gvh
- gvh_version-1.0.4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: e1a3ff77f802d43818521ff3db2bf944
labels:
- gvh
- gvh_version-1.0.4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: 79f9d122dd99b483282294f3b1f1bd36
labels:
- gvh
- gvh_version-1.0.4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: 6eab7a3cbdbf34cffaf951dc9210a32c
labels:
- gvh
- gvh_version-1.0.4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: d508eb0e16bb14c8a962b343e755ef01
labels:
- gvh
- gvh_version-1.0.4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,12 +0,0 @@
<?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>

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: c020582c1a85d47c7934908f00a0bd37
labels:
- gvh
- gvh_version-1.0.4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: f3911d467587242978192a8723c68395
labels:
- gvh
- gvh_version-1.0.4
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: 16b8065a143bb4277af08381a56157dd
labels:
- gvh
- gvh_version-1.0.4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -0,0 +1,50 @@
using UnityEngine;
using Google;
using System.Threading.Tasks;
public class GoogleSignInController : MonoBehaviour
{
private GoogleSignInConfiguration configuration;
void Awake()
{
// Set up the Google Sign-In configuration
configuration = new GoogleSignInConfiguration
{
WebClientId = "624507103444-6agok4g1q29bsb615v235jbf0k585ruk.apps.googleusercontent.com",
RequestEmail = true,
RequestIdToken = false, // ❌ We no longer request IdToken, since we use ServerAuthCode instead
RequestAuthCode = true // ✅ Enable ServerAuthCode for secure backend authentication
};
GoogleSignIn.Configuration = configuration;
}
public void SignInWithGoogle()
{
GoogleSignIn.DefaultInstance.SignIn().ContinueWith(OnGoogleSignIn);
}
private void OnGoogleSignIn(Task<GoogleSignInUser> task)
{
if (task.IsFaulted)
{
Debug.LogError("Google Sign-In encountered an error: " + task.Exception);
}
else if (task.IsCanceled)
{
Debug.Log("Google Sign-In was canceled.");
}
else
{
GoogleSignInUser user = task.Result;
Debug.Log("✅ Google Sign-In succeeded!");
Debug.Log("👤 Display Name: " + user.DisplayName);
Debug.Log("📧 Email: " + user.Email);
Debug.Log("🔑 Server Auth Code: " + user.AuthCode);
// 🔹 Send this AuthCode to your backend (PlayFab, Firebase, or custom server)
// The backend will exchange this for an access token.
}
}
}

@ -1,8 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: ad23e63bfb06a4657a8fbcc5d668487a guid: 8948afce6ec0e984aa137d3f84aba688
labels:
- gvh
- gvh_version-1.0.4
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

@ -1,9 +1,8 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 2fbe4f3ec9db4415e849f9bb89e63a92 guid: 2fbe4f3ec9db4415e849f9bb89e63a92
folderAsset: yes folderAsset: yes
timeCreated: 1502761839
licenseType: Pro
DefaultImporter: DefaultImporter:
externalObjects: {}
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:

@ -12,21 +12,27 @@ public class GoogleSignInManager : MonoBehaviour
//#elif UNITY_ANDROID //#elif UNITY_ANDROID
// private string webClientId = "723833850517-tfaer77vetml1bhv9qbj3o84ec52u45d.apps.googleusercontent.com"; // Replace with your actual Google Web Client ID // private string webClientId = "723833850517-tfaer77vetml1bhv9qbj3o84ec52u45d.apps.googleusercontent.com"; // Replace with your actual Google Web Client ID
//#endif //#endif
private string webClientId = "723833850517-865419enf8t0j1itln3cgmd1b67shsue.apps.googleusercontent.com"; //private string webClientId = "723833850517-865419enf8t0j1itln3cgmd1b67shsue.apps.googleusercontent.com";
private GoogleSignInConfiguration configuration; private GoogleSignInConfiguration configuration;
public Bootstrapper bootstrapper; // Assign Bootstrapper in Inspector public Bootstrapper bootstrapper; // Assign Bootstrapper in Inspector
public Button googleSignInButton; public Button googleSignInButton;
void Awake()
void Start()
{ {
// Set up the Google Sign-In configuration
configuration = new GoogleSignInConfiguration configuration = new GoogleSignInConfiguration
{ {
WebClientId = webClientId, WebClientId = "723833850517-865419enf8t0j1itln3cgmd1b67shsue.apps.googleusercontent.com",
RequestIdToken = true, RequestEmail = true,
RequestAuthCode = true, RequestIdToken = false, // ❌ We no longer request IdToken, since we use ServerAuthCode instead
RequestAuthCode = true // ✅ Enable ServerAuthCode for secure backend authentication
}; };
GoogleSignIn.Configuration = configuration;
}
void Start()
{
if (PlayerPrefs.HasKey("PlayFabID")) if (PlayerPrefs.HasKey("PlayFabID"))
{ {
Debug.Log("User already signed in, attempting silent login..."); Debug.Log("User already signed in, attempting silent login...");
@ -35,16 +41,14 @@ public class GoogleSignInManager : MonoBehaviour
else else
{ {
Debug.Log("No saved PlayFab ID, waiting for user sign-in."); Debug.Log("No saved PlayFab ID, waiting for user sign-in.");
SignInWithGoogle();
googleSignInButton.gameObject.SetActive(true); googleSignInButton.gameObject.SetActive(true);
googleSignInButton.onClick.AddListener(SignInWithGoogle); googleSignInButton.onClick.AddListener(SignInWithGoogle);
SignInWithGoogle();
} }
} }
public void SignInWithGoogle() public void SignInWithGoogle()
{ {
Debug.Log("Starting Google Sign-In...");
GoogleSignIn.Configuration = configuration;
GoogleSignIn.DefaultInstance.SignIn().ContinueWith(OnGoogleSignIn); GoogleSignIn.DefaultInstance.SignIn().ContinueWith(OnGoogleSignIn);
} }
@ -52,23 +56,30 @@ public class GoogleSignInManager : MonoBehaviour
{ {
if (task.IsFaulted) if (task.IsFaulted)
{ {
Debug.LogError("Google Sign-In Failed: " + task.Exception); Debug.LogError("Google Sign-In encountered an error: " + task.Exception);
} }
else if (task.IsCanceled) else if (task.IsCanceled)
{ {
Debug.Log("Google Sign-In Canceled."); Debug.Log("Google Sign-In was canceled.");
} }
else else
{ {
Debug.Log("Google Sign-In Successful! Fetching PlayFab login..."); GoogleSignInUser user = task.Result;
Debug.Log("✅ Google Sign-In succeeded!");
string idToken = task.Result.IdToken; Debug.Log("👤 Display Name: " + user.DisplayName);
Debug.Log("📧 Email: " + user.Email);
Debug.Log("🔑 Server Auth Code: " + user.AuthCode);
string idToken = user.AuthCode;
PlayerPrefs.SetString("GoogleIdToken", idToken); // Save Google Token for auto-login PlayerPrefs.SetString("GoogleIdToken", idToken); // Save Google Token for auto-login
PlayerPrefs.Save(); PlayerPrefs.Save();
Debug.Log("Google Sign-In Successful! Fetching PlayFab login...");
LoginToPlayFab(idToken); LoginToPlayFab(idToken);
// 🔹 Send this AuthCode to your backend (PlayFab, Firebase, or custom server)
// The backend will exchange this for an access token.
} }
}
}
private void LoginToPlayFab(string idToken) private void LoginToPlayFab(string idToken)
{ {

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 3aa2e86589b8cb94394e391e45dcfa34
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: e305f907a7813764ab6384ebdcba0956
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 27fa0dc6fec391443b5f5f1d0f9e3caf
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 8a8087bd1dcdc6b46858f83329ca8ead
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 9ca4c11203104c941bdee1f11690fb3f
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 663267073762a064fabc4f3ceda25546
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: a049189c99e557941bd3659189490d95
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 8ed95235e53265841b093473517ed4a9
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 07cb63ea9e5118640b7c49ad6830b3d9
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 982bce583be2c26468cf821006aa09ad
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 90ed13bca54f25548b39f2530adafb65
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 0c20a46df35b2d1408c84640e8d41b3c
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 2759b84dcbe48de4883c09f355b64998
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: b7aa892511c18064bb638cdbf6cbe477
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: f10bd9f243555a044b00ce4901c97dfc
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 37034dc9d4631a3429c75f1cfa974ece
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 334418781e1c6ff4f83ed63a7e33d31c
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 575e7ecc2ea17724eb19af6ff6eb10b9
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 6a480cc17d8aa464989b379f0621fed6
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 4cb732408ec87f94d9f758b00508a7c2
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:

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: a2ab8b5fa5cbbbd459f43a130c04aede
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…
Cancel
Save