mirror of
https://github.com/usetrmnl/trmnl-android.git
synced 2026-04-29 13:35:26 -07:00
Address code review feedback on memory requirements
Co-authored-by: hossain-khan <99822+hossain-khan@users.noreply.github.com>
This commit is contained in:
co-authored by
hossain-khan
parent
5664bf960e
commit
aff813ec7b
@@ -165,7 +165,7 @@ The project uses optimized Gradle settings based on best practices from the [Now
|
||||
- Cached builds: ~2-8 seconds
|
||||
- Configuration cache significantly speeds up subsequent builds
|
||||
|
||||
**Note:** These settings assume sufficient system RAM (4GB+ available for Gradle). On memory-constrained systems, the heap size may need adjustment.
|
||||
**Note:** These settings require at least **8GB+ of available RAM** (4GB for Gradle daemon + 4GB for Kotlin daemon). On memory-constrained systems, reduce the `-Xmx` values in `gradle.properties` (e.g., to 2GB each for systems with 4-6GB RAM).
|
||||
|
||||
## Build Types (Not Flavors)
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
# 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)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user