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:
James Rich
2026-06-10 16:25:27 -05:00
committed by James Rich
parent 4f1d32c7b9
commit f2ee694566
23 changed files with 5643 additions and 1701 deletions

View File

@@ -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.")
}

View File

File diff suppressed because it is too large Load Diff

View File

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

View File

File diff suppressed because it is too large Load Diff