Skip to content

Instantly share code, notes, and snippets.

@pokk
Created November 17, 2017 09:48
Show Gist options
  • Save pokk/b0054f2083400d5399fc541288cc2ac1 to your computer and use it in GitHub Desktop.
Save pokk/b0054f2083400d5399fc541288cc2ac1 to your computer and use it in GitHub Desktop.
app component for my blog.
@Singleton
@Component(modules = arrayOf(AppModule::class,
RepositoryModule::class,
BindingActivityModule::class,
AndroidSupportInjectionModule::class))
interface AppComponent : AndroidInjector<App> {
/** [AndroidInjector] Builder for using on this whole app. */
@Component.Builder
abstract class Builder : AndroidInjector.Builder<App>()
/** Providing to dependence components. */
fun context(): Context
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment