# Keep compilation sequential and share the Gradle heap with Kotlin/JVM. # Native tools and test JVMs still allocate memory outside this heap. # Size the shared heap from the host; Codemagic's mac_mini_m2 has 8 GB RAM. org.gradle.jvmargs=-XX:MaxRAMPercentage=75 -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8 kotlin.daemon.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8 kotlin.compiler.execution.strategy=in-process org.gradle.workers.max=1 # Compile release dependencies into separate native caches instead of loading every # dependency into one whole-program optimization. Both switches are required by Kotlin 2.4.20. # https://kotlinlang.org/docs/native-improving-compilation-time.html#enable-caches-for-release-binaries kotlin.native.binary.enableReleaseBinaryCache=true kotlin.internal.native.enableReleaseBinaryCache=true org.gradle.caching=true org.gradle.parallel=false kotlin.code.style=official android.useAndroidX=true android.nonTransitiveRClass=true kotlin.mpp.enableCInteropCommonization=true