Loading app/src/main/java/foundation/e/apps/data/install/updates/ManualUpdateChainSnapshot.kt +0 −3 Original line number Diff line number Diff line Loading @@ -24,17 +24,14 @@ data class ManualUpdateChainSnapshot( val chainId: String, val packages: List<Application>, val cursor: Int = 0, val createdAtMillis: Long, ) fun buildManualUpdateChainSnapshot( chainId: String, applications: List<Application>, createdAtMillis: Long, ): ManualUpdateChainSnapshot { return ManualUpdateChainSnapshot( chainId = chainId, packages = applications, createdAtMillis = createdAtMillis, ) } app/src/main/java/foundation/e/apps/ui/updates/UpdatesFragment.kt +0 −1 Original line number Diff line number Diff line Loading @@ -392,7 +392,6 @@ class UpdatesFragment : TimeoutFragment(R.layout.fragment_updates), ApplicationI buildManualUpdateChainSnapshot( chainId = chainId, applications = orderedUpdates, createdAtMillis = System.currentTimeMillis(), ) ) UpdatesWorkManager.startUpdateAllWork(requireContext(), chainId) Loading app/src/test/java/foundation/e/apps/data/install/updates/ManualUpdateChainStoreTest.kt +0 −2 Original line number Diff line number Diff line Loading @@ -59,7 +59,6 @@ class ManualUpdateChainStoreTest { val storedSnapshot = store.readSnapshot(CHAIN_ID) assertNotNull(storedSnapshot) assertEquals(snapshot.createdAtMillis, storedSnapshot?.createdAtMillis) assertApplicationFields(snapshot.packages[0], storedSnapshot!!.packages[0]) assertApplicationFields(snapshot.packages[1], storedSnapshot.packages[1]) assertApplicationFields(snapshot.packages[2], storedSnapshot.packages[2]) Loading Loading @@ -96,7 +95,6 @@ class ManualUpdateChainStoreTest { return ManualUpdateChainSnapshot( chainId = chainId, cursor = cursor, createdAtMillis = 1234L, packages = listOf( createApplication("one"), createApplication("two"), Loading app/src/test/java/foundation/e/apps/data/install/updates/UpdatesWorkerTest.kt +0 −5 Original line number Diff line number Diff line Loading @@ -1010,7 +1010,6 @@ class UpdatesWorkerTest { buildManualUpdateChainSnapshot( chainId = MANUAL_CHAIN_ID, applications = snapshotApplications, createdAtMillis = 1234L, ) ) whenever(playStoreAuthManager.getValidatedAuthData()).thenReturn(ResultSupreme.Error("no auth")) Loading Loading @@ -1085,7 +1084,6 @@ class UpdatesWorkerTest { buildManualUpdateChainSnapshot( chainId = MANUAL_CHAIN_ID, applications = snapshotApplications, createdAtMillis = 1234L, ) ) whenever(playStoreAuthManager.getValidatedAuthData()).thenReturn(ResultSupreme.Error("no auth")) Loading Loading @@ -1153,7 +1151,6 @@ class UpdatesWorkerTest { buildManualUpdateChainSnapshot( chainId = MANUAL_CHAIN_ID, applications = snapshotApplications, createdAtMillis = 1234L, ) ) whenever(playStoreAuthManager.getValidatedAuthData()).thenReturn(ResultSupreme.Error("no auth")) Loading Loading @@ -1220,7 +1217,6 @@ class UpdatesWorkerTest { buildManualUpdateChainSnapshot( chainId = MANUAL_CHAIN_ID, applications = snapshotApplications, createdAtMillis = 1234L, ).copy(cursor = 15) ) whenever(playStoreAuthManager.getValidatedAuthData()).thenReturn(ResultSupreme.Error("no auth")) Loading Loading @@ -1274,7 +1270,6 @@ class UpdatesWorkerTest { buildManualUpdateChainSnapshot( chainId = MANUAL_CHAIN_ID, applications = snapshotApplications, createdAtMillis = 1234L, ) ) whenever(playStoreAuthManager.getValidatedAuthData()).thenReturn(ResultSupreme.Error("no auth")) Loading Loading
app/src/main/java/foundation/e/apps/data/install/updates/ManualUpdateChainSnapshot.kt +0 −3 Original line number Diff line number Diff line Loading @@ -24,17 +24,14 @@ data class ManualUpdateChainSnapshot( val chainId: String, val packages: List<Application>, val cursor: Int = 0, val createdAtMillis: Long, ) fun buildManualUpdateChainSnapshot( chainId: String, applications: List<Application>, createdAtMillis: Long, ): ManualUpdateChainSnapshot { return ManualUpdateChainSnapshot( chainId = chainId, packages = applications, createdAtMillis = createdAtMillis, ) }
app/src/main/java/foundation/e/apps/ui/updates/UpdatesFragment.kt +0 −1 Original line number Diff line number Diff line Loading @@ -392,7 +392,6 @@ class UpdatesFragment : TimeoutFragment(R.layout.fragment_updates), ApplicationI buildManualUpdateChainSnapshot( chainId = chainId, applications = orderedUpdates, createdAtMillis = System.currentTimeMillis(), ) ) UpdatesWorkManager.startUpdateAllWork(requireContext(), chainId) Loading
app/src/test/java/foundation/e/apps/data/install/updates/ManualUpdateChainStoreTest.kt +0 −2 Original line number Diff line number Diff line Loading @@ -59,7 +59,6 @@ class ManualUpdateChainStoreTest { val storedSnapshot = store.readSnapshot(CHAIN_ID) assertNotNull(storedSnapshot) assertEquals(snapshot.createdAtMillis, storedSnapshot?.createdAtMillis) assertApplicationFields(snapshot.packages[0], storedSnapshot!!.packages[0]) assertApplicationFields(snapshot.packages[1], storedSnapshot.packages[1]) assertApplicationFields(snapshot.packages[2], storedSnapshot.packages[2]) Loading Loading @@ -96,7 +95,6 @@ class ManualUpdateChainStoreTest { return ManualUpdateChainSnapshot( chainId = chainId, cursor = cursor, createdAtMillis = 1234L, packages = listOf( createApplication("one"), createApplication("two"), Loading
app/src/test/java/foundation/e/apps/data/install/updates/UpdatesWorkerTest.kt +0 −5 Original line number Diff line number Diff line Loading @@ -1010,7 +1010,6 @@ class UpdatesWorkerTest { buildManualUpdateChainSnapshot( chainId = MANUAL_CHAIN_ID, applications = snapshotApplications, createdAtMillis = 1234L, ) ) whenever(playStoreAuthManager.getValidatedAuthData()).thenReturn(ResultSupreme.Error("no auth")) Loading Loading @@ -1085,7 +1084,6 @@ class UpdatesWorkerTest { buildManualUpdateChainSnapshot( chainId = MANUAL_CHAIN_ID, applications = snapshotApplications, createdAtMillis = 1234L, ) ) whenever(playStoreAuthManager.getValidatedAuthData()).thenReturn(ResultSupreme.Error("no auth")) Loading Loading @@ -1153,7 +1151,6 @@ class UpdatesWorkerTest { buildManualUpdateChainSnapshot( chainId = MANUAL_CHAIN_ID, applications = snapshotApplications, createdAtMillis = 1234L, ) ) whenever(playStoreAuthManager.getValidatedAuthData()).thenReturn(ResultSupreme.Error("no auth")) Loading Loading @@ -1220,7 +1217,6 @@ class UpdatesWorkerTest { buildManualUpdateChainSnapshot( chainId = MANUAL_CHAIN_ID, applications = snapshotApplications, createdAtMillis = 1234L, ).copy(cursor = 15) ) whenever(playStoreAuthManager.getValidatedAuthData()).thenReturn(ResultSupreme.Error("no auth")) Loading Loading @@ -1274,7 +1270,6 @@ class UpdatesWorkerTest { buildManualUpdateChainSnapshot( chainId = MANUAL_CHAIN_ID, applications = snapshotApplications, createdAtMillis = 1234L, ) ) whenever(playStoreAuthManager.getValidatedAuthData()).thenReturn(ResultSupreme.Error("no auth")) Loading