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 <Jason@zx2c4.com>
This commit is contained in:
parent
1328660b0b
commit
53f8c8dbc4
2
.gitignore
vendored
2
.gitignore
vendored
@ -14,5 +14,5 @@ build/
|
|||||||
*.dex
|
*.dex
|
||||||
*.iml
|
*.iml
|
||||||
*.jks
|
*.jks
|
||||||
keystore.properties
|
|
||||||
gradlew.bat
|
gradlew.bat
|
||||||
|
maint/
|
||||||
|
@ -9,10 +9,6 @@ plugins {
|
|||||||
version wireguardVersionName
|
version wireguardVersionName
|
||||||
group groupName
|
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 {
|
android {
|
||||||
compileSdk 33
|
compileSdk 33
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
@ -34,22 +30,8 @@ android {
|
|||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
coreLibraryDesugaringEnabled = true
|
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 {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
if (keystorePropertiesFile.exists()) signingConfig signingConfigs.release
|
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
proguardFiles "proguard-android-optimize.txt", "proguard-rules.pro"
|
proguardFiles "proguard-android-optimize.txt", "proguard-rules.pro"
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
|
Loading…
Reference in New Issue
Block a user