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

apply from: '../dependencies.gradle'
apply from: '../bintrayconfig.gradle'

android {
  compileSdkVersion versions.compileSdk
  buildToolsVersion versions.buildTools

  defaultConfig {
    minSdkVersion versions.minSdk
    targetSdkVersion versions.compileSdk
    versionCode versions.versionCode
    versionName versions.publishVersion
    consumerProguardFiles 'retrofit-proguard.txt'
  }

  sourceSets {
    main.res.srcDirs = [
        'src/main/res',
        'src/main/res-public'
    ]
  }

  compileOptions {
    kotlinOptions.freeCompilerArgs += ['-module-name', "com.afollestad.arctic-icon-request"]
  }
}

dependencies {
  implementation 'androidx.annotation:annotation:' + versions.androidx
  implementation 'androidx.appcompat:appcompat:' + versions.androidx

  implementation 'com.squareup.retrofit2:retrofit:' + versions.retrofit
  implementation 'com.squareup.retrofit2:adapter-rxjava2:' + versions.retrofit
  implementation 'com.squareup.retrofit2:converter-gson:' + versions.retrofit
  implementation 'com.google.code.gson:gson:' + versions.gson

  api 'io.reactivex.rxjava2:rxjava:' + versions.rxJava
  api 'io.reactivex.rxjava2:rxandroid:' + versions.rxAndroid
  api 'com.github.bumptech.glide:glide:' + versions.glide

  implementation('org.jetbrains.kotlin:kotlin-stdlib-jdk7:' + versions.kotlin) {
    exclude group: 'org.jetbrains', module: 'annotations'
  }
}


apply from: '../spotless.gradle'