|
@@ -24,6 +24,10 @@ if (flutterVersionName == null) {
|
|
|
apply plugin: 'com.android.application'
|
|
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
|
|
|
|
|
+def keystorePropertiesFile = rootProject.file("key.properties")
|
|
|
+def keystoreProperties = new Properties()
|
|
|
+keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
+
|
|
|
android {
|
|
|
compileSdkVersion 28
|
|
|
|
|
@@ -40,11 +44,20 @@ android {
|
|
|
versionName flutterVersionName
|
|
|
}
|
|
|
|
|
|
+ signingConfigs {
|
|
|
+ release {
|
|
|
+ keyAlias keystoreProperties['keyAlias']
|
|
|
+ keyPassword keystoreProperties['keyPassword']
|
|
|
+ storeFile file(keystoreProperties['storeFile'])
|
|
|
+ storePassword keystoreProperties['storePassword']
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
buildTypes {
|
|
|
release {
|
|
|
// TODO: Add your own signing config for the release build.
|
|
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
|
|
- signingConfig signingConfigs.debug
|
|
|
+ signingConfig signingConfigs.release
|
|
|
}
|
|
|
}
|
|
|
}
|