Skip to content

Commit

Permalink
Merge pull request #345 from aritra-tech/room_to_ksp
Browse files Browse the repository at this point in the history
Migrated Room DB from Kapt to Ksp
  • Loading branch information
Bnyro authored Sep 29, 2023
2 parents b246ffb + ea1207f commit 9ab0acb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -20,10 +20,8 @@ android {
useSupportLibrary true
}

javaCompileOptions {
annotationProcessorOptions {
arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
}
ksp {
arg("room.schemaLocation", "$projectDir/schemas".toString())
}
}

Expand Down Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9ab0acb

Please sign in to comment.