diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index e805548..8d81632 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 52fd85d..c723e38 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,7 +1,7 @@ plugins { id "com.android.application" id "kotlin-android" - id "kotlin-kapt" + id "com.google.devtools.ksp" id "com.mikepenz.aboutlibraries.plugin" } @@ -24,10 +24,8 @@ android { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - javaCompileOptions { - annotationProcessorOptions { - arguments += ["room.schemaLocation": "$projectDir/schemas".toString()] - } + ksp { + arg("room.schemaLocation", "$projectDir/schemas") } } @@ -77,7 +75,7 @@ dependencies { implementation "androidx.work:work-runtime-ktx:$workmanager_version" implementation "androidx.room:room-runtime:$room_version" implementation "androidx.room:room-ktx:$room_version" - kapt "androidx.room:room-compiler:$room_version" + ksp "androidx.room:room-compiler:$room_version" implementation "com.mikepenz:aboutlibraries:$about_libraries_version" implementation "androidx.core:core-splashscreen:1.0.1" diff --git a/build.gradle b/build.gradle index ae8cedc..060f2c2 100644 --- a/build.gradle +++ b/build.gradle @@ -21,6 +21,11 @@ buildscript { } } +plugins { + // modern kotlin annotation support; replaces kapt: https://developer.android.com/build/migrate-to-ksp + id 'com.google.devtools.ksp' version '1.9.22-1.0.17' apply false +} + allprojects { repositories { google()