Created
September 22, 2020 05:02
-
-
Save ch8n/ac1d27094518394397d7ac45ba6b1241 to your computer and use it in GitHub Desktop.
for medium article
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 = arrayOf( | |
AndroidSupportInjectionModule::class, | |
//..add here | |
NetworkResolver::class, | |
AppResolver::class, | |
ViewModelResolver::class | |
) | |
) | |
interface AppComponent : AndroidInjector<AirtelApplication> { | |
@Component.Builder | |
interface Builder { | |
@BindsInstance | |
fun application(application: SampleApp): Builder | |
fun build(): AppComponent | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment