Created
August 2, 2020 04:30
-
-
Save ramonrabello/83b1bef77ef0c2a8f4b86c1533ca9207 to your computer and use it in GitHub Desktop.
Hilt Series: Migrando do Dagger para o Hilt - AuditModule
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
// Dagger 2 | |
@Module | |
abstract class AuditModule { | |
@Binds | |
abstract fun provideLogger(impl: AuditLogger): Logger | |
} | |
// With Hilt | |
@InstallIn(ActivityComponent::class) | |
@Module | |
abstract class AuditModule { | |
@Binds | |
abstract fun provideLogger(impl: AuditLogger): Logger | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment