diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 89e537b..46feed1 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -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 diff --git a/pubspec.yaml b/pubspec.yaml index 76f274f..29c1fb8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: