diff --git a/gradle.properties b/gradle.properties index 887bc1f10c..f627938bee 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,9 @@ # --- Android build features --- android.defaults.buildfeatures.resvalues=false android.defaults.buildfeatures.shaders=false +# Lint analysis runs in its own worker, so neither org.gradle.jvmargs nor +# kotlin.daemon.jvm.options applies to it. The default heap OOMs on a cold analysis. +android.experimental.lint.heapSize=3G # --- Compose --- android.experimental.enableScreenshotTest=true @@ -12,6 +15,9 @@ enableComposeCompilerReports=false kotlin.code.style=official kotlin.daemon.jvm.options=-Xmx4g -XX\:+UseG1GC -XX\:SoftRefLRUPolicyMSPerMB=1 -XX\:ReservedCodeCacheSize=320m -XX\:+HeapDumpOnOutOfMemoryError kotlin.daemon.useFallback=false +# The Kotlin/Native compiler runs in its own JVM, governed by neither of the heaps +# above. Its 3g default OOMs compiling every module for iOS from a cold cache. +kotlin.native.jvmArgs=-Xmx5g -XX\:+UseG1GC -XX\:+HeapDumpOnOutOfMemoryError # --- KSP --- # (incremental processing is default-on in KSP2; only the non-default flag is declared)