Revert "Removed kapt"

This reverts commit b9e2c98699.
This commit is contained in:
Corewala 2022-01-07 15:59:44 -05:00
parent b9e2c98699
commit 9ed34ece8f
2 changed files with 6 additions and 1 deletions

View File

@ -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'

View File

@ -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
kotlin.code.style=official
# Kapt workaround
kapt.use.worker.api=false
kapt.incremental.apt=false