Commit d9f38c1fdfa1bcf61701650c0c92ac9284258179

Authored by “gaiyaguang”
1 parent 102ad3eb

合并

Showing 1 changed file with 4 additions and 4 deletions
@@ -11,12 +11,12 @@ if (flutterRoot == null) { @@ -11,12 +11,12 @@ if (flutterRoot == null) {
11 throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 11 throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 } 12 }
13 13
14 -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 14 +def flutterVersionCode = "121"
15 if (flutterVersionCode == null) { 15 if (flutterVersionCode == null) {
16 flutterVersionCode = '121' 16 flutterVersionCode = '121'
17 } 17 }
18 18
19 -def flutterVersionName = localProperties.getProperty('flutter.versionName') 19 +def flutterVersionName = "1.2.1"
20 if (flutterVersionName == null) { 20 if (flutterVersionName == null) {
21 flutterVersionName = '1.2.1' 21 flutterVersionName = '1.2.1'
22 } 22 }
@@ -43,8 +43,8 @@ android { @@ -43,8 +43,8 @@ android {
43 applicationId "com.naji.one_key" 43 applicationId "com.naji.one_key"
44 minSdkVersion 21 44 minSdkVersion 21
45 targetSdkVersion 28 45 targetSdkVersion 28
46 - versionCode 118  
47 - versionName "1.1.8" 46 + versionCode flutterVersionCode.toInteger()
  47 + versionName flutterVersionName
48 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 48 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
49 49
50 ndk { 50 ndk {