Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

(Issue #1059) WorkManagerSample to use Hilt and App Startup #1060

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DivS-15
Copy link

@DivS-15 DivS-15 commented Jul 15, 2022

closes #1059
Following changes were made:

  1. WorkManager instance is initialized on-demand using the app-startup library and injected in the FilterViewModel using Hilt and @Provides method.
  2. Workers now use @HiltWorker along with Assisted injection.
  3. Complete app uses Hilt for dependency injection.

DivS-15 added 2 commits July 15, 2022 23:22
Refactored the whole app to use Hilt for dependency injection, especially the worker classes.
@DivS-15
Copy link
Author

DivS-15 commented Aug 18, 2022

@dlam @ianhanniballake Could you please look into this? This might improve the sample.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'WorkManagerSample' should use Hilt and App Startup library to initialize and provide WorkManager dependency
1 participant