Created
April 28, 2022 10:52
-
-
Save YuanLiou/1efcf1aff3597bb9883bbe77799af517 to your computer and use it in GitHub Desktop.
Hilt Scope Sample 05
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
@InstallIn(SingletonComponent::class) | |
@Module | |
abstract class MyModule { | |
@Singleton | |
@Binds | |
abstract fun bindingFunction(myImpl: MyInterfaceImpl) : MyInterface | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment