Skip to content

Instantly share code, notes, and snippets.

@kaszabimre
Created July 17, 2020 09:32
Show Gist options
  • Save kaszabimre/4fdf2582d7e2472ef77f9cc9c7d4ca4e to your computer and use it in GitHub Desktop.
Save kaszabimre/4fdf2582d7e2472ef77f9cc9c7d4ca4e to your computer and use it in GitHub Desktop.
Add Hilt dependency to your app/build.gradle
....
apply plugin: 'kotlin-kapt'
apply plugin: 'dagger.hilt.android.plugin'
....
dependencies {
....
implementation "androidx.hilt:hilt-lifecycle-viewmodel:$hilt_jetpack_version"
kapt "androidx.hilt:hilt-compiler:$hilt_jetpack_version"
implementation "com.google.dagger:hilt-android:$hilt_version"
kapt "com.google.dagger:hilt-android-compiler:$hilt_version"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment