import dependencies.Dep

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'

apply from: rootProject.file('gradle/android.gradle')

dependencies {
    implementation project(':ext:log')
    implementation project(':corecomponent:androidcomponent')

    implementation Dep.Kotlin.stdlibJvm
    api Dep.Kotlin.coroutines
    implementation Dep.Kotlin.coroutinesPlayServices
    implementation Dep.Kotlin.androidCoroutinesDispatcher

    implementation Dep.AndroidX.coreKtx
    implementation Dep.AndroidX.Work.runtime
    implementation Dep.AndroidX.Work.runtimeKtx

    implementation Dep.Timber.android

    implementation Dep.Firebase.messaging

    testImplementation Dep.Test.junit
    testImplementation Dep.Test.kotlinTestAssertions
    testImplementation Dep.MockK.jvm
    testImplementation project(':corecomponent:androidtestcomponent')
    androidTestImplementation Dep.Test.testRunner
    androidTestImplementation Dep.Test.espressoCore
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
    kotlinOptions {
        freeCompilerArgs = [
                '-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi',
                '-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi'
        ]
    }
}
