plugins {
    id 'com.android.library'
    id 'kotlin-android'
    id 'kotlin-kapt'
    id 'kotlin-allopen'
    id 'kotlin-parcelize'
    id 'kotlinx-serialization'
}

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/allopen_dependencies.gradle"
apply from: "${project.rootDir}/core/main/test_dependencies.gradle"
apply from: "${project.rootDir}/core/main/jacoco_global.gradle"

android {

    namespace 'info.nightscout.interfaces'
    defaultConfig {
        minSdkVersion 25  // for wear
    }
}

dependencies {
    implementation project(':database:entities')

    api "androidx.appcompat:appcompat:$appcompat_version"
    api "androidx.preference:preference-ktx:$preferencektx_version"
    api "net.danlew:android.joda:$joda_version"


    api "com.google.dagger:dagger:$dagger_version"
    api "com.google.dagger:dagger-android:$dagger_version"
    api "com.google.dagger:dagger-android-support:$dagger_version"

    //Logger
    api 'org.slf4j:slf4j-api:1.7.36' // 2.0.x breaks logging. Code change needed
    api 'com.github.tony19:logback-android:2.0.0'

    api "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinx_serialization_version"
    api "org.jetbrains.kotlinx:kotlinx-serialization-protobuf:$kotlinx_serialization_version"
    api "com.caverock:androidsvg:$caverock_androidsvg_version"
    api "org.apache.commons:commons-lang3:$commonslang3_version"

    //RxBus
    api "io.reactivex.rxjava3:rxjava:$rxjava_version"
    api "io.reactivex.rxjava3:rxkotlin:$rxkotlin_version"
    api "io.reactivex.rxjava3:rxandroid:$rxandroid_version"

    // WorkerClasses
    api "androidx.work:work-runtime-ktx:$work_version"
}