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

android {


  defaultConfig {
    applicationId "com.airbnb.epoxy.integrationtest"
    compileSdk rootProject.COMPILE_SDK_VERSION
    minSdkVersion rootProject.MIN_SDK_VERSION
    targetSdkVersion rootProject.TARGET_SDK_VERSION
    vectorDrawables.useSupportLibrary = true
    versionCode 1
    versionName "1.0"
  }

  dataBinding {
    enabled = true
  }

  dexOptions {
    // Was getting this error otherwise - "Multiple dex files define Landroid/arch/core/BuildConfig"
    preDexLibraries = false
  }

  testOptions {
    unitTests {
      includeAndroidResources = true
    }
  }

  compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
  }

  kotlinOptions {
    jvmTarget = "1.8"
  }
}

dependencies {
  implementation rootProject.deps.androidAppcompat
  implementation rootProject.deps.androidFragmentTesting
  implementation rootProject.deps.androidPagingComponent
  implementation rootProject.deps.androidRecyclerView
  implementation rootProject.deps.lifecycleViewmodel
  implementation rootProject.deps.lifecycleViewmodelKtx
  implementation project(':epoxy-adapter')
  implementation project(':epoxy-annotations')
  implementation project(':epoxy-databinding')
  implementation project(':epoxy-viewbinder')

  kapt project(':epoxy-processor')

  testImplementation rootProject.deps.robolectric
  testImplementation rootProject.deps.junit
  testImplementation rootProject.deps.mockito
  testImplementation rootProject.deps.mockito_inline
  testImplementation rootProject.deps.androidTestCore
  testImplementation rootProject.deps.androidTestExtJunitKtx
  testImplementation rootProject.deps.androidEspressoCore
}

repositories {
  mavenCentral()
}
