diff --git a/app/build.gradle b/app/build.gradle index aae49c3..e1e92d2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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 } \ No newline at end of file diff --git a/build.gradle b/build.gradle index 29c5abd..d1f6999 100644 --- a/build.gradle +++ b/build.gradle @@ -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 } \ No newline at end of file