ar_tourism_flutter_unity/android/gradle.properties
2025-05-14 17:04:13 +08:00

38 lines
1.0 KiB
Properties

# org.gradle.jvmargs=-Xmx4G
# android.useAndroidX=true
# android.enableJetifier=true
# unityStreamingAssets=.unity3d, google-services-desktop.json, google-services.json, GoogleService-Info.plist
# 增加 Gradle 构建内存至 6GB
# org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=4096m -XX:+HeapDumpOnOutOfMemoryError
org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# 启用 Gradle 构建优化
org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.configureondemand=true
org.gradle.caching=true
# Android 配置
android.useAndroidX=true
android.enableJetifier=true
# Unity streaming assets
unityStreamingAssets=.unity3d, google-services-desktop.json, google-services.json, GoogleService-Info.plist
# 启用 R8 优化
android.enableR8=true
android.enableR8.fullMode=true
android.enableJetifier=true
android.useAndroidX=true
kotlin.code.style=official
# 增加编译时的堆内存
kotlin.daemon.jvm.options=-Xmx2048m
android.bundle.enableUncompressedNativeLibs=false