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

android {

  defaultConfig {
    applicationId "com.airbnb.epoxy.preloadersample"
    minSdkVersion rootProject.MIN_SDK_VERSION
    compileSdk rootProject.COMPILE_SDK_VERSION
    targetSdkVersion rootProject.TARGET_SDK_VERSION
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  }

  buildFeatures {
    viewBinding true
  }

  compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
  }
}

dependencies {

  implementation project(':epoxy-adapter')
  implementation project(':epoxy-glide-preloader')
  kapt project(':epoxy-processor')

  implementation rootProject.deps.glide

  implementation rootProject.deps.androidRecyclerView
  implementation rootProject.deps.androidCardView
  implementation rootProject.deps.androidAppcompat
  testImplementation rootProject.deps.junit
  androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0-alpha2', {
    exclude group: 'com.android.support', module: 'support-annotations'
  })
}
