build: add release signing config for fdroidRelease
This commit is contained in:
parent
522763b33a
commit
167a2e1e2f
@ -44,6 +44,28 @@ android {
|
|||||||
keyPassword = properties.getProperty('SIGNING_KEY_PASSWORD')
|
keyPassword = properties.getProperty('SIGNING_KEY_PASSWORD')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
release{
|
||||||
|
storeFile = file("keystore/release_keystore.jks")
|
||||||
|
storePassword System.getenv("RELEASE_SIGNING_STORE_PASSWORD")
|
||||||
|
if (storePassword == null) {
|
||||||
|
Properties properties = new Properties()
|
||||||
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||||
|
storePassword = properties.getProperty('RELEASE_SIGNING_STORE_PASSWORD')
|
||||||
|
}
|
||||||
|
keyAlias System.getenv("RELEASE_SIGNING_KEY_ALIAS")
|
||||||
|
if (keyAlias == null) {
|
||||||
|
Properties properties = new Properties()
|
||||||
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||||
|
keyAlias = properties.getProperty('RELEASE_SIGNING_KEY_ALIAS')
|
||||||
|
}
|
||||||
|
keyPassword System.getenv("RELEASE_SIGNING_KEY_PASSWORD")
|
||||||
|
if (keyPassword == null) {
|
||||||
|
Properties properties = new Properties()
|
||||||
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||||
|
keyPassword = properties.getProperty('RELEASE_SIGNING_KEY_PASSWORD')
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
@ -81,7 +103,10 @@ android {
|
|||||||
versionNameSuffix '-play'
|
versionNameSuffix '-play'
|
||||||
}
|
}
|
||||||
githubRelease { initWith release }
|
githubRelease { initWith release }
|
||||||
fdroidRelease { initWith release }
|
fdroidRelease {
|
||||||
|
initWith release
|
||||||
|
signingConfig signingConfigs.release
|
||||||
|
}
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility JavaVersion.VERSION_17
|
sourceCompatibility JavaVersion.VERSION_17
|
||||||
|
Loading…
Reference in New Issue
Block a user