Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b9abf2b authored by cketti's avatar cketti
Browse files

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.
parent 97f18d31
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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