swap to manual versionCode for android

This commit is contained in:
Henry Hiles 2026-11-12 22:50:18 -05:00
commit 632be2e99b
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 2 additions and 9 deletions

View file

@ -14,13 +14,6 @@ if (keystorePropertiesFile.exists()) {
}
}
fun versionCodeOf(versionName: String): Int {
val parts = versionName.split("-", limit = 2)
val (major, minor, patch) = parts[0].split(".").map(String::toInt)
val preRelease = parts.getOrNull(1)?.let { Regex("\\d+").find(it)?.value?.toInt() ?: 0 } ?: 999
return major * 100_000_000 + minor * 1_000_000 + patch * 10_000 + preRelease
}
android {
namespace = "nexus.federated.nexus"
compileSdk = 37
@ -38,7 +31,7 @@ android {
minSdk = 29
targetSdk = flutter.targetSdkVersion
versionCode = versionCodeOf(flutter.versionName!!)
versionCode = flutter.versionCode
versionName = flutter.versionName
multiDexEnabled = true

View file

@ -1,6 +1,6 @@
name: nexus
description: "A simple and user-friendly Matrix client"
version: 1.1.1
version: 1.1.1+101010999
publish_to: none
flutter: