From 568c8a457b79eba0437c9151ed8f1f677d4148da Mon Sep 17 00:00:00 2001 From: Iiro Krankka Date: Mon, 2 Apr 2018 22:08:40 +0300 Subject: [PATCH 1/2] Update release config for android. --- android/app/build.gradle | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index fd045803..a2eebbf5 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -14,6 +14,10 @@ if (flutterRoot == 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 27 @@ -30,11 +34,17 @@ android { testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } + 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 } } } From 6cbcc5942cdcfe6cd11fa720ce90db44dd1f7d14 Mon Sep 17 00:00:00 2001 From: Iiro Krankka Date: Tue, 3 Apr 2018 21:36:25 +0300 Subject: [PATCH 2/2] Added a placeholder for the TMDB api key.