reason

ready for release(not now)

...@@ -25,6 +25,12 @@ apply plugin: 'com.android.application' ...@@ -25,6 +25,12 @@ apply plugin: 'com.android.application'
25 apply plugin: 'kotlin-android' 25 apply plugin: 'kotlin-android'
26 apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 27
28 +def keystoreProperties = new Properties()
29 +def keystorePropertiesFile = rootProject.file('key.properties')
30 +if (keystorePropertiesFile.exists()) {
31 + keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
32 +}
33 +
28 android { 34 android {
29 compileSdkVersion 30 35 compileSdkVersion 30
30 36
...@@ -51,13 +57,20 @@ android { ...@@ -51,13 +57,20 @@ android {
51 multiDexEnabled true 57 multiDexEnabled true
52 } 58 }
53 59
60 + signingConfigs {
61 + release {
62 + keyAlias keystoreProperties['keyAlias']
63 + keyPassword keystoreProperties['keyPassword']
64 + storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
65 + storePassword keystoreProperties['storePassword']
66 + }
67 + }
54 buildTypes { 68 buildTypes {
55 release { 69 release {
56 - // TODO: Add your own signing config for the release build. 70 + signingConfig signingConfigs.release
57 - // Signing with the debug keys for now, so `flutter run --release` works.
58 - signingConfig signingConfigs.debug
59 } 71 }
60 } 72 }
73 +
61 } 74 }
62 75
63 flutter { 76 flutter {
......