X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fbuild.gradle;h=c07306826e82f0f9298d2d6c80cf782b92ba722a;hp=3ec9a64fa0e138f7b372ec11934c9a1cc7bb4dcb;hb=42a74473b4445443f86b02895a1d70a7fd6d9ee8;hpb=a1d0db823989bbc210758351ff1d1bf0ea0ddffa 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'