You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 10, 2025. It is now read-only.
Description
Hilt should be used along with App Startup's Initializer interface to provide a WorkManager instance on first access.
Files that require refactoring so as to use @ HiltWorker
workers.kt
Classes to add, so that we can use dependency injection for WorkManager instance:
object class WorkManagerInitializerModule (Hilt Module) in the di package (separate package for the WorkManagerSample app).
WorkManagerInitializerModule would implement Initializer< WorkManager > .
Tasks
The text was updated successfully, but these errors were encountered: