From 45e6f5b7aa647ce99fc61c2cc2ad053d74e4bea3 Mon Sep 17 00:00:00 2001 From: Philipp Bauer Date: Sat, 18 May 2024 14:17:18 +0200 Subject: [PATCH] Add accidentally removed signingConfig --- android/app/build.gradle | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/android/app/build.gradle b/android/app/build.gradle index 326daa1..81e5406 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -23,6 +23,14 @@ if (flutterVersionName == null) { flutterVersionName = "1.0" } +def keystoreProperties = new Properties() +def keystorePropertiesFile = rootProject.file('key.properties') +if (keystorePropertiesFile.exists()) { + keystorePropertiesFile.withReader('UTF-8') { reader -> + keystoreProperties.load(reader) + } +} + android { namespace = "com.ciriousjoker.amidoneyet" compileSdk = flutter.compileSdkVersion @@ -43,6 +51,15 @@ android { versionName = flutterVersionName } + signingConfigs { + release { + keyAlias keystoreProperties['keyAlias'] + keyPassword keystoreProperties['keyPassword'] + storeFile keystoreProperties['storeFile'] ? rootProject.file(keystoreProperties['storeFile']) : null + storePassword keystoreProperties['storePassword'] + } + } + buildTypes { debug { applicationIdSuffix ".debug"