Files
trmnl-android/gradle.properties

51 lines
2.7 KiB
Properties

# 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
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Reference: https://github.com/android/nowinandroid/blob/main/gradle.properties
# NOTE: These settings assume at least 8GB+ of available RAM (4GB for Gradle + 4GB for Kotlin daemon)
# For memory-constrained environments, reduce -Xmx values (e.g., -Xmx2g for both on systems with 4-6GB RAM)
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=1 -XX:ReservedCodeCacheSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xmx4g
# Kotlin Daemon arguments with optimized GC settings
kotlin.daemon.jvmargs=-Dfile.encoding=UTF-8 -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=1 -XX:ReservedCodeCacheSize=320m -XX:+HeapDumpOnOutOfMemoryError -Xmx4g
# Enable parallel execution
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
org.gradle.parallel=true
# 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":
# https://kotlinlang.org/docs/reference/coding-conventions.html
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
# Enable Gradle's experimental new feature that is faster and more stable than the current
# https://docs.gradle.org/current/userguide/multi_project_builds.html#sec:configuration_on_demand
org.gradle.caching=true
# Enable configuration caching
# https://docs.gradle.org/current/userguide/configuration_cache.html
# NOTE: Configuration cache is an incubating feature. If you encounter build issues,
# you can disable it by commenting out these lines or setting them to false.
org.gradle.configuration-cache=true
org.gradle.configuration-cache.parallel=true
# Enable Gradle's daemon mode, which is faster and more stable than the current
# https://docs.gradle.org/current/userguide/gradle_daemon.html
org.gradle.daemon=true
# Disable unused build features
android.defaults.buildfeatures.resvalues=false
android.defaults.buildfeatures.shaders=false