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

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/allopen_dependencies.gradle"
apply from: "${project.rootDir}/core/main/jacoco_global.gradle"
android {
    namespace 'info.nightscout.plugins'
}

dependencies {
    implementation project(':shared:impl')
    implementation project(':database:entities')
    implementation project(':database:impl')
    implementation project(':core:graphview')
    implementation project(':core:interfaces')
    implementation project(':core:main')
    implementation project(':core:ns-sdk')
    implementation project(':core:ui')
    implementation project(':core:utils')
    implementation project(':core:validators')

    testImplementation project(':implementation')
    testImplementation project(':plugins:insulin')
    testImplementation project(':shared:tests')

    api "androidx.appcompat:appcompat:$appcompat_version"
    api "com.google.android.material:material:$material_version"

    // Actions
    api "androidx.gridlayout:gridlayout:$gridlayout_version"

    //SmsCommunicator
    api 'com.eatthepath:java-otp:0.4.0'
    api 'com.github.kenglxn.QRGen:android:3.0.1'

    // Overview
    api 'com.google.android.flexbox:flexbox:3.0.0'

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

    // DataLayerListenerService
    api "com.google.android.gms:play-services-wearable:$play_services_wearable_version"
}