Skip to content

Instantly share code, notes, and snippets.

@tfcporciuncula
Last active April 7, 2019 14:10
Show Gist options
  • Save tfcporciuncula/cd37360fcffb037ff51b0e7e00ab11be to your computer and use it in GitHub Desktop.
Save tfcporciuncula/cd37360fcffb037ff51b0e7e00ab11be to your computer and use it in GitHub Desktop.
BookInjection.kt
@Subcomponent(modules = [BookModule::class])
interface BookComponent {
// let's assume BookPresenter has an @Inject-annotated constructor
val presenter: BookPresenter
}
@Module
class BookModule(@get:Provides val bookView: BookView)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment