From 53f8c8dbc4ebb03a01419f6eb3eab3d77e6bb087 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 6 Apr 2023 13:55:47 +0200 Subject: [PATCH] build: remove bespoke signing config properties Keys should be in HSMs anyway, and a setup like this does not easily allow for that. Signed-off-by: Jason A. Donenfeld --- .gitignore | 2 +- ui/build.gradle | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 2755a6bc..0ab9d46e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,5 +14,5 @@ build/ *.dex *.iml *.jks -keystore.properties gradlew.bat +maint/ diff --git a/ui/build.gradle b/ui/build.gradle index 5e21010f..c0cb55bc 100644 --- a/ui/build.gradle +++ b/ui/build.gradle @@ -9,10 +9,6 @@ plugins { version wireguardVersionName group groupName -// Create a variable called keystorePropertiesFile, and initialize it to your -// keystore.properties file, in the rootProject folder. -final def keystorePropertiesFile = rootProject.file("keystore.properties") - android { compileSdk 33 buildFeatures { @@ -34,22 +30,8 @@ android { targetCompatibility JavaVersion.VERSION_1_8 coreLibraryDesugaringEnabled = true } - if (keystorePropertiesFile.exists()) { - final def keystoreProperties = new Properties() - keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) - - signingConfigs { - release { - keyAlias keystoreProperties['keyAlias'] - keyPassword keystoreProperties['keyPassword'] - storeFile rootProject.file(keystoreProperties['storeFile']) - storePassword keystoreProperties['storePassword'] - } - } - } buildTypes { release { - if (keystorePropertiesFile.exists()) signingConfig signingConfigs.release minifyEnabled true proguardFiles "proguard-android-optimize.txt", "proguard-rules.pro" packagingOptions {