fix: 修复IO接口问题, guru-services 改为内置 resources 存储
parent
74acbe841b
commit
8881b2f442
|
|
@ -26,11 +26,10 @@ namespace Guru.Editor
|
|||
/// <returns></returns>
|
||||
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($"<color=orange>--- Can't ind guru-services file</color>");
|
||||
Debug.Log($"<color=orange>--- Can't find guru-services file</color>");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -108,7 +107,7 @@ namespace Guru.Editor
|
|||
if (null != config)
|
||||
{
|
||||
if (File.Exists(path)) File.Delete(path);
|
||||
Debug.Log($"<color=#88ff00> --- setup {GuruSDK.ServicesConfigKey} file on streamingPath</color>");
|
||||
Debug.Log($"<color=#88ff00> --- setup {GuruSDK.ServicesConfigKey} to local resources.</color>");
|
||||
File.Copy(from, path);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
namespace Guru
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// 打点管理
|
||||
|
|
@ -51,6 +51,12 @@ namespace Guru
|
|||
string levelCategory = "main", string levelName = "", string levelID = "",
|
||||
bool isReplay = false)
|
||||
{
|
||||
if (!IsInitialSuccess)
|
||||
{
|
||||
Debug.LogError($"{Tag} Please call <GuruSDK.Init()> first, before you call the log event api.");
|
||||
return;
|
||||
}
|
||||
|
||||
Analytics.LogLevelStart(level, levelName, levelCategory, levelID, startType, isReplay);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -197,7 +197,8 @@ namespace Guru
|
|||
}
|
||||
useIAP = _appServicesConfig.IsIAPEnabled();
|
||||
}
|
||||
AdjustService.StartService();
|
||||
|
||||
// AdjustService.StartService();
|
||||
|
||||
if(useIAP) {
|
||||
InitIAP(_initConfig.GoogleKeys, _initConfig.AppleRootCerts); // 初始化IAP
|
||||
|
|
|
|||
Loading…
Reference in New Issue