apply plugin: 'com.android.library' android { compileSdkVersion 28 defaultConfig { minSdkVersion 19 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" javaCompileOptions { annotationProcessorOptions { arguments = ["room.schemaLocation": "$projectDir/schemas".toString()] } } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility 1.8 targetCompatibility 1.8 } } dependencies { api project(":persistence") // Dagger 2 for dependency injection implementation "com.google.dagger:dagger:$daggerVersion" annotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion" // Room api "androidx.room:room-runtime:$roomVersion" annotationProcessor "androidx.room:room-compiler:$roomVersion" implementation "androidx.room:room-rxjava2:$roomRxJavaVersion" api "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion" // Test testImplementation "junit:junit:$junitVersion" androidTestImplementation "androidx.test:runner:$andxTestRunnerVersion" androidTestImplementation "androidx.test.espresso:espresso-core:$andxTestEspressoVersion" androidTestImplementation "androidx.test:core:$andxTestCoreVersion" androidTestImplementation "androidx.test.ext:junit:$andxTestJunitVersion" }