chore(analytics): Disable Google services for F-Droid builds (#3264)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich
2025-09-30 21:25:04 -05:00
committed by GitHub
parent 7593560bba
commit 0b4104fedf

View File

@@ -43,6 +43,17 @@ dependencies {
googleImplementation(libs.bundles.datadog)
}
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
}
}
android {
buildFeatures { buildConfig = true }
namespace = "org.meshtastic.core.analytics"