import static androidx.build.dependencies.DependenciesKt.*
import androidx.build.LibraryGroups
import androidx.build.LibraryVersions

plugins {
    id("SupportAndroidLibraryPlugin")
    id("kotlin-android")
}

dependencies {
    api(project(":annotation"))
    api(project(":core"))
    api(project(":legacy-support-core-ui"))

    androidTestImplementation(TEST_RUNNER_TMP, libs.exclude_for_espresso)
    androidTestImplementation(ESPRESSO_CORE_TMP, libs.exclude_for_espresso)
    androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
    androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
    androidTestImplementation(JUNIT)
    androidTestImplementation(KOTLIN_STDLIB)
    androidTestImplementation(project(":internal-testutils"))

    testImplementation(JUNIT)
    testImplementation(MOCKITO_CORE)
    testImplementation(TEST_RUNNER_TMP, libs.exclude_for_espresso)
}

android {
    sourceSets {
        main.res.srcDirs "res", "res-public"
    }

    buildTypes.all {
        consumerProguardFiles("proguard-rules.pro")
    }
}

supportLibrary {
    name = "Android Support RecyclerView v7"
    publish = true
    mavenVersion = LibraryVersions.SUPPORT_LIBRARY
    mavenGroup = LibraryGroups.RECYCLERVIEW
    inceptionYear = "2014"
    description = "Android Support RecyclerView v7"
    failOnUncheckedWarnings = false
    failOnDeprecationWarnings = false
}