# Project-wide Gradle settings. # C1-only JIT (-XX:TieredStopAtLevel=1): the Gitea runner's JVMs have been # crashing intermittently (SIGSEGV in HotSpot's compiler, bad Kotlin compiler # codegen) on Zulu, Corretto and Temurin alike. Dropping C2 is the test for # whether the optimising JIT is the trigger; it costs some build speed. The # Kotlin daemon needs its own copy: setting its options stops it inheriting # org.gradle.jvmargs. org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -XX:TieredStopAtLevel=1 kotlin.daemon.jvm.options=-Xmx2048m,-XX:TieredStopAtLevel=1 org.gradle.parallel=true org.gradle.caching=true # AndroidX android.useAndroidX=true # Kotlin code style kotlin.code.style=official # Only build the resources needed for the configuration being built. android.nonTransitiveRClass=true # The version series every build and every release tag is named for: an APK is # ., a production tag is v. and a dev tag adds # -dev. It lives here rather than in the build file because the workflows have # to name the tag as well, and they read it straight out of this file — three # copies of "1.2" would be three chances for a release to be tagged one thing # and built as another. # # Only the series is set by hand. The number after it is the CI run number, so # it keeps climbing on its own and an APK's versionCode never goes backwards # when this changes. plgVersionSeries=1.4 # The permanent floor under every stamped build number: versionCode, versionName # and the release tag are all `run number + this`. Run numbers restart at 1 on a # new CI host (Gitea Actions), and Android refuses any versionCode lower than the # one installed, so without a floor the first build after a move would look like # a downgrade. 1000 sits above every number GitHub reached (prod 30, dev ~172). # Set once and never changed. plgVersionRunOffset=1000