From 69edbeb6d9673eae90a3e0ae4c646013a567831f Mon Sep 17 00:00:00 2001 From: huyufei Date: Fri, 8 Mar 2024 20:16:57 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=8F=90=E5=89=8D=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E8=87=AA=E6=89=93=E7=82=B9=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Code/SDK/GuruSDK.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Runtime/Code/SDK/GuruSDK.cs b/Runtime/Code/SDK/GuruSDK.cs index 14a1b80..489f68c 100644 --- a/Runtime/Code/SDK/GuruSDK.cs +++ b/Runtime/Code/SDK/GuruSDK.cs @@ -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 方法内 --- }