Skip to content

Commit 53f8c8d

Browse files
committed
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 <[email protected]>
1 parent 1328660 commit 53f8c8d

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ build/
1414
*.dex
1515
*.iml
1616
*.jks
17-
keystore.properties
1817
gradlew.bat
18+
maint/

ui/build.gradle

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ plugins {
99
version wireguardVersionName
1010
group groupName
1111

12-
// Create a variable called keystorePropertiesFile, and initialize it to your
13-
// keystore.properties file, in the rootProject folder.
14-
final def keystorePropertiesFile = rootProject.file("keystore.properties")
15-
1612
android {
1713
compileSdk 33
1814
buildFeatures {
@@ -34,22 +30,8 @@ android {
3430
targetCompatibility JavaVersion.VERSION_1_8
3531
coreLibraryDesugaringEnabled = true
3632
}
37-
if (keystorePropertiesFile.exists()) {
38-
final def keystoreProperties = new Properties()
39-
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
40-
41-
signingConfigs {
42-
release {
43-
keyAlias keystoreProperties['keyAlias']
44-
keyPassword keystoreProperties['keyPassword']
45-
storeFile rootProject.file(keystoreProperties['storeFile'])
46-
storePassword keystoreProperties['storePassword']
47-
}
48-
}
49-
}
5033
buildTypes {
5134
release {
52-
if (keystorePropertiesFile.exists()) signingConfig signingConfigs.release
5335
minifyEnabled true
5436
proguardFiles "proguard-android-optimize.txt", "proguard-rules.pro"
5537
packagingOptions {

0 commit comments

Comments
 (0)