blob: ffa6e93fea9dbe3df49533fa493a1e882cfb25fd [file] [log] [blame]
Aurimas Liutikasb8fd9b62017-11-22 12:55:43 -08001import static android.support.dependencies.DependenciesKt.*
Aurimas Liutikas7f40a7e2017-10-27 17:55:06 -07002import android.support.LibraryGroups
Aurimas Liutikas78c1ab72017-11-08 13:33:51 -08003import android.support.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 Liutikasb8fd9b62017-11-22 12:55:43 -080010 api(project(":support-annotations"))
11 api(project(":support-compat"))
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080012
Jake Wharton66807fc2017-12-05 14:44:35 -050013 androidTestImplementation(TEST_RUNNER)
14 androidTestImplementation(ESPRESSO_CORE)
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 Liutikas1989c3c2017-07-05 14:44:09 -070017 androidTestImplementation project(':support-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 {
Alan Viverette9439d702016-10-25 14:45:10 +010022 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 'java'
29 ]
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070030 main.aidl.srcDirs = ['java']
Ian Lake826ed4f2017-06-29 11:07:08 -070031 main.res.srcDirs 'res', 'res-public'
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070032 }
Hyundo Moon7ee78192017-04-24 17:48:41 +090033
34 buildTypes.all {
35 consumerProguardFiles 'proguard-rules.pro'
36 }
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070037}
38
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080039supportLibrary {
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080040 name = "Android Support Library media compat"
41 publish = true
Aurimas Liutikas78c1ab72017-11-08 13:33:51 -080042 mavenVersion = LibraryVersions.SUPPORT_LIBRARY
Aurimas Liutikas7f40a7e2017-10-27 17:55:06 -070043 mavenGroup = LibraryGroups.SUPPORT
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080044 inceptionYear = "2011"
45 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."
46 legacySourceLocation = true
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080047}