blob: c50499699b7bc8652420d283266c8af6715158a9 [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 'api21',
22 'api22',
23 'api23',
24 'api24',
Hyundo Moon676cb6f2017-08-31 15:08:12 +090025 'api26',
Alan Viverette9439d702016-10-25 14:45:10 +010026 'java'
27 ]
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070028 main.aidl.srcDirs = ['java']
Ian Lake826ed4f2017-06-29 11:07:08 -070029 main.res.srcDirs 'res', '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 {
Kirill Grouchnikov5c5181c2017-05-16 10:58:53 -070038 name 'Android Support Library media compat'
Aurimas Liutikase1f39f02017-08-23 17:59:58 -070039 publish true
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080040 inceptionYear '2011'
Kirill Grouchnikov5c5181c2017-05-16 10:58:53 -070041 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 -080042}