AndroidAPS/core/interfaces/build.gradle

38 lines
1.1 KiB
Groovy
Raw Normal View History

plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'kotlin-allopen'
id 'kotlin-parcelize'
id 'kotlinx-serialization'
id 'com.hiya.jacoco-android'
}
2022-11-06 17:48:42 +01:00
2022-11-09 13:30:48 +01:00
apply from: "${project.rootDir}/core/core-main/android_dependencies.gradle"
apply from: "${project.rootDir}/core/core-main/android_module_dependencies.gradle"
2022-11-06 17:48:42 +01:00
android {
namespace 'info.nightscout.interfaces'
}
dependencies {
// I don't like this low level dependency but it helps
// to move more code to interface module
// database module is compiled longer anyway
2022-11-08 21:17:46 +01:00
// (ResourceHelper, AAPSLogger interface)
implementation project(':app-wear-shared:shared')
2022-11-10 09:40:49 +01:00
implementation project(':database:entities')
2022-11-27 11:01:19 +01:00
implementation project(':core:ns-sdk')
2022-11-06 23:10:04 +01:00
api "androidx.appcompat:appcompat:$appcompat_version"
2022-11-06 23:58:05 +01:00
// Dagger
api "com.google.dagger:dagger:$dagger_version"
api "com.google.dagger:dagger-android:$dagger_version"
2022-11-06 21:35:34 +01:00
}
2022-11-06 23:10:04 +01:00
2022-11-06 21:35:34 +01:00
allOpen {
// allows mocking for classes w/o directly opening them for release builds
annotation 'info.nightscout.interfaces.annotations.InterfacesOpenForTesting'
2022-11-06 17:48:42 +01:00
}