blob: e02463865b7ba1c06c28bb6290a6af56f86a7dec [file] [log] [blame]
Aurimas Liutikasf8b708a2017-11-02 16:07:13 -07001plugins {
2 id("SupportAndroidLibraryPlugin")
3}
Chris Banes95cf1162015-01-13 10:27:15 +00004
5dependencies {
Aurimas Liutikas1989c3c2017-07-05 14:44:09 -07006 api project(':support-v4')
Aurimas Liutikas40e78212017-07-20 14:22:58 -07007 api project(':appcompat-v7')
8 api project(':recyclerview-v7')
9 api project(':transition')
Kirill Grouchnikov394c4272015-12-21 14:09:23 -050010
Aurimas Liutikasa82b39f2017-07-24 17:32:00 -070011 androidTestImplementation libs.test_runner, { exclude module: 'support-annotations' }
12 androidTestImplementation libs.espresso_core, { exclude module: 'support-annotations' }
13 androidTestImplementation libs.espresso_contrib, { exclude group: 'com.android.support' }
14 androidTestImplementation libs.mockito_core, { exclude group: 'net.bytebuddy' } // DexMaker has it"s own MockMaker
15 androidTestImplementation libs.dexmaker_mockito, { exclude group: 'net.bytebuddy' } // DexMaker has it"s own MockMaker
Aurimas Liutikas1989c3c2017-07-05 14:44:09 -070016 androidTestImplementation project(':support-testutils')
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080017
Aurimas Liutikas1989c3c2017-07-05 14:44:09 -070018 testImplementation libs.junit
19 testImplementation (libs.test_runner) {
Aurimas Liutikas480ee202016-10-21 10:12:53 -070020 exclude module: 'support-annotations'
21 }
Chris Banes95cf1162015-01-13 10:27:15 +000022}
23
24android {
Kirill Grouchnikov394c4272015-12-21 14:09:23 -050025 defaultConfig {
Aurimas Liutikasf7513062017-01-05 13:02:27 -080026 minSdkVersion 14
Alan Viveretteeb648622016-03-11 19:33:03 +000027 // This disables the builds tools automatic vector -> PNG generation
28 generatedDensities = []
Kirill Grouchnikov394c4272015-12-21 14:09:23 -050029 }
30
Chris Banes95cf1162015-01-13 10:27:15 +000031 sourceSets {
Alan Viverette9439d702016-10-25 14:45:10 +010032 main.java.srcDirs = [
33 'base',
34 'gingerbread',
Alan Viverette9439d702016-10-25 14:45:10 +010035 'ics',
36 'lollipop',
37 'src'
38 ]
39 main.res.srcDirs = [
40 'res',
41 'res-public'
42 ]
Chris Banes95cf1162015-01-13 10:27:15 +000043 main.resources.srcDir 'src'
44
Chris Banesa2f4dd02016-06-21 14:41:43 +010045 test.java.srcDir 'jvm-tests/src'
Chris Banes95cf1162015-01-13 10:27:15 +000046 }
47
Yuichi Arakie764a032015-06-30 18:45:49 +090048 buildTypes.all {
49 consumerProguardFiles 'proguard-rules.pro'
50 }
Alan Viveretteeb648622016-03-11 19:33:03 +000051
52 aaptOptions {
53 additionalParameters "--no-version-vectors"
54 }
ztenghuie255ac72017-01-26 15:29:16 -080055
56 buildTypes {
57 debug {
58 pseudoLocalesEnabled true
59 }
60 }
Chris Banes95cf1162015-01-13 10:27:15 +000061}
Chris Banes3f175da2015-10-01 12:42:26 +010062
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080063supportLibrary {
64 name 'Android Design Support Library'
Aurimas Liutikase1f39f02017-08-23 17:59:58 -070065 publish true
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080066 inceptionYear '2015'
Kirill Grouchnikov5c5181c2017-05-16 10:58:53 -070067 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 Liutikasf8b708a2017-11-02 16:07:13 -070068 legacySourceLocation true
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080069}