Created
March 11, 2022 17:11
-
-
Save Farhandroid/0321ce0d244cd8863eff2e36a2301700 to your computer and use it in GitHub Desktop.
RepositoryModule
This file contains hidden or 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
| @Module | |
| @InstallIn(SingletonComponent::class) | |
| object RepositoryModule { | |
| @Provides | |
| fun provideImageRepository(imageApiService: ImageApiService): ImageRepository { | |
| return ImageRepository(imageApiService) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment