From 16e7de4bfeee84cc946140049dd28e56a2d2f3bf Mon Sep 17 00:00:00 2001 From: huzongyao Date: Tue, 7 May 2019 17:36:53 +0800 Subject: [PATCH] update version 1.0.3 --- app/build.gradle | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index fe33f4e..3b928d1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -15,8 +15,8 @@ android { applicationId "com.hzy.chinese.jchess" minSdkVersion 15 targetSdkVersion 28 - versionCode 3 - versionName "1.0.2" + versionCode 4 + versionName "1.0.3" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { @@ -34,6 +34,13 @@ android { targetCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8 } + applicationVariants.all { variant -> + variant.outputs.all { + def fileName = project.name + '-' + variant.name + '-V' + + defaultConfig.versionCode + ".apk" + outputFileName = fileName + } + } } dependencies {