build: move app version to gradle.properties (#158)

This commit is contained in:
Naveen Singh
2025-05-26 14:13:36 +05:30
committed by GitHub
parent 34707aa825
commit 03340c7b57
3 changed files with 9 additions and 8 deletions

View File

@@ -26,11 +26,11 @@ android {
compileSdk = project.libs.versions.app.build.compileSDKVersion.get().toInt()
defaultConfig {
applicationId = libs.versions.app.version.appId.get()
applicationId = project.property("APP_ID").toString()
minSdk = project.libs.versions.app.build.minimumSDK.get().toInt()
targetSdk = project.libs.versions.app.build.targetSDK.get().toInt()
versionName = project.libs.versions.app.version.versionName.get()
versionCode = project.libs.versions.app.version.versionCode.get().toInt()
versionName = project.property("VERSION_NAME").toString()
versionCode = project.property("VERSION_CODE").toString().toInt()
multiDexEnabled = true
vectorDrawables.useSupportLibrary = true
setProperty("archivesBaseName", "keyboard-$versionCode")
@@ -106,7 +106,7 @@ android {
kotlinOptions.jvmTarget = project.libs.versions.app.build.kotlinJVMTarget.get()
}
namespace = libs.versions.app.version.appId.get()
namespace = project.property("APP_ID").toString()
lint {
checkReleaseBuilds = false

View File

@@ -2,3 +2,8 @@ android.enableJetifier=true
android.useAndroidX=true
android.nonTransitiveRClass=false
org.gradle.jvmargs=-Xmx4g
# Versioning
VERSION_NAME=1.1.1
VERSION_CODE=3
APP_ID=org.fossify.keyboard

View File

@@ -20,10 +20,6 @@ app-build-targetSDK = "34"
app-build-minimumSDK = "26"
app-build-javaVersion = "VERSION_17"
app-build-kotlinJVMTarget = "17"
#versioning
app-version-appId = "org.fossify.keyboard"
app-version-versionCode = "3"
app-version-versionName = "1.1.1"
[libraries]
#AndroidX
androidx-autofill = { module = "androidx.autofill:autofill", version.ref = "androidx-autofill" }