Files

30 lines
1.7 KiB
Properties

# 8192m (was 6144m, before that 4096m): x64 release bundling OOM'd twice at
# 6G — packageX64FullReleaseBundle died "Java heap space" on v5.87.34 and
# signX64FullReleaseBundle's BundleToolRunnable died silently on v5.87.35,
# both passing armv7+arm64 on the same runs and both passing x64 on a rerun.
# x64 carries the largest native payload, so its AAB is the biggest bundle.
# Earlier, armv7 OOM'd the same way at 4G (#356).
org.gradle.jvmargs=-Xmx8192m -Dfile.encoding=UTF-8
# When kotlin.daemon.jvmargs is unset, the Kotlin daemon inherits the Gradle
# daemon's JVM args (documented KGP fallback), so the 6G->8G bump above raised
# BOTH daemons to 8G. On the 16G CI runners the pair plus R8's peak took the
# host past its memory and the OOM watchdog killed the runner agent itself:
# 12 "runner has received a shutdown signal" deaths on v5.87.36, every one
# 26-31 min in, mid-minify, with both daemon JVMs alive at cleanup and
# githubstatus silent throughout. Kotlin compilation is long finished by the
# R8/bundling peak; 3G is plenty for compiling the 47-module tree.
kotlin.daemon.jvmargs=-Xmx3072m
android.useAndroidX=true
kotlin.code.style=official
android.nonTransitiveRClass=true
# Reuse task outputs (compiled Kotlin, processed resources) across builds.
# In CI the build-cache dir is cached with a rolling key (see
# .github/actions/setup-toolchain) so it accumulates run-to-run, so the four
# heavy jobs stop each recompiling the whole 47-module tree from scratch.
# Cache reuse only substitutes byte-identical outputs, so release
# reproducibility (F-Droid) is unaffected.
org.gradle.caching=true
# Exploit the 47-module graph — modules with no dependency between them
# compile concurrently.
org.gradle.parallel=true