普通文本  |  47行  |  1.35 KB

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

plugins {
    id("SupportAndroidLibraryPlugin")
}

dependencies {
    api(project(":annotation"))
    api(project(":legacy-support-core-ui"))
    api(project(":fragment"))
    api(project(":recyclerview"))
    api(CONSTRAINT_LAYOUT, { transitive = true })

    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

    compileOnly fileTree(dir: 'wear_stubs', include: ['com.google.android.wearable-stubs.jar'])
}

android {
    sourceSets {
        main.res.srcDirs 'res', 'res-public'
        main.resources {
            includes = ["wear_stubs/LICENSE"]
        }
    }

    buildTypes.all {
        consumerProguardFiles 'proguard-rules.pro'
    }
}

supportLibrary {
    name = "Android Wear Support UI"
    publish = true
    mavenVersion = LibraryVersions.SUPPORT_LIBRARY
    mavenGroup = LibraryGroups.WEAR
    inceptionYear = "2016"
    description = "Android Wear Support UI"
    minSdkVersion = 23
    failOnDeprecationWarnings = false
}