From faac9d34dbe97a06fb0aeebfea1f2fcb58416ca4 Mon Sep 17 00:00:00 2001 From: evolvingkid Date: Sun, 2 May 2021 18:43:06 +0530 Subject: [PATCH] config for apk without key jks --- android/app/build.gradle | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 70255bf..1f5eabc 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -24,12 +24,6 @@ if (flutterVersionName == null) { apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - -def keystoreProperties = new Properties() -def keystorePropertiesFile = rootProject.file('key.properties') -if (keystorePropertiesFile.exists()) { - keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) -} android { compileSdkVersion 30 @@ -39,6 +33,7 @@ android { } defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.evolvingkid.whiteboard" minSdkVersion 16 targetSdkVersion 30 @@ -46,21 +41,13 @@ android { versionName flutterVersionName } - signingConfigs { - release { - keyAlias keystoreProperties['keyAlias'] - keyPassword keystoreProperties['keyPassword'] - storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null - storePassword keystoreProperties['storePassword'] - } - } - buildTypes { release { - signingConfig signingConfigs.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 } } - } flutter {