From 072471e4bb4a69bc017ce33f8b323072a1d769da Mon Sep 17 00:00:00 2001 From: Gus Narea Date: Fri, 16 Apr 2021 14:23:57 +0100 Subject: [PATCH] chore: Implement app signing (#44) --- app/build.gradle | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index fcfd7c1c..8e401005 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -30,10 +30,27 @@ android { } } + signingConfigs { + debug {} + + if (project.hasProperty('signingKeystorePath')) { + release { + storeFile file(signingKeystorePath) + storePassword System.getenv("ANDROID_KEYSTORE_PASSWORD") + keyAlias System.getenv("ANDROID_KEYSTORE_KEY_ALIAS") + keyPassword System.getenv("ANDROID_KEYSTORE_KEY_PASSWORD") + } + } + } + buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + + if (project.hasProperty('signingKeystorePath')) { + signingConfig signingConfigs.release + } } } compileOptions {