fix(config): reorder location properties
Move locationSearchProvider and googleMapsApiKey properties in Global.kt and en_US.json to be positioned between 'spoofLocation' and 'coordinates'. This ensures they appear in the correct order in any auto-generated feature lists, while maintaining their manual placement in BetterLocationRoot.kt.
This commit is contained in:
@@ -1634,6 +1634,14 @@
|
||||
"name": "Spoof Location",
|
||||
"description": "Spoofs your location to a specified one"
|
||||
},
|
||||
"location_search_provider": {
|
||||
"name": "Location Search Provider",
|
||||
"description": "Choose the provider for searching locations"
|
||||
},
|
||||
"google_maps_api_key": {
|
||||
"name": "Google Maps API Key",
|
||||
"description": "Required if using Google Maps provider"
|
||||
},
|
||||
"coordinates": {
|
||||
"name": "Coordinates",
|
||||
"description": "Set the coordinates of the spoofed location"
|
||||
@@ -1661,14 +1669,6 @@
|
||||
"show_battery_level": {
|
||||
"name": "Show Battery Level",
|
||||
"description": "Shows the battery level of your friends on the map"
|
||||
},
|
||||
"location_search_provider": {
|
||||
"name": "Location Search Provider",
|
||||
"description": "Choose the provider for searching locations"
|
||||
},
|
||||
"google_maps_api_key": {
|
||||
"name": "Google Maps API Key",
|
||||
"description": "Required if using Google Maps provider"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -20,17 +20,17 @@ class Global : ConfigContainer() {
|
||||
}
|
||||
|
||||
inner class BetterLocationConfig : ConfigContainer(hasGlobalState = true) {
|
||||
val spoofLocation = boolean("spoof_location")
|
||||
val coordinates = mapCoordinates("coordinates", 0.0 to 0.0) { addFlags(ConfigFlag.SENSITIVE) } // lat, long
|
||||
val walkRadius = string("walk_radius") { requireRestart(); inputCheck = { it.toDoubleOrNull()?.isFinite() == true && it.toDouble() >= 0.0 } }
|
||||
val alwaysUpdateLocation = boolean("always_update_location") { requireRestart() }
|
||||
val suspendLocationUpdates = boolean("suspend_location_updates")
|
||||
val spoofBatteryLevel = string("spoof_battery_level") { requireRestart(); inputCheck = { it.isEmpty() || it.toIntOrNull() in 0..100 } }
|
||||
val spoofHeadphones = boolean("spoof_headphones") { requireRestart() }
|
||||
val showBatteryLevel = boolean("show_battery_level") { requireRestart() }
|
||||
val spoofLocation = boolean("spoof_location")
|
||||
val locationSearchProvider = unique("location_search_provider", "osm", "google_maps") { addFlags(ConfigFlag.NO_DISABLE_KEY) }
|
||||
val googleMapsApiKey = string("google_maps_api_key") { addFlags(ConfigFlag.SENSITIVE) }
|
||||
}
|
||||
val googleMapsApiKey = string("google_maps_api_key") { addFlags(ConfigFlag.SENSITIVE) }
|
||||
val coordinates = mapCoordinates("coordinates", 0.0 to 0.0) { addFlags(ConfigFlag.SENSITIVE) } // lat, long
|
||||
val walkRadius = string("walk_radius") { requireRestart(); inputCheck = { it.toDoubleOrNull()?.isFinite() == true && it.toDouble() >= 0.0 } }
|
||||
val alwaysUpdateLocation = boolean("always_update_location") { requireRestart() }
|
||||
val suspendLocationUpdates = boolean("suspend_location_updates")
|
||||
val spoofBatteryLevel = string("spoof_battery_level") { requireRestart(); inputCheck = { it.isEmpty() || it.toIntOrNull() in 0..100 } }
|
||||
val spoofHeadphones = boolean("spoof_headphones") { requireRestart() }
|
||||
val showBatteryLevel = boolean("show_battery_level") { requireRestart() }
|
||||
}
|
||||
|
||||
inner class MediaUploadQualityConfig : ConfigContainer() {
|
||||
val forceVideoUploadSourceQuality = boolean("force_video_upload_source_quality") { requireRestart() }
|
||||
|
||||
Reference in New Issue
Block a user