@@ -2,6 +2,8 @@ plugins {
22 id(" com.android.application" )
33 id(" org.jetbrains.kotlin.android" )
44 id(" com.google.devtools.ksp" )
5+ id(" com.google.dagger.hilt.android" )
6+ kotlin(" kapt" )
57}
68
79android {
@@ -50,6 +52,10 @@ android {
5052 }
5153}
5254
55+ kapt {
56+ correctErrorTypes = true
57+ }
58+
5359dependencies {
5460
5561 implementation(" androidx.core:core-ktx:1.10.1" )
@@ -62,10 +68,23 @@ dependencies {
6268 implementation(" androidx.compose.ui:ui-tooling-preview" )
6369 implementation(" androidx.compose.material3:material3" )
6470
71+ // Setup
72+ implementation(" androidx.lifecycle:lifecycle-viewmodel-compose:${rootProject.extra[" viewmodel_compose_version" ]} " )
73+ implementation(" androidx.navigation:navigation-compose:${rootProject.extra[" navigation_compose_version" ]} " )
74+ implementation(" androidx.core:core-splashscreen:${rootProject.extra[" splash_version" ]} " )
75+
6576 // RoomDB
66- implementation(" androidx.room:room-ktx:2.5.2" )
67- implementation(" androidx.room:room-runtime:2.5.2" )
68- ksp(" androidx.room:room-compiler:2.5.2" )
77+ implementation(" androidx.room:room-ktx:${rootProject.extra[" roomdb_version" ]} " )
78+ implementation(" androidx.room:room-runtime:${rootProject.extra[" roomdb_version" ]} " )
79+ ksp(" androidx.room:room-compiler:${rootProject.extra[" roomdb_version" ]} " )
80+
81+ // Hilt
82+ implementation(" com.google.dagger:hilt-android:${rootProject.extra[" hilt_version" ]} " )
83+ kapt(" com.google.dagger:hilt-android-compiler:${rootProject.extra[" hilt_version" ]} " )
84+ implementation(" androidx.hilt:hilt-navigation-compose:${rootProject.extra[" navigation_compose_version" ]} " )
85+
86+ // Datastore
87+ implementation(" androidx.datastore:datastore:${rootProject.extra[" datastore_version" ]} " )
6988
7089 // Testing
7190 testImplementation(" junit:junit:4.13.2" )
0 commit comments