blob: eda587d354e0678171f92285f5a0141e0567402f [file] [log] [blame]
Aurimas Liutikas526389b2018-02-27 14:01:24 -08001import static androidx.build.dependencies.DependenciesKt.*
2import androidx.build.LibraryGroups
3import androidx.build.LibraryVersions
Aurimas Liutikas7f40a7e2017-10-27 17:55:06 -07004
Aurimas Liutikasf8b708a2017-11-02 16:07:13 -07005plugins {
6 id("SupportAndroidLibraryPlugin")
7}
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -07008
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -07009dependencies {
Aurimas Liutikasac5fe7c2018-03-06 14:40:53 -080010 api(project(":annotation"))
11 api(project(":core"))
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080012
Filip Pavlisa8792942018-03-08 21:01:59 +000013 androidTestImplementation(TEST_RUNNER_TMP, libs.exclude_for_espresso)
14 androidTestImplementation(ESPRESSO_CORE_TMP, libs.exclude_for_espresso)
Aurimas Liutikasb8fd9b62017-11-22 12:55:43 -080015 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
Aurimas Liutikas67171c82018-02-27 13:10:25 -080017 androidTestImplementation project(':internal-testutils')
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070018}
19
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070020android {
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070021 sourceSets {
Aurimas Liutikas3ebde3b2018-02-14 15:53:39 -080022 main.java.srcDirs += [
Alan Viverette9439d702016-10-25 14:45:10 +010023 'api21',
24 'api22',
25 'api23',
26 'api24',
Hyundo Moon676cb6f2017-08-31 15:08:12 +090027 'api26',
Alan Viverette9439d702016-10-25 14:45:10 +010028 ]
Aurimas Liutikas3ebde3b2018-02-14 15:53:39 -080029 main.res.srcDirs += 'src/main/res-public'
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070030 }
Hyundo Moon7ee78192017-04-24 17:48:41 +090031
32 buildTypes.all {
33 consumerProguardFiles 'proguard-rules.pro'
34 }
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070035}
36
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080037supportLibrary {
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080038 name = "Android Support Library media compat"
39 publish = true
Aurimas Liutikas78c1ab72017-11-08 13:33:51 -080040 mavenVersion = LibraryVersions.SUPPORT_LIBRARY
Aurimas Liutikasac5fe7c2018-03-06 14:40:53 -080041 mavenGroup = LibraryGroups.MEDIA
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080042 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."
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080044}