Created
December 5, 2018 02:57
-
-
Save tompee26/983bfed5f0598b6fe0d3e3aecd7c361a to your computer and use it in GitHub Desktop.
AppComponentWithActivityModule.kt
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
@Singleton | |
@Component( | |
modules = [ | |
AndroidSupportInjectionModule::class, | |
ActivityModule::class | |
] | |
) | |
interface AppComponent { | |
@Component.Builder | |
interface Builder { | |
@BindsInstance | |
fun application(application: Application): Builder | |
fun build(): AppComponent | |
} | |
fun inject(myApplicationCustom: MyApplication) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment