From c7578f8ba56065dba8e2b34f2b97076b86ef9dcf Mon Sep 17 00:00:00 2001 From: fengyuecanzhu <1021300691@qq.com> Date: Fri, 29 Apr 2022 19:20:11 +0800 Subject: [PATCH] change debug config --- app/build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index d178144..0d6d0ae 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -24,6 +24,8 @@ def releaseTime() { 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 versionCodeFile = file('version_code.properties') if (versionCodeFile.canRead()) { @@ -119,7 +121,8 @@ android { if (keyPropsFile.exists()) { signingConfig signingConfigs.myConifg } - versionNameSuffix "-debug" + applicationIdSuffix ".debug" + versionNameSuffix "-" + gitCommits ndk { abiFilters "arm64-v8a" }