refactor: Move MIN_DEVICE_VERSION to build config (#1946)

pull/1943/head
James Rich 2025-05-27 08:45:57 -05:00 zatwierdzone przez GitHub
rodzic 6ee7b6e12d
commit 77ca2d62f0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
3 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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
}

Wyświetl plik

@ -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 {

Wyświetl plik

@ -23,4 +23,5 @@ object Configs {
const val VERSION_CODE = 30604 // format is Mmmss (where M is 1+the numeric major number
const val VERSION_NAME = "2.6.4"
const val USE_CRASHLYTICS = true // Set to false if you don't want to use Firebase Crashlytics
const val MIN_DEVICE_VERSION = "2.5.14" // Minimum device firmware version supported by this app
}