architecture-components-samples icon indicating copy to clipboard operation
architecture-components-samples copied to clipboard

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

Open DivS-15 opened this issue 3 years ago • 1 comments

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 avatar Jul 15 '22 18:07 DivS-15

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

DivS-15 avatar Aug 18 '22 18:08 DivS-15