mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-14 00:45:24 -04:00
refactor(node): fetch device links from the API, drop the bundled matcher (#5765)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,7 @@ package org.meshtastic.app.di
|
||||
import org.koin.core.annotation.Module
|
||||
import org.koin.core.annotation.Single
|
||||
import org.meshtastic.core.model.NetworkDeviceHardware
|
||||
import org.meshtastic.core.model.NetworkDeviceLinksResponse
|
||||
import org.meshtastic.core.model.NetworkFirmwareReleases
|
||||
import org.meshtastic.core.network.service.ApiService
|
||||
|
||||
@@ -36,6 +37,9 @@ class FDroidNetworkModule {
|
||||
override suspend fun getDeviceHardware(): List<NetworkDeviceHardware> =
|
||||
throw UnsupportedOperationException("getDeviceHardware is not supported on F-Droid builds.")
|
||||
|
||||
override suspend fun getDeviceLinks(): NetworkDeviceLinksResponse =
|
||||
throw UnsupportedOperationException("getDeviceLinks is not supported on F-Droid builds.")
|
||||
|
||||
override suspend fun getFirmwareReleases(): NetworkFirmwareReleases =
|
||||
throw UnsupportedOperationException("getFirmwareReleases is not supported on F-Droid builds.")
|
||||
}
|
||||
|
||||
3646
androidApp/src/main/assets/device_links.json
Normal file
3646
androidApp/src/main/assets/device_links.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,126 +0,0 @@
|
||||
{
|
||||
"rokland": {
|
||||
"regions": [
|
||||
"AU",
|
||||
"AT",
|
||||
"BE",
|
||||
"CA",
|
||||
"DK",
|
||||
"EC",
|
||||
"FR",
|
||||
"DE",
|
||||
"IE",
|
||||
"JP",
|
||||
"NL",
|
||||
"NZ",
|
||||
"NO",
|
||||
"PK",
|
||||
"ES",
|
||||
"SE",
|
||||
"CH",
|
||||
"GB",
|
||||
"US"
|
||||
],
|
||||
"match": "prefix"
|
||||
},
|
||||
"hexaspot": {
|
||||
"regions": [
|
||||
"AT",
|
||||
"BE",
|
||||
"BG",
|
||||
"CY",
|
||||
"CZ",
|
||||
"DE",
|
||||
"DK",
|
||||
"EE",
|
||||
"ES",
|
||||
"FI",
|
||||
"FR",
|
||||
"GR",
|
||||
"HR",
|
||||
"HU",
|
||||
"IE",
|
||||
"IT",
|
||||
"LT",
|
||||
"LU",
|
||||
"LV",
|
||||
"MT",
|
||||
"NL",
|
||||
"NO",
|
||||
"PL",
|
||||
"PT",
|
||||
"RO",
|
||||
"SE",
|
||||
"SI",
|
||||
"SK"
|
||||
],
|
||||
"match": "prefix"
|
||||
},
|
||||
"aliexpress": {
|
||||
"regions": [],
|
||||
"match": "suffix"
|
||||
},
|
||||
"amazon": {
|
||||
"regions": [
|
||||
"AU",
|
||||
"CA",
|
||||
"FR",
|
||||
"DE",
|
||||
"IE",
|
||||
"JP",
|
||||
"NL",
|
||||
"ES",
|
||||
"SE",
|
||||
"GB",
|
||||
"US"
|
||||
],
|
||||
"match": "suffix"
|
||||
},
|
||||
"tindie": {
|
||||
"regions": [
|
||||
"US",
|
||||
"CA",
|
||||
"GB",
|
||||
"DE",
|
||||
"FR",
|
||||
"AU",
|
||||
"NL"
|
||||
],
|
||||
"match": "suffix"
|
||||
},
|
||||
"muzi": {
|
||||
"regions": [
|
||||
"AU",
|
||||
"AT",
|
||||
"BE",
|
||||
"CA",
|
||||
"CZ",
|
||||
"DK",
|
||||
"FI",
|
||||
"FR",
|
||||
"DE",
|
||||
"HK",
|
||||
"IN",
|
||||
"IE",
|
||||
"IL",
|
||||
"IT",
|
||||
"JP",
|
||||
"MY",
|
||||
"NL",
|
||||
"NZ",
|
||||
"NO",
|
||||
"PL",
|
||||
"PT",
|
||||
"SG",
|
||||
"KR",
|
||||
"ES",
|
||||
"SE",
|
||||
"CH",
|
||||
"TW",
|
||||
"AE",
|
||||
"GB",
|
||||
"US"
|
||||
],
|
||||
"match": "prefix"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user