Skip to content

Instantly share code, notes, and snippets.

@princessdharmy
Last active November 21, 2020 20:50
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 princessdharmy/5211a06c465a4519e718b9c018c66af0 to your computer and use it in GitHub Desktop.
Save princessdharmy/5211a06c465a4519e718b9c018c66af0 to your computer and use it in GitHub Desktop.
...
apply plugin: 'kotlin-kapt'
apply plugin: 'dagger.hilt.android.plugin'
android {
...
}
dependencies {
implementation "com.google.dagger:hilt-android:${Versions.hiltVersion}"
kapt "com.google.dagger:hilt-android-compiler:${Versions.hiltVersion}"
// To integrate with ViewModel
implementation "androidx.hilt:hilt-lifecycle-viewmodel:${Versions.hiltJetpackVersion}"
kapt "androidx.hilt:hilt-compiler:${Versions.hiltJetpackVersion}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment