]> git.ktnx.net Git - mobile-ledger.git/commitdiff
add Room to dependencies
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 29 Jan 2021 05:15:07 +0000 (05:15 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 29 Jan 2021 05:15:07 +0000 (05:15 +0000)
app/build.gradle

index 3ec9a64fa0e138f7b372ec11934c9a1cc7bb4dcb..c07306826e82f0f9298d2d6c80cf782b92ba722a 100644 (file)
@@ -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'