Export Room schemes (#963)

This commit is contained in:
Ivan Kupalov 2018-12-25 20:06:28 +01:00 committed by Konrad Pozniak
commit bac15c42bd
3 changed files with 286 additions and 1 deletions

View file

@ -22,6 +22,12 @@ android {
versionName "4.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas")
}
}
}
buildTypes {
release {
@ -56,6 +62,10 @@ android {
includeAndroidResources = true
}
}
sourceSets {
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
}
packagingOptions {
// Exclude unneeded files added by libraries