Fix F-Droid build
fdroidserver contains code to strip signing config blocks from `build.gradle[.kts]` files. That code also removed the assignment inside the `let` lambda. This in turn lead to Gradle failing the compilation of the Kotlin script because the argument `releaseSigningConfig` was unused 😞
Adding the "F-Droid hack" comment in this line prevents fdroidserver's regular expression from matching and removing this line.
This commit is contained in:
parent
97f18d313c
commit
8b9abf2bcc
1 changed files with 3 additions and 1 deletions
|
@ -84,7 +84,9 @@ android {
|
|||
buildTypes {
|
||||
release {
|
||||
signingConfigs.findByName("release")?.let { releaseSigningConfig ->
|
||||
signingConfig = releaseSigningConfig
|
||||
// The comment in the line below is necessary to prevent F-Droid's build tools from breaking our Gradle
|
||||
// config when stripping the signing config.
|
||||
signingConfig = releaseSigningConfig // F-Droid hack
|
||||
}
|
||||
|
||||
isMinifyEnabled = true
|
||||
|
|
Loading…
Reference in a new issue