From 9ed34ece8fd3d850144063bc131c54b73895cd02 Mon Sep 17 00:00:00 2001 From: Corewala Date: Fri, 7 Jan 2022 15:59:44 -0500 Subject: [PATCH] Revert "Removed kapt" This reverts commit b9e2c9869942648ded061535e1bcf13537e95d96. --- app/build.gradle | 2 ++ gradle.properties | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 3b87ecd..7cc04fc 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' +apply plugin: 'kotlin-kapt' android { compileSdkVersion 30 @@ -59,6 +60,7 @@ dependencies { //ROOM DB def room_version = "2.2.6" implementation "androidx.room:room-runtime:$room_version" + kapt "androidx.room:room-compiler:$room_version" implementation "androidx.room:room-ktx:$room_version" testImplementation 'junit:junit:4.13.1' diff --git a/gradle.properties b/gradle.properties index 4d15d01..6706aea 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,4 +18,7 @@ android.useAndroidX=true # Automatically convert third-party libraries to use AndroidX android.enableJetifier=true # Kotlin code style for this project: "official" or "obsolete": -kotlin.code.style=official \ No newline at end of file +kotlin.code.style=official +# Kapt workaround +kapt.use.worker.api=false +kapt.incremental.apt=false