From 0b8d743e4dfe118c8a6bab9aa1803d5d043c4a60 Mon Sep 17 00:00:00 2001 From: Markin Igor <markin.io210@gmail.com> Date: Mon, 29 Jul 2019 11:24:42 +0500 Subject: [PATCH] Update package name and add key store. --- .gitignore | 1 + android/app/build.gradle | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ac4a906..511b40a 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ **/android/gradlew **/android/gradlew.bat **/android/local.properties +**/android/key.properties **/android/**/GeneratedPluginRegistrant.java # iOS/XCode related diff --git a/android/app/build.gradle b/android/app/build.gradle index 22123cb..aac0ff6 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -24,6 +24,12 @@ if (flutterVersionName == null) { apply plugin: 'com.android.application' 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 28 @@ -41,6 +47,15 @@ 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. @@ -54,7 +69,7 @@ android { productFlavors { development { dimension "flavor-type" - applicationIdSuffix ".dev" + applicationIdSuffix ".development" versionNameSuffix "-dev" manifestPlaceholders = [appLabel:"Vereign-dev"] } -- GitLab