From 42a74473b4445443f86b02895a1d70a7fd6d9ee8 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 29 Jan 2021 05:15:07 +0000 Subject: [PATCH] add Room to dependencies --- app/build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 3ec9a64f..c0730682 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -27,6 +27,15 @@ android { versionCode 37 versionName '0.16.0' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + javaCompileOptions { + annotationProcessorOptions { + arguments += [ + "room.schemaLocation" : "$projectDir/schemas".toString(), + "room.incremental" : "true", + "room.expandProjection": "true" + ] + } + } } buildTypes { release { @@ -52,6 +61,9 @@ android { dependencies { implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0' + def room_version = '2.2.6' + implementation "androidx.room:room-runtime:$room_version" + annotationProcessor "androidx.room:room-compiler:$room_version" def nav_version = '2.3.2' implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'androidx.legacy:legacy-support-v4:1.0.0' -- 2.39.5