refactor: Move MIN_DEVICE_VERSION to build config (#1946)

This commit is contained in:
James Rich 2025-05-27 08:45:57 -05:00 committed by GitHub
parent 6ee7b6e12d
commit 77ca2d62f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View file

@ -35,7 +35,7 @@ android {
versionCode Configs.VERSION_CODE // format is Mmmss (where M is 1+the numeric major number
versionName Configs.VERSION_NAME
testInstrumentationRunner "com.geeksville.mesh.TestRunner"
buildConfigField("String", "MIN_DEVICE_VERSION", "\"${Configs.MIN_DEVICE_VERSION}\"")
// per https://developer.android.com/studio/write/vector-asset-studio
vectorDrawables.useSupportLibrary = true
}

View file

@ -185,7 +185,7 @@ class MeshService : Service(), Logging {
/** The minimum firmware version we know how to talk to. We'll still be able
* to talk to 2.0 firmwares but only well enough to ask them to firmware update.
*/
val minDeviceVersion = DeviceVersion("2.3.15")
val minDeviceVersion = DeviceVersion(BuildConfig.MIN_DEVICE_VERSION)
}
enum class ConnectionState {