apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-allopen' apply from: "${project.rootDir}/gradle/android_dependencies.gradle" apply from: "${project.rootDir}/gradle/android_module_dependencies.gradle" android { defaultConfig { kapt { arguments { arg("room.incremental", "true") arg("room.schemaLocation", "$projectDir/schemas") } } } } dependencies { implementation "androidx.core:core-ktx:$coreVersion" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "io.reactivex.rxjava2:rxjava:$rxjava_version" implementation "io.reactivex.rxjava2:rxandroid:$rxandroid_version" implementation("io.reactivex.rxjava2:rxkotlin:$rxkotlin_version") implementation "com.google.code.gson:gson:2.8.9" api "androidx.room:room-runtime:$room_version" kapt "androidx.room:room-compiler:$room_version" /* Database schema export */ kapt "androidx.room:room-compiler:$room_version" implementation "androidx.room:room-ktx:$room_version" implementation "androidx.room:room-rxjava2:$room_version" implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version" implementation "com.google.dagger:dagger-android:$dagger_version" implementation "com.google.dagger:dagger-android-support:$dagger_version" api "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" } allOpen { // allows mocking for classes w/o directly opening them for release builds annotation 'info.nightscout.androidaps.annotations.OpenForTesting' }