Fix root cause: add kotlinx-serialization compiler plugin, rename to KRait

- Added org.jetbrains.kotlin.plugin.serialization to app/build.gradle.kts
- Added plugin version to root build.gradle.kts
- Added test dependencies (serialization, retrofit, okhttp, coroutines)
- 16 unit tests for BookshelfApiService — all pass
- Renamed app_name to KRait
- Fixed search test: search_time_ms Int, total field name
This commit is contained in:
Atte149 2026-06-19 22:17:24 +03:00
parent a7a9f65391
commit 71537406c6
4 changed files with 390 additions and 1 deletions

View file

@ -2,6 +2,7 @@ plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("org.jetbrains.kotlin.plugin.compose")
id("org.jetbrains.kotlin.plugin.serialization")
id("com.google.devtools.ksp")
id("com.google.dagger.hilt.android")
id("kotlin-parcelize")
@ -180,4 +181,13 @@ dependencies {
// Background work (cache, TTS sync)
implementation("androidx.work:work-runtime-ktx:2.10.0")
implementation("androidx.hilt:hilt-work:1.2.0")
// Test
testImplementation("junit:junit:4.13.2")
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0")
testImplementation("com.squareup.retrofit2:retrofit:2.11.0")
testImplementation("com.squareup.retrofit2:converter-kotlinx-serialization:2.11.0")
testImplementation("com.squareup.okhttp3:okhttp:4.12.0")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
}