ci(build): add dynamic version extraction from git tags

This commit is contained in:
zarazaex69
2026-04-08 11:07:51 +03:00
parent dd4a55b831
commit fa302edddd
2 changed files with 26 additions and 2 deletions
+7 -2
View File
@@ -12,8 +12,13 @@ android {
applicationId = "xyz.zarazaex.olc"
minSdk = 24
targetSdk = 36
versionCode = 717
versionName = "2.0.17"
val envVersionName = System.getenv("VERSION_NAME")
val envVersionCode = System.getenv("VERSION_CODE")
versionCode = envVersionCode?.toIntOrNull() ?: 717
versionName = envVersionName ?: "2.0.17"
multiDexEnabled = true
val abiFilterList = (properties["ABI_FILTERS"] as? String)?.split(';')