diff --git a/gradle.properties b/gradle.properties index 5c4ccd0..d80cc14 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,9 +1,17 @@ #Kotlin kotlin.code.style=official -kotlin.daemon.jvmargs=-Xmx3072M +# Heap sizing for KMP builds. +# Kotlin daemon runs the K2 compiler + native linker; 4 GB headroom +# prevents long-tail OOMs during iosArm64 framework link. +# MaxMetaspaceSize caps slow class-loading leaks across daemon reuse; +# G1GC keeps pauses short during incremental builds. +kotlin.daemon.jvmargs=-Xmx4096M -XX:MaxMetaspaceSize=1g -XX:+UseG1GC #Gradle -org.gradle.jvmargs=-Xmx4096M -Dfile.encoding=UTF-8 +# Gradle daemon drives configuration cache + dependency resolution + +# Compose/Android compilers. OOMs at 4 GB during ComposeApp.framework +# generation; 6 GB is the usual safe size for projects this size. +org.gradle.jvmargs=-Xmx6144M -XX:MaxMetaspaceSize=1g -XX:+UseG1GC -Dfile.encoding=UTF-8 org.gradle.configuration-cache=true org.gradle.caching=true