From df56608a5d1a5dc766413a8ed0e2f1ff08972e01 Mon Sep 17 00:00:00 2001 From: "Alinson S. Xavier" Date: Sun, 9 May 2021 17:04:42 -0500 Subject: [PATCH] Re-add signing config --- uhabits-android/build.gradle.kts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/uhabits-android/build.gradle.kts b/uhabits-android/build.gradle.kts index 72388c2fd..fb5a8bbf1 100644 --- a/uhabits-android/build.gradle.kts +++ b/uhabits-android/build.gradle.kts @@ -45,10 +45,24 @@ android { testInstrumentationRunner("androidx.test.runner.AndroidJUnitRunner") } + signingConfigs { + if (System.getenv("LOOP_KEY_ALIAS") != null) { + create("release") { + keyAlias = System.getenv("LOOP_KEY_ALIAS") + keyPassword = System.getenv("LOOP_KEY_PASSWORD") + storeFile = file(System.getenv("LOOP_KEY_STORE")) + storePassword = System.getenv("LOOP_STORE_PASSWORD") + } + } + } + buildTypes { getByName("release") { minifyEnabled(true) proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.txt") + if (signingConfigs.findByName("release") != null) { + signingConfig = signingConfigs.getByName("release") + } } getByName("debug") {