Skip to content

RF Sentinel (RFSentinel): free, open-source police detector app for Android. Spots police body cams, Flock ALPR cameras, AirTag trackers, Remote ID drones, smart glasses and fake cell towers from Bluetooth LE and WiFi. No root.

FOSS build carries no Mapbox token, so F-Droid's build of it matches ours

CIS-C0d7f6c30462e1
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 6e45325..63b51b7 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -43,7 +43,6 @@ android {
versionName = appVersionName
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
- buildConfigField("String", "MAPBOX_TOKEN", "\"$mapboxToken\"")
}
signingConfigs {
@@ -61,8 +60,15 @@ android {
// anyone who wants it; the map is OpenFreeMap. Same app ID, so either one replaces the other.
flavorDimensions += "maps"
productFlavors {
- if (!fossOnly) create("full") { dimension = "maps" }
- create("foss") { dimension = "maps" }
+ if (!fossOnly) create("full") {
+ dimension = "maps"
+ buildConfigField("String", "MAPBOX_TOKEN", "\"$mapboxToken\"")
+ }
+ // No token in the FOSS build: it has no Mapbox map, and F-Droid's build of it must match ours byte for byte.
+ create("foss") {
+ dimension = "maps"
+ buildConfigField("String", "MAPBOX_TOKEN", "\"\"")
+ }
}
buildTypes {