auto replace app_version with versionName

This commit is contained in:
ShirosakiMio 2023-08-01 20:19:23 +08:00
parent 86254ec32e
commit f32848673c
2 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,9 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
configureEach {
resValue "string", "app_version", "${defaultConfig.versionName}"
}
}
applicationVariants.configureEach { variant ->
variant.outputs.configureEach { output ->

View File

@ -3,7 +3,7 @@
"type": "release",
"versionCode": 9,
"versionName": "1.0.6",
"date": "2023.7.31",
"date": "2023.8.1",
"description": [
{
"lang": "en",