update: 提前初始化自打点组件

deeplink
胡宇飞 2024-03-08 20:16:57 +08:00
parent 064edbd180
commit 69edbeb6d9
1 changed files with 6 additions and 1 deletions

View File

@ -123,8 +123,13 @@ namespace Guru
_initConfig = config;
_onCompleteCallback = onComplete;
_isDebugEnabled = config.DebugMode;
GuruRepoter.Install(); // Install Crashlytics Logger
bool isDebug = false;
#if DEBUG
isDebug = true;
#endif
Analytics.InstallGuruAnalytics(isDebug); // 提前初始化 GuruAnalytics
//--- 之后的逻辑放在 Start 方法内 ---
}