diff --git a/Editor/GuruManager/Config/EditorGuruServiceIO.cs b/Editor/GuruManager/Config/EditorGuruServiceIO.cs index 0135915..cf4276d 100644 --- a/Editor/GuruManager/Config/EditorGuruServiceIO.cs +++ b/Editor/GuruManager/Config/EditorGuruServiceIO.cs @@ -26,11 +26,10 @@ namespace Guru.Editor /// public static GuruServicesConfig LoadConfig() { - var a = AssetDatabase.FindAssets($"*{SourceConfigFileName}* t:TextAsset", - new string[] { Application.dataPath }); + var a = AssetDatabase.FindAssets($"*{SourceConfigFileName}* t:TextAsset", new []{"Assets"}); if (a == null || a.Length == 0) { - Debug.Log($"--- Can't ind guru-services file"); + Debug.Log($"--- Can't find guru-services file"); } else { @@ -108,7 +107,7 @@ namespace Guru.Editor if (null != config) { if (File.Exists(path)) File.Delete(path); - Debug.Log($" --- setup {GuruSDK.ServicesConfigKey} file on streamingPath"); + Debug.Log($" --- setup {GuruSDK.ServicesConfigKey} to local resources."); File.Copy(from, path); } } diff --git a/Runtime/Code/SDK/GuruSDK.Analytics.cs b/Runtime/Code/SDK/GuruSDK.Analytics.cs index 8e9aeac..db38204 100644 --- a/Runtime/Code/SDK/GuruSDK.Analytics.cs +++ b/Runtime/Code/SDK/GuruSDK.Analytics.cs @@ -2,7 +2,7 @@ namespace Guru { using System.Collections.Generic; - + using UnityEngine; /// /// 打点管理 @@ -51,6 +51,12 @@ namespace Guru string levelCategory = "main", string levelName = "", string levelID = "", bool isReplay = false) { + if (!IsInitialSuccess) + { + Debug.LogError($"{Tag} Please call first, before you call the log event api."); + return; + } + Analytics.LogLevelStart(level, levelName, levelCategory, levelID, startType, isReplay); } diff --git a/Runtime/Code/SDK/GuruSDK.cs b/Runtime/Code/SDK/GuruSDK.cs index 20edc7d..59cb04d 100644 --- a/Runtime/Code/SDK/GuruSDK.cs +++ b/Runtime/Code/SDK/GuruSDK.cs @@ -197,7 +197,8 @@ namespace Guru } useIAP = _appServicesConfig.IsIAPEnabled(); } - AdjustService.StartService(); + + // AdjustService.StartService(); if(useIAP) { InitIAP(_initConfig.GoogleKeys, _initConfig.AppleRootCerts); // 初始化IAP