diff --git a/core/data/src/test/java/com/rtbishop/look4sat/core/data/repository/SelectionRepoSearchTest.kt b/core/data/src/test/java/com/rtbishop/look4sat/core/data/repository/SelectionRepoSearchTest.kt index 25f4694e..6a214d35 100644 --- a/core/data/src/test/java/com/rtbishop/look4sat/core/data/repository/SelectionRepoSearchTest.kt +++ b/core/data/src/test/java/com/rtbishop/look4sat/core/data/repository/SelectionRepoSearchTest.kt @@ -114,12 +114,13 @@ class SelectionRepoSearchTest { @Test fun `FM virtual type shows only hardcoded FM satellites`() = runTest { - val repo = createRepo(sampleItems) + // AO-123 ASRTU-1 (61781) is on the hardcoded FM list; a random + // satellite (99999) is not. + val items = sampleItems + SatItem(catnum = 61781, name = "ASRTU-1") + val repo = createRepo(items) repo.setTypes(listOf("AMSAT Live FM")) val results = repo.getEntriesFlow().first() - // Hardcoded FM list: SO-50 (27607), ISS ZARYA (25544), AO-123 (43137). - // Only ISS ZARYA is present in the sample DB. - assertEquals(listOf(25544), results.map { it.catnum }) + assertEquals(setOf(25544, 61781), results.map { it.catnum }.toSet()) } @Test @@ -192,7 +193,7 @@ class SelectionRepoSearchTest { @Test fun `virtual type with no matching satellites shows empty not everything`() = runTest { - // 硬编码 FM 列表 (27607/25544/43137) 里没有样本库中的卫星时, 选虚拟 + // 硬编码 FM 列表 (27607/25544/61781) 里没有样本库中的卫星时, 选虚拟 // 类型应显示空列表, 而非全部卫星. val items = listOf(SatItem(catnum = 7530, name = "AO-7 (AMSAT-OSCAR 7)")) val repo = createRepo(items) diff --git a/core/domain/src/main/java/com/rtbishop/look4sat/core/domain/source/Sources.kt b/core/domain/src/main/java/com/rtbishop/look4sat/core/domain/source/Sources.kt index 48cf6610..d4c41022 100644 --- a/core/domain/src/main/java/com/rtbishop/look4sat/core/domain/source/Sources.kt +++ b/core/domain/src/main/java/com/rtbishop/look4sat/core/domain/source/Sources.kt @@ -57,11 +57,11 @@ object Sources { ) /** * Hardcoded AMSAT Live FM satellites (NORAD catnums): - * SO-50 (27607), ISS ZARYA (25544), AO-123 Fox-1D (43137). + * SO-50 (27607), ISS ZARYA (25544), AO-123 ASRTU-1 (61781). * Replaces the AMSAT live-page fetch: stable on any network, no * sync-time dependency, no stale-list or timeout failure modes. */ - val amSatFmCatnums = setOf(27607, 25544, 43137) + val amSatFmCatnums = setOf(27607, 25544, 61781) /** * Hardcoded AMSAT Live linear (SSB/CW) satellites: diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index f364b2da..ad4a904d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,8 +1,8 @@ [versions] #noinspection UnusedVersionCatalogEntry -appVersionCode = "506" +appVersionCode = "507" #noinspection UnusedVersionCatalogEntry -appVersionName = "4.4.7-ba7opf.15.9" +appVersionName = "4.4.7-ba7opf.15.10" #noinspection UnusedVersionCatalogEntry compileSdk = "37" #noinspection UnusedVersionCatalogEntry