You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.5 KiB
40 lines
1.5 KiB
# Project-wide Gradle settings.
|
|
# IDE (e.g. Android Studio) users:
|
|
# Gradle settings configured through the IDE *will override*
|
|
# any settings specified in this file.
|
|
# For more details on how to configure your build environment visit
|
|
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
|
|
# AndroidX package structure to make it clearer which packages are bundled with the
|
|
# Android operating system, and which are packaged with your app's APK
|
|
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
android.useAndroidX=true
|
|
# Kotlin code style for this project: "official" or "obsolete":
|
|
kotlin.code.style=official
|
|
# Enables namespacing of each library's R class so that its R class includes only the
|
|
# resources declared in the library itself and none from the library's dependencies,
|
|
# thereby reducing the size of the R class for that library
|
|
android.nonTransitiveRClass=true
|
|
|
|
# Disable offline mode for build
|
|
org.gradle.offline=false
|
|
# Android SDK path
|
|
android.sdk.path=/Users/zmt/Library/Android/sdk
|
|
|
|
# 24小时运行优化配置
|
|
# Gradle内存分配和JVM参数
|
|
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError
|
|
# 并行构建优化
|
|
org.gradle.parallel=true
|
|
# 启用守护进程
|
|
org.gradle.daemon=true
|
|
# 配置缓存
|
|
org.gradle.caching=true
|
|
|
|
# Java版本兼容性配置
|
|
# 抑制不兼容警告
|
|
android.javaCompile.suppressSourceTargetDeprecationWarning=true
|
|
# 启用AndroidX
|
|
android.enableJetifier=true
|
|
# 启用R8优化
|
|
android.enableR8.fullMode=false
|