Skip to content

Instantly share code, notes, and snippets.

@v170nix
Created June 17, 2018 19:20
Show Gist options
  • Select an option

  • Save v170nix/76b1db09e7c3efbf861ac8cafc6624f7 to your computer and use it in GitHub Desktop.

Select an option

Save v170nix/76b1db09e7c3efbf861ac8cafc6624f7 to your computer and use it in GitHub Desktop.

Revisions

  1. v170nix created this gist Jun 17, 2018.
    14 changes: 14 additions & 0 deletions AppComponent.kt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    @Singleton
    @Component(modules = [AndroidSupportInjectionModule::class, ...])
    interface AppComponent {

    @Component.Builder
    interface Builder {
    @BindsInstance
    fun application(context: Context): Builder

    fun build(): AppComponent
    }

    fun inject(application: AppApplication)
    }