change debug config

pull/21/head
fengyuecanzhu 3 years ago
parent a6e1ce2a21
commit c7578f8ba5
  1. 5
      app/build.gradle

@ -24,6 +24,8 @@ def releaseTime() {
return new Date().format("yy.MMddHH", TimeZone.getTimeZone("GMT+08:00")) return new Date().format("yy.MMddHH", TimeZone.getTimeZone("GMT+08:00"))
} }
def gitCommits = Integer.parseInt('git rev-list HEAD --count'.execute().text.trim())
def getVersionCode() { def getVersionCode() {
def versionCodeFile = file('version_code.properties') def versionCodeFile = file('version_code.properties')
if (versionCodeFile.canRead()) { if (versionCodeFile.canRead()) {
@ -119,7 +121,8 @@ android {
if (keyPropsFile.exists()) { if (keyPropsFile.exists()) {
signingConfig signingConfigs.myConifg signingConfig signingConfigs.myConifg
} }
versionNameSuffix "-debug" applicationIdSuffix ".debug"
versionNameSuffix "-" + gitCommits
ndk { ndk {
abiFilters "arm64-v8a" abiFilters "arm64-v8a"
} }

Loading…
Cancel
Save