From a063c4866d7105917a12b69cd117b2274f75ff1b Mon Sep 17 00:00:00 2001 From: huyufei Date: Thu, 8 Aug 2024 20:54:55 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E8=B0=83=E6=95=B4SDK=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E6=97=B6=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Code/SDK/GuruSDK.cs | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Runtime/Code/SDK/GuruSDK.cs b/Runtime/Code/SDK/GuruSDK.cs index e6f5301..a1d150c 100644 --- a/Runtime/Code/SDK/GuruSDK.cs +++ b/Runtime/Code/SDK/GuruSDK.cs @@ -319,7 +319,7 @@ namespace Guru // StartAppleReviewFlow(); // 直接显示 ATT 弹窗, 跳过 Consent 流程 Try(() => { - LogI($"#4.5.0 --- StartAppleReviewFlow ---"); + LogI($"#4.5 --- StartAppleReviewFlow ---"); StartAppleReviewFlow(); // 直接显示 ATT 弹窗, 跳过 Consent 流程 }, ex => { @@ -331,26 +331,28 @@ namespace Guru //----------- Set Consent ---------------- if (!InitConfig.UseCustomConsent && !appleReview) { - // LogI($"--- #3 Start Consent Flow ---"); - // StartConsentFlow(); + LogI($"#4.6 --- Start Consent Flow ---"); Try(StartConsentFlow, ex => { Debug.LogError($"--- ERROR on StartConsentFlow: {ex.Message}"); }); } - IsServiceReady = true; - - // 中台服务初始化结束 - Callbacks.SDK.InvokeOnGuruServiceReady(); + LogI($"#5.0 --- sync sdk time ---"); + LogSDKInitTime((DateTime.Now.ToUniversalTime() - _initTime).TotalSeconds); #if UNITY_ANDROID + LogI($"#5.1 --- Android StartAndroidDebugCmds---"); // Android 命令行调试 StartAndroidDebugCmds(); #endif - LogI($"#5 --- sync sdk time ---"); - LogSDKInitTime((DateTime.Now.ToUniversalTime() - _initTime).TotalSeconds); + + IsServiceReady = true; + + // 中台服务初始化结束 + Callbacks.SDK.InvokeOnGuruServiceReady(); + } /// @@ -425,17 +427,17 @@ namespace Guru private void OnBLevelChanged(int bLevel) { + Debug.Log($"[ANU][SDK] --- OnBLevelChanged: {bLevel}"); Analytics.SetBLevel(bLevel); } private void OnBPlayChanged(int bPlay) { + Debug.Log($"[ANU][SDK] --- OnBPlayChanged: {bPlay}"); Analytics.SetBPlay(bPlay); } - - #endregion #region Logging