1import static androidx.build.dependencies.DependenciesKt.*
2import androidx.build.LibraryGroups
3import androidx.build.LibraryVersions
4
5plugins {
6    id("SupportAndroidLibraryPlugin")
7}
8
9dependencies {
10    api(project(":annotation"))
11    api(project(":core"))
12
13    androidTestImplementation(TEST_RUNNER_TMP, libs.exclude_for_espresso)
14    androidTestImplementation(ESPRESSO_CORE_TMP, libs.exclude_for_espresso)
15    androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
16    androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
17    androidTestImplementation project(':internal-testutils')
18}
19
20android {
21    sourceSets {
22        main.java.srcDirs += [
23                'api21',
24                'api22',
25                'api23',
26                'api24',
27                'api26',
28        ]
29        main.res.srcDirs += 'src/main/res-public'
30    }
31
32    buildTypes.all {
33        consumerProguardFiles 'proguard-rules.pro'
34    }
35}
36
37supportLibrary {
38    name = "Android Support Library media compat"
39    publish = true
40    mavenVersion = LibraryVersions.SUPPORT_LIBRARY
41    mavenGroup = LibraryGroups.MEDIA
42    inceptionYear = "2011"
43    description = "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later."
44    failOnUncheckedWarnings = false
45    failOnDeprecationWarnings = false
46}
47