Skip to content

Instantly share code, notes, and snippets.

@egek92
Created July 10, 2019 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egek92/79a52079a689f4cffe6409381039e417 to your computer and use it in GitHub Desktop.
Save egek92/79a52079a689f4cffe6409381039e417 to your computer and use it in GitHub Desktop.
@Singleton
@Component(
modules = [
DataBaseModule::class,
NetworkModule::class,
ActivityModule::class]
)
interface AppComponent {
@Component.Builder
interface Builder {
@BindsInstance
fun application(application: Application): Builder
fun build(): AppComponent
}
fun inject(app: BaseApplication)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment