Open Bug 1949821 Opened 27 days ago Updated 27 days ago

[Downloads v2] Refactor AbstractFetchDownloadService into individual single responsiblity components

Categories

(Fenix :: Downloads, task)

All
Android
task

Tracking

(Not tracked)

People

(Reporter: rsainani, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid] [group4])

Currently, AbstractDownloadService does a lot of things, including:

  • Fetching the file to be downloaded
    – Storing the file/stream to android local storage
    – Updating the notification based on download status
    – Holding and maintaing the download job states

This task is about refactoring the service into single responsible, readable components that are independent of the framework. This would also allow this componentized business logic to be moved to another android platform component in the future., e.g. a WorkManager instead of Service with ease.

You need to log in before you can comment on or make changes to this bug.