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.aps'
}

dependencies {
    implementation project(':app-wear-shared:shared')
    implementation project(':database:entities')
    implementation project(':database:impl')
    implementation project(':core:main')
    implementation project(':core:interfaces')
    implementation project(':core:utils')
    implementation project(':core:ui')
    implementation project(':core:validators')

    api "androidx.appcompat:appcompat:$appcompat_version"
    api "androidx.swiperefreshlayout:swiperefreshlayout:$swipe_version"
    api "androidx.gridlayout:gridlayout:$gridlayout_version"

    // APS
    api 'org.mozilla:rhino:1.7.14'
    implementation project(path: ':plugins:automation')
}