Created
May 26, 2023 13:29
-
-
Save DHosseiny/406443373d8c495fda09026711f293b0 to your computer and use it in GitHub Desktop.
MyApplication2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@HiltAndroidApp | |
class MyApplication : Application(), Configuration.Provider { | |
@Inject | |
lateinit var hiltWorkerFactory: HiltWorkerFactory | |
override fun getWorkManagerConfiguration(): Configuration { | |
return Configuration.Builder() | |
.setWorkerFactory(hiltWorkerFactory) | |
.build() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment