diff --git a/Aos/app/build.gradle.kts b/Aos/app/build.gradle.kts index e3f3ec9b..3a89045d 100644 --- a/Aos/app/build.gradle.kts +++ b/Aos/app/build.gradle.kts @@ -7,6 +7,7 @@ plugins { id("org.jetbrains.kotlin.android") id("kotlin-kapt") id("com.google.gms.google-services") + id("dagger.hilt.android.plugin") } android { @@ -71,10 +72,10 @@ dependencies { // androidTestImplementation("androidx.test.ext:junit:1.1.5") // androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") -// // hilt -// val hiltVersion = "2.48" -// implementation("com.google.dagger:hilt-android:${hiltVersion}") -// kapt("com.google.dagger:hilt-android-compiler:${hiltVersion}") + // hilt + val hiltVersion = "2.48" + implementation("com.google.dagger:hilt-android:${hiltVersion}") + kapt("com.google.dagger:hilt-android-compiler:${hiltVersion}") // // // retrofit // val retrofitVersion = "2.9.0" diff --git a/Aos/app/src/main/java/com/avengers/nibobnebob/app/App.kt b/Aos/app/src/main/java/com/avengers/nibobnebob/app/App.kt index 635d07f1..edabb782 100644 --- a/Aos/app/src/main/java/com/avengers/nibobnebob/app/App.kt +++ b/Aos/app/src/main/java/com/avengers/nibobnebob/app/App.kt @@ -6,7 +6,6 @@ import androidx.datastore.core.DataStore import androidx.datastore.preferences.core.Preferences import androidx.datastore.preferences.preferencesDataStore import com.avengers.nibobnebob.BuildConfig -import com.avengers.nibobnebob.presentation.util.Constants.APP_NAME import com.navercorp.nid.NaverIdLoginSDK import dagger.hilt.android.HiltAndroidApp @@ -24,7 +23,7 @@ class App : Application(){ companion object{ lateinit var instance : App - val Context.dataStore: DataStore by preferencesDataStore(name = APP_NAME) + val Context.dataStore: DataStore by preferencesDataStore(name = "NibobNebob") fun getContext(): Context = instance.applicationContext } @@ -33,7 +32,7 @@ class App : Application(){ applicationContext, BuildConfig.NAVER_LOGIN_CLIENT_ID, BuildConfig.NAVER_LOGIN_CLIENT_SECRET, - APP_NAME) + "NibobNebob") NaverIdLoginSDK.showDevelopersLog(true) } } \ No newline at end of file diff --git a/Aos/presentation/build.gradle.kts b/Aos/presentation/build.gradle.kts index a5c34f9a..46dbafcc 100644 --- a/Aos/presentation/build.gradle.kts +++ b/Aos/presentation/build.gradle.kts @@ -3,6 +3,7 @@ plugins { id("org.jetbrains.kotlin.android") id("kotlin-kapt") id("androidx.navigation.safeargs.kotlin") + id("dagger.hilt.android.plugin") } android { @@ -65,4 +66,9 @@ dependencies { // naver Login api ("com.navercorp.nid:oauth:5.8.0") + // hilt + val hiltVersion = "2.48" + implementation("com.google.dagger:hilt-android:${hiltVersion}") + kapt("com.google.dagger:hilt-android-compiler:${hiltVersion}") + } \ No newline at end of file