diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 8d9bd56..7280bd3 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -5,7 +5,7 @@ plugins { alias(libs.plugins.androidApplication) alias(libs.plugins.kotlinAndroid) alias(libs.plugins.kotlinSerialization) - kotlin("kapt") + alias(libs.plugins.ksp) alias(libs.plugins.hiltAndroid) alias(libs.plugins.gmsGoogleService) alias(libs.plugins.firebaseCrashlytics) @@ -82,7 +82,7 @@ android { } composeOptions { - kotlinCompilerExtensionVersion = "1.5.3" + kotlinCompilerExtensionVersion = "1.5.4" } packaging { @@ -104,7 +104,7 @@ dependencies { implementation(libs.lifecycle.runtime.compose) implementation(libs.lifecycle.viewmodel.compose) implementation(libs.hilt.android) - kapt(libs.hilt.compiler) + ksp(libs.hilt.compiler) implementation(libs.activity.compose) implementation(platform(libs.compose.bom)) implementation(libs.runtime) @@ -125,15 +125,11 @@ dependencies { implementation(libs.navigation.compose) implementation(libs.hilt.navigation.compose) - // implementation(libs.leanback) - implementation(libs.coil) implementation(libs.coil.compose) implementation(libs.coil.transformers) // implementation(libs.coil.transformers.gpu) - implementation(libs.qrcode) - implementation(libs.timber) implementation(libs.media3) @@ -149,16 +145,15 @@ dependencies { implementation(libs.retrofit2.ktx.serialization) implementation(libs.okhttp3.logging) + implementation(libs.room) + ksp(libs.room.compiler) + implementation(libs.room.ktx) + testImplementation(libs.junit4) - testImplementation(libs.robolectric) implementation(platform(libs.firebase.bom)) implementation(libs.firebase.analytics) implementation(libs.firebase.crashlytics) //implementation(libs.material.icons.extended) -} - -kapt { - correctErrorTypes = true } \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 94f7e20..e970296 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,6 +3,7 @@ plugins { alias(libs.plugins.androidApplication) apply false alias(libs.plugins.kotlinAndroid) apply false alias(libs.plugins.kotlinSerialization) apply false + alias(libs.plugins.ksp) apply false alias(libs.plugins.hiltAndroid) apply false alias(libs.plugins.gmsGoogleService) apply false alias(libs.plugins.firebaseCrashlytics) apply false diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 8de4c02..5a2e288 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,7 @@ [versions] agp = "8.3.0-alpha12" -kotlin = "1.9.10" +kotlin = "1.9.20" +ksp = "1.9.20-1.0.14" core-ktx = "1.12.0" core-splashscreen = "1.0.1" lifecycle = "2.6.2" @@ -31,6 +32,7 @@ ktx-serialization = "1.6.0" retrofit2 = "2.9.0" retrofit2-ktx-serialization = "1.0.0" okhttp3-logging = "4.12.0" +room = "2.6.0" [libraries] core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "core-ktx" } @@ -77,11 +79,15 @@ ktx-serialization = { group = "org.jetbrains.kotlinx", name = "kotlinx-serializa retrofit2 = { group = "com.squareup.retrofit2", name = "retrofit", version.ref = "retrofit2" } retrofit2-ktx-serialization = { group = "com.jakewharton.retrofit", name = "retrofit2-kotlinx-serialization-converter", version.ref = "retrofit2-ktx-serialization" } okhttp3-logging = { group = "com.squareup.okhttp3", name = "logging-interceptor", version.ref = "okhttp3-logging" } +room = { group = "androidx.room", name = "room-runtime", version.ref = "room" } +room-compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room" } +room-ktx = { group = "androidx.room", name = "room-ktx", version.ref = "room" } [plugins] androidApplication = { id = "com.android.application", version.ref = "agp" } kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } kotlinSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" } +ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" } hiltAndroid = { id = "com.google.dagger.hilt.android", version.ref = "hilt" } gmsGoogleService = { id = "com.google.gms.google-services", version.ref = "google-services" } firebaseCrashlytics = { id = "com.google.firebase.crashlytics", version.ref = "firebase-crashlytics-gradle-plugin" } \ No newline at end of file