From 50d9877446584a41450cb0d510ad8d868ffc1f7d Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 28 Aug 2018 12:17:27 -0400 Subject: [PATCH] Sign debug builds with custom keystore if applicable --- app/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 43a76c748..41bdb66db 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -23,6 +23,11 @@ android { } buildTypes { + debug { + // If keystore exists, sign the APK with custom signature + if (signingConfigs.config.storeFile.exists()) + signingConfig signingConfigs.config + } release { minifyEnabled true shrinkResources true