build: move app version to gradle.properties (#404)
This commit is contained in:
parent
6f7722d50b
commit
c437370a02
3 changed files with 9 additions and 8 deletions
|
|
@ -27,11 +27,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()
|
||||
setProperty("archivesBaseName", "messages-$versionCode")
|
||||
ksp {
|
||||
arg("room.schemaLocation", "$projectDir/schemas")
|
||||
|
|
@ -105,7 +105,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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
android.enableJetifier=true
|
||||
android.useAndroidX=true
|
||||
org.gradle.jvmargs=-Xmx8192m
|
||||
|
||||
# Versioning
|
||||
VERSION_NAME=1.1.7
|
||||
VERSION_CODE=10
|
||||
APP_ID=org.fossify.messages
|
||||
|
|
|
|||
|
|
@ -29,10 +29,6 @@ app-build-kotlinJVMTarget = "17"
|
|||
#Helpers
|
||||
ez-vcard = "0.11.3"
|
||||
shortcut-badger = "1.1.22"
|
||||
#versioning
|
||||
app-version-appId = "org.fossify.messages"
|
||||
app-version-versionCode = "10"
|
||||
app-version-versionName = "1.1.7"
|
||||
[libraries]
|
||||
#AndroidX
|
||||
androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "androidx-constraintlayout" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue