AndroidAPS/database/impl/build.gradle

59 lines
1.8 KiB
Groovy
Raw Normal View History

plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'kotlin-allopen'
}
2021-02-04 18:22:58 +01:00
2022-12-02 10:56:11 +01:00
apply from: "${project.rootDir}/core/main/android_dependencies.gradle"
apply from: "${project.rootDir}/core/main/android_module_dependencies.gradle"
apply from: "${project.rootDir}/core/main/test_dependencies.gradle"
apply from: "${project.rootDir}/core/main/jacoco_global.gradle"
2021-02-04 18:22:58 +01:00
2021-02-18 23:35:23 +01:00
android {
2022-06-06 10:25:08 +02:00
2022-11-09 23:28:48 +01:00
namespace 'info.nightscout.database.impl'
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
}
sourceSets {
androidTest.assets.srcDirs += files("$projectDir/schemas")
}
2021-02-04 18:22:58 +01:00
}
dependencies {
2022-11-09 23:28:48 +01:00
implementation project(':database:entities')
2022-02-10 17:13:42 +01:00
api "androidx.core:core-ktx:$core_version"
2022-04-23 14:09:37 +02:00
api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
2022-11-11 20:22:12 +01:00
api "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
2021-02-04 18:22:58 +01:00
2022-02-10 19:11:58 +01:00
api "io.reactivex.rxjava3:rxjava:$rxjava_version"
api "io.reactivex.rxjava3:rxandroid:$rxandroid_version"
2022-05-25 15:46:06 +02:00
api "io.reactivex.rxjava3:rxkotlin:$rxkotlin_version"
2021-02-04 18:22:58 +01:00
2022-05-25 15:46:06 +02:00
api "com.google.code.gson:gson:$gson_version"
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"
2022-02-10 19:11:58 +01:00
api "androidx.room:room-rxjava3:$room_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"
androidTestImplementation "androidx.room:room-testing:$room_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
2022-11-13 17:34:20 +01:00
annotation 'info.nightscout.database.annotations.DbOpenForTesting'
}