Last active
September 2, 2022 16:01
-
-
Save fededri/4fcffe3108c989391a9fae427d6be7da to your computer and use it in GitHub Desktop.
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
// Dagger | |
interface Authenticator | |
class RealAuthenticator @Inject constructor() : Authenticator | |
@Module | |
@ContributesTo(AppScope::class) | |
abstract class AuthenticatorModule { | |
@Binds abstract fun bindRealAuthenticator(authenticator: RealAuthenticator): Authenticator | |
} | |
// | |
// Anvil | |
interface Authenticator | |
@ContributesBinding(AppScope::class) | |
class RealAuthenticator @Inject constructor() : Authenticator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment