Skip to content

Commit

Permalink
Fix work manager job not injecting with Hilt
Browse files Browse the repository at this point in the history
  • Loading branch information
Plastix authored and Aidan Pieper committed May 15, 2022
1 parent 391dc4f commit 781b997
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@
See: https://developer.android.com/training/dependency-injection/hilt-jetpack#workmanager
-->
<provider
android:name="androidx.work.impl.WorkManagerInitializer"
android:authorities="${applicationId}.workmanager-init"
tools:ignore="Instantiatable"
tools:node="remove" />
android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup"
android:exported="false"
tools:node="merge">
<meta-data
android:name="androidx.work.WorkManagerInitializer"
android:value="androidx.startup"
tools:node="remove" />
</provider>

</application>

Expand Down

0 comments on commit 781b997

Please sign in to comment.