mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-02 19:17:21 +00:00
Port upstream PR #242 data layer: per-source enabled toggles and HTTP status codes for custom data sources. - IRemoteSource: NetworkResult(code, stream) + getNetworkStream - RemoteSource: return HTTP status code (200 ok / error code / ERR) - ISettingsRepo: dataSourcesStatus StateFlow<Map<String,Int>> - SettingsRepo: persist enabled flags (single JSON per key) + status - DatabaseRepo: filter by enabled toggles, write back status codes - Settings.kt: DataSourcesSettings + satelliteEnabled/transceiversEnabled - Sync test fakes (AmSatRepositoryTest, DatabaseRepoTest, Fakes.kt) Fork-specific features preserved: builtinTypesByUrl reverse lookup, satnogs migration, map-type data source structure.