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:
cketti 2023-10-04 13:53:37 +02:00
parent 97f18d313c
commit 8b9abf2bcc

View file

@ -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