diff --git a/app/build.gradle b/app/build.gradle index 37c91ebd9..a7182b44b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,8 +1,8 @@ plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' id 'kotlinx-serialization' + id 'com.google.devtools.ksp' } android { @@ -20,10 +20,8 @@ android { useSupportLibrary true } - javaCompileOptions { - annotationProcessorOptions { - arguments += ["room.schemaLocation": "$projectDir/schemas".toString()] - } + ksp { + arg("room.schemaLocation", "$projectDir/schemas".toString()) } } @@ -96,7 +94,7 @@ dependencies { // Room database implementation 'androidx.room:room-runtime:2.5.1' - kapt "androidx.room:room-compiler:2.5.1" + ksp "androidx.room:room-compiler:2.5.1" // Tesseract OCR implementation 'cz.adaptech.tesseract4android:tesseract4android-openmp:4.3.0' diff --git a/build.gradle b/build.gradle index 1a936c80b..82446ae46 100644 --- a/build.gradle +++ b/build.gradle @@ -8,6 +8,7 @@ plugins { id 'com.android.library' version '8.0.1' apply false id 'org.jetbrains.kotlin.android' version '1.8.10' apply false id 'org.jetbrains.kotlin.plugin.serialization' version '1.8.10' + id 'com.google.devtools.ksp' version '1.8.10-1.0.9' apply false } task clean(type: Delete) {