mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-01-28 17:32:26 -05:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user