AndroidAPS/database/build.gradle

47 lines
1.5 KiB
Groovy
Raw Normal View History

2021-02-04 18:22:58 +01:00
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
2021-09-21 21:57:56 +02:00
apply plugin: 'kotlin-allopen'
2021-02-04 18:22:58 +01:00
2021-02-18 23:35:23 +01:00
apply from: "${project.rootDir}/gradle/android_dependencies.gradle"
apply from: "${project.rootDir}/gradle/android_module_dependencies.gradle"
2021-02-04 18:22:58 +01:00
2021-02-18 23:35:23 +01:00
android {
2021-02-04 18:22:58 +01:00
defaultConfig {
2021-02-09 11:27:02 +01:00
kapt {
arguments {
arg("room.incremental", "true")
arg("room.schemaLocation", "$projectDir/schemas")
}
}
2021-02-04 18:22:58 +01:00
}
}
dependencies {
2021-12-11 11:37:22 +01:00
api "androidx.core:core-ktx:$coreVersion"
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
2021-02-04 18:22:58 +01:00
2021-12-11 11:37:22 +01:00
api "io.reactivex.rxjava2:rxjava:$rxjava_version"
api "io.reactivex.rxjava2:rxandroid:$rxandroid_version"
api("io.reactivex.rxjava2:rxkotlin:$rxkotlin_version")
2021-02-04 18:22:58 +01:00
2021-12-11 11:37:22 +01:00
api "com.google.code.gson:gson:2.8.9"
2021-02-04 18:22:58 +01:00
api "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
2021-02-09 11:27:02 +01:00
/* Database schema export */
2021-05-18 21:37:03 +02:00
kapt "androidx.room:room-compiler:$room_version"
2021-12-11 11:37:22 +01:00
api "androidx.room:room-ktx:$room_version"
api "androidx.room:room-rxjava2:$room_version"
2021-02-04 18:22:58 +01:00
2021-12-11 11:37:22 +01:00
api "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
2021-02-04 18:22:58 +01:00
2021-12-11 11:37:22 +01:00
api "com.google.dagger:dagger-android:$dagger_version"
api "com.google.dagger:dagger-android-support:$dagger_version"
2021-03-27 21:14:56 +01:00
api "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
2021-02-04 18:22:58 +01:00
}
2021-09-21 21:57:56 +02:00
allOpen {
// allows mocking for classes w/o directly opening them for release builds
annotation 'info.nightscout.androidaps.annotations.OpenForTesting'
}