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

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

Open
DivS-15 wants to merge 2 commits into
android:mainfrom
DivS-15:main
Open

DivS-15 wants to merge 2 commits into
android:mainfrom
DivS-15:main

Conversation

@DivS-15

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

Copy link
Copy Markdown

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

DivS-15 commented Aug 18, 2022

Copy link
Copy Markdown
Author

@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