kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
refactor: Move MIN_DEVICE_VERSION to build config (#1946)
rodzic
6ee7b6e12d
commit
77ca2d62f0
|
@ -35,7 +35,7 @@ android {
|
||||||
versionCode Configs.VERSION_CODE // format is Mmmss (where M is 1+the numeric major number
|
versionCode Configs.VERSION_CODE // format is Mmmss (where M is 1+the numeric major number
|
||||||
versionName Configs.VERSION_NAME
|
versionName Configs.VERSION_NAME
|
||||||
testInstrumentationRunner "com.geeksville.mesh.TestRunner"
|
testInstrumentationRunner "com.geeksville.mesh.TestRunner"
|
||||||
|
buildConfigField("String", "MIN_DEVICE_VERSION", "\"${Configs.MIN_DEVICE_VERSION}\"")
|
||||||
// per https://developer.android.com/studio/write/vector-asset-studio
|
// per https://developer.android.com/studio/write/vector-asset-studio
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -185,7 +185,7 @@ class MeshService : Service(), Logging {
|
||||||
/** The minimum firmware version we know how to talk to. We'll still be able
|
/** 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.
|
* 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 {
|
enum class ConnectionState {
|
||||||
|
|
|
@ -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_CODE = 30604 // format is Mmmss (where M is 1+the numeric major number
|
||||||
const val VERSION_NAME = "2.6.4"
|
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 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
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue