From 91b0ba03466005a9167475c12d83e6c985f99bf4 Mon Sep 17 00:00:00 2001 From: huyfei Date: Thu, 18 Jan 2024 17:03:53 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0initconfig=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/GuruManager/Files/gradleTemplate.txt | 2 ++ Editor/GuruManager/Files/launcherTemplate.txt | 5 +++++ Runtime/Code/Config/GuruSDKInitConfig.cs | 4 ++-- Runtime/Code/SDK/GuruSDK.cs | 4 ++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Editor/GuruManager/Files/gradleTemplate.txt b/Editor/GuruManager/Files/gradleTemplate.txt index abf3dec..6b197ad 100644 --- a/Editor/GuruManager/Files/gradleTemplate.txt +++ b/Editor/GuruManager/Files/gradleTemplate.txt @@ -1,5 +1,7 @@ org.gradle.jvmargs=-Xmx**JVM_HEAP_SIZE**M org.gradle.parallel=true +org.gradle.daemon=true +org.gradle.caching=true android.enableR8=**MINIFY_WITH_R_EIGHT** unityStreamingAssets=**STREAMING_ASSETS** # Android Resolver Properties Start diff --git a/Editor/GuruManager/Files/launcherTemplate.txt b/Editor/GuruManager/Files/launcherTemplate.txt index 8ec32cf..192f928 100644 --- a/Editor/GuruManager/Files/launcherTemplate.txt +++ b/Editor/GuruManager/Files/launcherTemplate.txt @@ -33,6 +33,11 @@ android { abortOnError false checkReleaseBuilds false } + + dexOptions { + incremental true + javaMaxHeapSize "8g" + } buildTypes { debug { diff --git a/Runtime/Code/Config/GuruSDKInitConfig.cs b/Runtime/Code/Config/GuruSDKInitConfig.cs index 46f089b..93da344 100644 --- a/Runtime/Code/Config/GuruSDKInitConfig.cs +++ b/Runtime/Code/Config/GuruSDKInitConfig.cs @@ -50,7 +50,7 @@ namespace Guru bool autoLoadAds = true, bool iapEnabled = true, bool autoRecordFinishedLevels = true, - bool showDebugLog = false, + bool debugMode = false, Dictionary defaultRemoteData = null, byte[] googleKeys = null, byte[] appleRootCerts = null) @@ -62,7 +62,7 @@ namespace Guru AutoLoadWhenAdsReady = autoLoadAds, IAPEnabled = iapEnabled, AutoRecordFinishedLevels = autoRecordFinishedLevels, - DebugMode = showDebugLog, + DebugMode = debugMode, GoogleKeys = googleKeys, AppleRootCerts = appleRootCerts, DefaultRemoteData = defaultRemoteData ?? new Dictionary(), diff --git a/Runtime/Code/SDK/GuruSDK.cs b/Runtime/Code/SDK/GuruSDK.cs index 15af33c..0554820 100644 --- a/Runtime/Code/SDK/GuruSDK.cs +++ b/Runtime/Code/SDK/GuruSDK.cs @@ -85,13 +85,13 @@ namespace Guru bool autoLoadAds = true, bool iapEnabled = true, bool autoRecordFinishedLevels = true, - bool showDebugLog = false, + bool debugMode = false, Dictionary defaultRemoteData = null, byte[] googleKeys = null, byte[] appleRootCerts = null) { var config = GuruSDKInitConfig.Build(useCustomConsent, autoLoadAds, iapEnabled, - autoRecordFinishedLevels, showDebugLog, defaultRemoteData, googleKeys, appleRootCerts); + autoRecordFinishedLevels, debugMode, defaultRemoteData, googleKeys, appleRootCerts); return config; }