blob: 2ea24837b45e151e9cfd3754587807916e970c12 [file] [log] [blame]
Aurimas Liutikasca04e9a2017-08-23 21:19:51 -07001apply plugin: android.support.SupportAndroidLibraryPlugin
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -07002
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -07003dependencies {
Aurimas Liutikas1989c3c2017-07-05 14:44:09 -07004 api project(':support-annotations')
5 api project(':support-compat')
Aurimas Liutikasf09d8582017-01-20 21:49:51 -08006
Aurimas Liutikas9edca682017-07-25 09:12:35 -07007 androidTestImplementation libs.test_runner, { exclude module: 'support-annotations' }
8 androidTestImplementation libs.espresso_core, { exclude module: 'support-annotations' }
9 androidTestImplementation libs.mockito_core, { exclude group: 'net.bytebuddy' } // DexMaker has it"s own MockMaker
10 androidTestImplementation libs.dexmaker_mockito, { exclude group: 'net.bytebuddy' } // DexMaker has it"s own MockMaker
Aurimas Liutikas1989c3c2017-07-05 14:44:09 -070011 androidTestImplementation project(':support-testutils')
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070012}
13
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070014android {
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070015 defaultConfig {
Aurimas Liutikasf7513062017-01-05 13:02:27 -080016 minSdkVersion 14
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070017 }
18
19 sourceSets {
Alan Viverette9439d702016-10-25 14:45:10 +010020 main.java.srcDirs = [
Alan Viverette9439d702016-10-25 14:45:10 +010021 'jellybean-mr2',
22 'kitkat',
23 '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 {
Kirill Grouchnikov5c5181c2017-05-16 10:58:53 -070040 name 'Android Support Library media compat'
Aurimas Liutikase1f39f02017-08-23 17:59:58 -070041 publish true
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080042 inceptionYear '2011'
Kirill Grouchnikov5c5181c2017-05-16 10:58:53 -070043 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}