Skip to content

Instantly share code, notes, and snippets.

@Zhuinden
Created May 23, 2020 06:19
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 Zhuinden/5e1a4136c1b29cd7dfef86a418721bc5 to your computer and use it in GitHub Desktop.
Save Zhuinden/5e1a4136c1b29cd7dfef86a418721bc5 to your computer and use it in GitHub Desktop.
AssistedInjection sample: build.gradle
//...
apply plugin: 'kotlin-kapt'
android {
//...
kotlinOptions {
jvmTarget = "1.8"
}
kapt {
correctErrorTypes true
}
}
dependencies {
//...
implementation 'com.google.dagger:dagger:2.27'
kapt 'com.google.dagger:dagger-compiler:2.27'
compileOnly 'com.squareup.inject:assisted-inject-annotations-dagger2:0.5.2'
kapt 'com.squareup.inject:assisted-inject-processor-dagger2:0.5.2'
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment