From c72bd624a15008db618f21c3c97559209c0ae67a Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Wed, 28 Feb 2024 19:36:30 +0100 Subject: [PATCH] Add a config to automatically sign releases --- app/build.gradle | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index a9aa8f3..589cc89 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -30,6 +30,25 @@ android { jvmTarget = '17' } + // From https://stackoverflow.com/a/21020469 + signingConfigs { + release { + storeFile file(RELEASE_STORE_FILE) + storePassword RELEASE_STORE_PASSWORD + keyAlias RELEASE_KEY_ALIAS + keyPassword RELEASE_KEY_PASSWORD + + // Optional, specify signing versions used + v1SigningEnabled true + v2SigningEnabled true + } + } + buildTypes { + release { + signingConfig signingConfigs.release + } + } + namespace 'foss.cnugteren.nlweer' }