diff --git a/app/build.gradle b/app/build.gradle index d9c043b..93a1aa5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,7 +1,7 @@ plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' - id 'kotlin-kapt' + id 'com.google.devtools.ksp' id 'dagger.hilt.android.plugin' id 'kotlin-parcelize' id 'org.jetbrains.kotlin.plugin.serialization' @@ -82,7 +82,7 @@ dependencies { //noinspection GradleDependency implementation "com.google.dagger:hilt-android:$hilt_version" - kapt "com.google.dagger:hilt-android-compiler:$hilt_version" + ksp "com.google.dagger:hilt-android-compiler:$hilt_version" implementation 'androidx.hilt:hilt-navigation-compose:1.2.0' // Glide diff --git a/app/src/main/java/com/sopt/now/compose/di/NetModule.kt b/app/src/main/java/com/sopt/now/compose/di/NetModule.kt index 9fa37b6..7074f14 100644 --- a/app/src/main/java/com/sopt/now/compose/di/NetModule.kt +++ b/app/src/main/java/com/sopt/now/compose/di/NetModule.kt @@ -17,6 +17,7 @@ import okhttp3.Interceptor import okhttp3.MediaType.Companion.toMediaType import okhttp3.OkHttpClient import okhttp3.logging.HttpLoggingInterceptor +import org.json.JSONArray import org.json.JSONObject import retrofit2.Converter import retrofit2.Retrofit @@ -50,7 +51,7 @@ object NetModule { Timber.tag(OKHTTP).d(JSONObject(message).toString(UNIT_TAB)) message.isJsonArray() -> - Timber.tag(OKHTTP).d(JSONObject(message).toString(UNIT_TAB)) + Timber.tag(OKHTTP).d(JSONArray(message).toString(UNIT_TAB)) else -> { Timber.tag(OKHTTP).d("CONNECTION INFO -> $message") diff --git a/build.gradle b/build.gradle index 2623a72..d1f9494 100644 --- a/build.gradle +++ b/build.gradle @@ -2,9 +2,11 @@ buildscript { ext { hilt_version = "2.51" + ksp_version = "1.9.0-1.0.13" } dependencies { + classpath "com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:$ksp_version" classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version" } } @@ -13,4 +15,5 @@ plugins { id 'com.android.library' version '8.3.1' apply false id 'org.jetbrains.kotlin.android' version '1.9.0' apply false id 'org.jetbrains.kotlin.plugin.serialization' version '1.8.20' apply false + id 'com.google.devtools.ksp' version "$ksp_version" apply false }