chore(fdroid): Configure F-Droid build variant (#3265)

This commit is contained in:
James Rich 2025-09-30 21:56:16 -05:00 committed by GitHub
parent 0b4104fedf
commit 668b44d3b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 1 deletions

View file

@ -152,6 +152,10 @@ android {
} else {
signingConfig = signingConfigs.getByName("debug")
}
productFlavors.getByName("fdroid") {
isMinifyEnabled = false
isShrinkResources = false
}
}
}
bundle { language { enableSplit = false } }
@ -220,6 +224,21 @@ dependencies {
dokkaPlugin(libs.dokka.android.documentation.plugin)
}
val googleServiceKeywords = listOf("crashlytics", "google", "datadog")
tasks.configureEach {
if (
googleServiceKeywords.any {
name.contains(
it,
ignoreCase = true
)
} && name.contains("fdroid", ignoreCase = true)
) {
project.logger.lifecycle("Disabling task for F-Droid: $name")
enabled = false
}
}
dokka {
moduleName.set("Meshtastic App")
dokkaSourceSets.main {

View file

@ -25,7 +25,7 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Ensure important default jvmargs aren't overwritten. See https://github.com/gradle/gradle/issues/19750
org.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=1g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=2g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit