WordPress-Android icon indicating copy to clipboard operation
WordPress-Android copied to clipboard

Update upload service to use work manager

Open ravishanker opened this issue 1 year ago • 3 comments

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

  1. Potential unintended areas of impact

    • TODO
  2. What I did to test those areas of impact (or what existing automated tests I relied on)

    • TODO
  3. 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.txt if 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)

ravishanker avatar Dec 08 '23 05:12 ravishanker

Warnings
:warning: PR has more than 300 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by :no_entry_sign: dangerJS

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr19755-8e38e4a
Commit8e38e4addf712de918ab1fb2087b87ffac15284c
Direct Downloadjetpack-prototype-build-pr19755-8e38e4a.apk
Note: Google Login is not supported on these builds.

wpmobilebot avatar Dec 08 '23 05:12 wpmobilebot

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr19755-8e38e4a
Commit8e38e4addf712de918ab1fb2087b87ffac15284c
Direct Downloadwordpress-prototype-build-pr19755-8e38e4a.apk
Note: Google Login is not supported on these builds.

wpmobilebot avatar Dec 08 '23 05:12 wpmobilebot