Skip to content

Instantly share code, notes, and snippets.

@pokk
Last active December 3, 2017 02:45
Show Gist options
  • Save pokk/04a472781afa65982e3796930b4b7481 to your computer and use it in GitHub Desktop.
Save pokk/04a472781afa65982e3796930b4b7481 to your computer and use it in GitHub Desktop.
@Singleton
@Component(modules = arrayOf(AppModule::class))
interface AppComponent {
object Initializer {
fun init(app: App): AppComponent = DaggerAppComponent.builder()
.appModule(AppModule(app))
.netModule(NetModule(app))
.build()
}
// Exposed to sub-graphs.
fun context(): Context
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment