mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: Move MIN_DEVICE_VERSION to build config (#1946)
This commit is contained in:
parent
6ee7b6e12d
commit
77ca2d62f0
3 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue