add hilt to dependencies
This commit is contained in:
parent
96a71725b0
commit
11dbc95676
2 changed files with 19 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
plugins {
|
||||
id 'com.android.application'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
|
||||
// Hilt
|
||||
id 'kotlin-kapt'
|
||||
id 'com.google.dagger.hilt.android'
|
||||
}
|
||||
|
||||
android {
|
||||
|
@ -60,4 +64,16 @@ dependencies {
|
|||
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_ui_version"
|
||||
debugImplementation "androidx.compose.ui:ui-tooling:$compose_ui_version"
|
||||
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_ui_version"
|
||||
|
||||
// ViewModel
|
||||
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1'
|
||||
|
||||
// Hilt
|
||||
implementation 'com.google.dagger:hilt-android:2.44'
|
||||
kapt 'com.google.dagger:hilt-compiler:2.44'
|
||||
}
|
||||
|
||||
// Allow references to generate code
|
||||
kapt {
|
||||
correctErrorTypes true
|
||||
}
|
|
@ -7,4 +7,7 @@ plugins {
|
|||
id 'com.android.application' version '7.4.2' apply false
|
||||
id 'com.android.library' version '7.4.2' apply false
|
||||
id 'org.jetbrains.kotlin.android' version '1.7.0' apply false
|
||||
|
||||
// Hilt
|
||||
id 'com.google.dagger.hilt.android' version '2.44' apply false
|
||||
}
|
Reference in a new issue