[components] For https://github.com/mozilla-mobile/android-components/issues/12258...
commitc49e031b91416a7563c5995fb7f54616332e91f1
authorMugurell <Mugurell@users.noreply.github.com>
Tue, 31 May 2022 07:35:56 +0000 (31 10:35 +0300)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 31 May 2022 10:53:29 +0000 (31 10:53 +0000)
tree04d93e1b43e250d83fd2a9e77c5635bca174fecf
parent76dbc57cb4784d124c4e91e5e9dbc12a969ed0d1
[components] For https://github.com/mozilla-mobile/android-components/issues/12258 - Retry deleting Pocket profile if initially failed

It's important to ensure the profile is deleted when the sponsored stories
feature is disabled but since this involves a network call which may fail we
need to support retrying a previous failed request until profile deletion is
successful or the sponsored stories functionality is started again.
mobile/android/android-components/components/service/pocket/src/main/java/mozilla/components/service/pocket/PocketStoriesService.kt
mobile/android/android-components/components/service/pocket/src/main/java/mozilla/components/service/pocket/update/DeleteSpocsProfileWorker.kt [new file with mode: 0644]
mobile/android/android-components/components/service/pocket/src/main/java/mozilla/components/service/pocket/update/SpocsRefreshScheduler.kt
mobile/android/android-components/components/service/pocket/src/test/java/mozilla/components/service/pocket/PocketStoriesServiceTest.kt
mobile/android/android-components/components/service/pocket/src/test/java/mozilla/components/service/pocket/update/DeleteSpocsProfileWorkerTest.kt [new file with mode: 0644]
mobile/android/android-components/components/service/pocket/src/test/java/mozilla/components/service/pocket/update/SpocsRefreshSchedulerTest.kt
mobile/android/android-components/docs/changelog.md