From bed054fa8a6313fa6746a5b305a3cdae426fcf1d Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 2 Jul 2024 23:04:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=89=88=E6=9C=AC=E5=A4=84?= =?UTF-8?q?=E7=90=86=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 31448f6..ecae010 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,6 +2,13 @@ plugins { id 'com.android.application' } +def AppMajorVersion = 1 +def AppMinorVersion = 0 +def AppBuildNumber = 3 + +def AppVersionName = AppMajorVersion + "." + AppMinorVersion + "." + AppBuildNumber +def AppVersionCode = AppMajorVersion * 100000 + AppMinorVersion * 1000 + AppBuildNumber + android { compileSdk 32 @@ -9,8 +16,8 @@ android { applicationId "com.xypower.mpremote" minSdk 24 targetSdk 28 - versionCode 2 - versionName "1.2" + versionCode AppVersionCode + versionName AppVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" externalNativeBuild {