Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 456e9a1f authored by Wolf-Martell Montwé's avatar Wolf-Martell Montwé
Browse files

chore(build): change gradle config to allow more memory use 6GB -> 8GB

The Kotlin Compiler is now configured to run in-process, so only one Java task is spanned. This needs more memory to run, so the allowance was increased from 6GB to 8GB.

Configuration is taken from the Nowinandroid project and increased for our needs.
parent b347f8f8
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -2,16 +2,20 @@
android.useAndroidX=true
android.enableJetifier=false
android.nonTransitiveRClass=true
## Disable buildFeatures flags by default
android.defaults.buildfeatures.aidl=false
## Disable buildFeatures flags by default: https://developer.android.com/build/releases/gradle-plugin#default-changes
android.defaults.buildfeatures.buildconfig=false
android.defaults.buildfeatures.renderscript=false
android.defaults.buildfeatures.resvalues=false
android.defaults.buildfeatures.shaders=false
# Gradle
## Ensure important default jvmargs aren't overwritten. See https://github.com/gradle/gradle/issues/19750
org.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=1 -XX:ReservedCodeCacheSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xmx8g -Xms8g
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.configuration-cache.parallel=true
org.gradle.kotlin.dsl.allWarningsAsErrors=true
# Kotlin
kotlin.code.style=official
kotlin.compiler.execution.strategy=in-process
kotlin.daemon.jvmargs=-Dfile.encoding=UTF-8 -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=1 -XX:ReservedCodeCacheSize=320m -XX:+HeapDumpOnOutOfMemoryError -Xmx8g -Xms8g