mirror of
https://github.com/usetrmnl/trmnl-android.git
synced 2026-04-29 13:35:26 -07:00
Add guidance for memory-constrained environments and configuration cache
Co-authored-by: hossain-khan <99822+hossain-khan@users.noreply.github.com>
This commit is contained in:
co-authored by
hossain-khan
parent
aff813ec7b
commit
2c0d3ae2bc
@@ -8,6 +8,7 @@
|
||||
# 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
|
||||
@@ -36,6 +37,8 @@ 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user