From aa861cb5e52d0a1ac4dd42fe5cb55634a3138cd0 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Tue, 15 Aug 2023 23:54:27 -0500 Subject: [PATCH] Convert room to ksp --- app/build.gradle.kts | 11 +++++------ build.gradle.kts | 4 ++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e89d20529..891e15279 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -11,6 +11,7 @@ plugins { id("dagger.hilt.android.plugin") id("com.google.android.gms.oss-licenses-plugin") id("kotlin-parcelize") + id("com.google.devtools.ksp") } repositories { @@ -61,11 +62,9 @@ android { minSdk = 24 testInstrumentationRunner = "org.tasks.TestRunner" - kapt { - arguments { - arg("room.schemaLocation", "$projectDir/schemas") - arg("room.incremental", "true") - } + ksp { + arg("room.schemaLocation", "$projectDir/schemas") + arg("room.incremental", "true") } } @@ -191,7 +190,7 @@ dependencies { implementation(libs.androidx.lifecycle.runtime) implementation(libs.androidx.lifecycle.viewmodel) implementation(libs.androidx.room) - kapt(libs.androidx.room.compiler) + ksp(libs.androidx.room.compiler) implementation(libs.androidx.appcompat) implementation(libs.markwon) implementation(libs.markwon.editor) diff --git a/build.gradle.kts b/build.gradle.kts index 865a82d44..3b024279b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,7 @@ +plugins { + id("com.google.devtools.ksp") version "1.9.0-1.0.13" apply false +} + buildscript { repositories { mavenCentral()