diff --git a/android/app/build.gradle b/android/app/build.gradle
index 7766687..4c34ce2 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -3,6 +3,11 @@ plugins {
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
+def keystoreProperties = new Properties()
+def keystorePropertiesFile = rootProject.file('key.properties')
+if (keystorePropertiesFile.exists()) {
+ keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
+}
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
@@ -50,12 +55,19 @@ android {
versionCode flutterVersionCode.toInteger()
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
}
}
}
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index feb0cbd..37f7207 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -17,12 +17,12 @@
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->