From 0ef012ac7baa8d22ac64d0f61818996848ebacf8 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 21 Jul 2023 12:10:04 +0200 Subject: [PATCH] Clarify the computation of versionCode. --- plugins/src/main/kotlin/Versions.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/src/main/kotlin/Versions.kt b/plugins/src/main/kotlin/Versions.kt index 37ffeacfa7..2e89afa70f 100644 --- a/plugins/src/main/kotlin/Versions.kt +++ b/plugins/src/main/kotlin/Versions.kt @@ -35,7 +35,12 @@ import org.gradle.jvm.toolchain.JavaLanguageVersion * Version when running the current debug build * -------10_200 * - * So adding 4_000_000 to the current version Code computed here should be fine, we will have: + * So adding 4_000_000 to the current version Code computed here should be fine, and since the versionCode + * is multiplied by 10 in app/build.gradle.kts#L168: + * ``` + * output.versionCode.set((output.versionCode.get() ?: 0) * 10 + abiCode)) + * ``` + * we will have: * Release version: * ---40_001_020 * Nightly version: