From f34876ca932a69bfcb7a5f303781f158fd62ee99 Mon Sep 17 00:00:00 2001 From: tom5079 <7948651+tom5079@users.noreply.github.com> Date: Mon, 4 Mar 2024 19:45:59 -0800 Subject: [PATCH] add room dependency --- app/build.gradle | 11 +++++++++-- build.gradle | 5 ++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 814f6d93..bffcd6d0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,9 +1,10 @@ apply plugin: "com.android.application" apply plugin: "kotlin-android" -apply plugin: "kotlin-kapt" apply plugin: "kotlin-parcelize" apply plugin: "kotlinx-serialization" apply plugin: "com.google.android.gms.oss-licenses-plugin" +apply plugin: "com.google.devtools.ksp" + if (file("google-services.json").exists()) { logger.lifecycle("Firebase Enabled") @@ -96,7 +97,13 @@ dependencies { implementation "com.google.accompanist:accompanist-adaptive:0.34.0" implementation "androidx.navigation:navigation-compose:2.7.7" - kapt 'androidx.lifecycle:lifecycle-compiler:2.7.0' + ksp 'androidx.lifecycle:lifecycle-compiler:2.7.0' + + def room_version = "2.6.1" + + implementation "androidx.room:room-runtime:$room_version" + annotationProcessor "androidx.room:room-compiler:$room_version" + ksp "androidx.room:room-compiler:$room_version" implementation "androidx.paging:paging-compose:3.2.1" diff --git a/build.gradle b/build.gradle index f1fcd161..2eb3321f 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,4 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. - buildscript { repositories { google() @@ -19,6 +18,10 @@ buildscript { } } +plugins { + id 'com.google.devtools.ksp' version '1.9.22-1.0.17' apply false +} + allprojects { repositories { google()