From 9dce7e94db09c035cbeb0219c189fc587fb9d48c Mon Sep 17 00:00:00 2001 From: Miquel Beltran Date: Sun, 6 Oct 2019 20:14:54 +0200 Subject: [PATCH] Set signing key to debug by default --- android/README.md | 4 ++++ android/app/build.gradle | 19 ++++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/android/README.md b/android/README.md index a9c2c4f..c4a8b3f 100644 --- a/android/README.md +++ b/android/README.md @@ -22,4 +22,8 @@ storeFile=../key.jks Where you set the `storePassword` and the `keyPassword`. You can also change the alias. +You will need to uncomment the section `signingConfigs` in the `app/build.gradle`. + +And change the `signingConfig signingConfigs.debug` to `signingConfig signingConfigs.release`. + You can also provide this files from your CI instead of including this in the project. diff --git a/android/app/build.gradle b/android/app/build.gradle index 5ce9b6e..ed76c25 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -53,14 +53,15 @@ android { testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } - signingConfigs { - release { - keyAlias keystoreProperties['keyAlias'] - keyPassword keystoreProperties['keyPassword'] - storeFile file(keystoreProperties['storeFile']) - storePassword keystoreProperties['storePassword'] - } - } +// signingConfigs { +// release { +// keyAlias keystoreProperties['keyAlias'] +// keyPassword keystoreProperties['keyPassword'] +// storeFile file(keystoreProperties['storeFile']) +// storePassword keystoreProperties['storePassword'] +// } +// } + buildTypes { debug { // app id will be "de.janoodle.circlesApp.debug" @@ -69,7 +70,7 @@ android { release { // NOTE: ProGuard is not enabled at the moment // See: https://flutter.dev/docs/deployment/android to enable it - signingConfig signingConfigs.release + signingConfig signingConfigs.debug } }