WordPress-Android
WordPress-Android copied to clipboard
Update upload service to use work manager
Fixes #18714
This PR is an effort update UploadService to user WorkManager in place of current Service. Cause, there are crashes due to foreground operations, and also will not work when migrated to Android 14
It is work in progress
- UploadService is decomposed into two workers; UploadPostWorker, and UploadMediaWorker
TO-DO
- [ ] Integrate this wherever UploadService is used
- [ ] Test it thoroughly all Post, and Media upload scenarios
- [ ] Delete UploadService
To Test:
Regression Notes
-
Potential unintended areas of impact
- TODO
-
What I did to test those areas of impact (or what existing automated tests I relied on)
- TODO
-
What automated tests I added (or what prevented me from doing so)
- TODO
PR Submission Checklist:
- [ ] I have completed the Regression Notes.
- [ ] I have considered adding accessibility improvements for my changes.
- [ ] I have considered if this change warrants user-facing release notes and have added them to
RELEASE-NOTES.txtif necessary.
UI Changes Testing Checklist:
- [ ] Portrait and landscape orientations.
- [ ] Light and dark modes.
- [ ] Fonts: Larger, smaller and bold text.
- [ ] High contrast.
- [ ] Talkback.
- [ ] Languages with large words or with letters/accents not frequently used in English.
- [ ] Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
- [ ] Large and small screen sizes. (Tablet and smaller phones)
- [ ] Multi-tasking: Split screen and Pop-up view. (Android 10 or higher)
| Warnings | |
|---|---|
| :warning: | PR has more than 300 lines of code changing. Consider splitting into smaller PRs if possible. |
Generated by :no_entry_sign: dangerJS
📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
| App Name | Jetpack |
|
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr19755-8e38e4a | |
| Commit | 8e38e4addf712de918ab1fb2087b87ffac15284c | |
| Direct Download | jetpack-prototype-build-pr19755-8e38e4a.apk |
📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
| App Name | WordPress |
|
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr19755-8e38e4a | |
| Commit | 8e38e4addf712de918ab1fb2087b87ffac15284c | |
| Direct Download | wordpress-prototype-build-pr19755-8e38e4a.apk |