using local json to control the current version
This commit is contained in:
parent
a40cb1d05f
commit
33e3ad3a4b
|
@ -10,8 +10,9 @@ android {
|
||||||
ndkVersion "25.0.8141415"
|
ndkVersion "25.0.8141415"
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "app.dapk.st"
|
applicationId "app.dapk.st"
|
||||||
versionCode 2
|
def versionJson = new groovy.json.JsonSlurper().parseText(rootProject.file('version.json').text)
|
||||||
versionName "0.0.1-alpha1"
|
versionCode versionJson.code
|
||||||
|
versionName versionJson.name
|
||||||
resConfigs "en"
|
resConfigs "en"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,6 +24,7 @@ android {
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
debug {
|
debug {
|
||||||
|
versionNameSuffix =" [debug]"
|
||||||
matchingFallbacks = ['release']
|
matchingFallbacks = ['release']
|
||||||
signingConfig.storeFile rootProject.file("tools/debug.keystore")
|
signingConfig.storeFile rootProject.file("tools/debug.keystore")
|
||||||
}
|
}
|
||||||
|
@ -33,6 +35,8 @@ android {
|
||||||
'proguard/app.pro',
|
'proguard/app.pro',
|
||||||
"proguard/serializationx.pro",
|
"proguard/serializationx.pro",
|
||||||
"proguard/olm.pro"
|
"proguard/olm.pro"
|
||||||
|
|
||||||
|
// actual releases are signed with a different config
|
||||||
signingConfig = buildTypes.debug.signingConfig
|
signingConfig = buildTypes.debug.signingConfig
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"name": "0.0.1-alpha01",
|
||||||
|
"code": 2
|
||||||
|
}
|
Loading…
Reference in New Issue