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"