From d02adfc6572669b012ba508f2cb3ad6892c2d3f2 Mon Sep 17 00:00:00 2001 From: Anirudhgoud Date: Sun, 9 Apr 2023 23:42:14 +0530 Subject: [PATCH] Migrated Room to KSP --- app/build.gradle.kts | 3 ++- build.gradle.kts | 1 + gradle.properties | 1 + shared-test/build.gradle.kts | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 8069c0dd3..457602507 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -18,6 +18,7 @@ plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.android) alias(libs.plugins.kapt) + alias(libs.plugins.ksp) alias(libs.plugins.hilt) } @@ -120,7 +121,7 @@ dependencies { // Architecture Components implementation(libs.room.runtime) implementation(libs.room.ktx) - kapt(libs.room.compiler) + ksp(libs.room.compiler) implementation(libs.androidx.lifecycle.runtimeCompose) implementation(libs.androidx.lifecycle.viewModelCompose) diff --git a/build.gradle.kts b/build.gradle.kts index 1bb52695d..79946bd70 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -18,5 +18,6 @@ plugins { alias(libs.plugins.android.library) apply false alias(libs.plugins.kotlin.android) apply false alias(libs.plugins.kapt) apply false + alias(libs.plugins.ksp) apply false alias(libs.plugins.hilt) apply false } diff --git a/gradle.properties b/gradle.properties index b50830f70..504538451 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,4 +19,5 @@ org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryErr android.enableJetifier=true android.useAndroidX=true kapt.incremental.apt=true +ksp.incremental.apt=true org.gradle.unsafe.configuration-cache=true \ No newline at end of file diff --git a/shared-test/build.gradle.kts b/shared-test/build.gradle.kts index 216f0881d..2060fc01b 100644 --- a/shared-test/build.gradle.kts +++ b/shared-test/build.gradle.kts @@ -17,6 +17,7 @@ plugins { alias(libs.plugins.android.library) alias(libs.plugins.kotlin.android) alias(libs.plugins.kapt) + alias(libs.plugins.ksp) alias(libs.plugins.hilt) } @@ -43,5 +44,5 @@ dependencies { // Room implementation(libs.room.runtime) implementation(libs.room.ktx) - kapt(libs.room.compiler) + ksp(libs.room.compiler) } \ No newline at end of file