Aurimas Liutikas | f8b708a | 2017-11-02 16:07:13 -0700 | [diff] [blame^] | 1 | plugins { |
| 2 | id("SupportAndroidLibraryPlugin") |
| 3 | } |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 4 | |
| 5 | dependencies { |
Aurimas Liutikas | 1989c3c | 2017-07-05 14:44:09 -0700 | [diff] [blame] | 6 | api project(':support-v4') |
Aurimas Liutikas | 40e7821 | 2017-07-20 14:22:58 -0700 | [diff] [blame] | 7 | api project(':appcompat-v7') |
| 8 | api project(':recyclerview-v7') |
| 9 | api project(':transition') |
Kirill Grouchnikov | 394c427 | 2015-12-21 14:09:23 -0500 | [diff] [blame] | 10 | |
Aurimas Liutikas | a82b39f | 2017-07-24 17:32:00 -0700 | [diff] [blame] | 11 | 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 Liutikas | 1989c3c | 2017-07-05 14:44:09 -0700 | [diff] [blame] | 16 | androidTestImplementation project(':support-testutils') |
Aurimas Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame] | 17 | |
Aurimas Liutikas | 1989c3c | 2017-07-05 14:44:09 -0700 | [diff] [blame] | 18 | testImplementation libs.junit |
| 19 | testImplementation (libs.test_runner) { |
Aurimas Liutikas | 480ee20 | 2016-10-21 10:12:53 -0700 | [diff] [blame] | 20 | exclude module: 'support-annotations' |
| 21 | } |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | android { |
Kirill Grouchnikov | 394c427 | 2015-12-21 14:09:23 -0500 | [diff] [blame] | 25 | defaultConfig { |
Aurimas Liutikas | f751306 | 2017-01-05 13:02:27 -0800 | [diff] [blame] | 26 | minSdkVersion 14 |
Alan Viverette | eb64862 | 2016-03-11 19:33:03 +0000 | [diff] [blame] | 27 | // This disables the builds tools automatic vector -> PNG generation |
| 28 | generatedDensities = [] |
Kirill Grouchnikov | 394c427 | 2015-12-21 14:09:23 -0500 | [diff] [blame] | 29 | } |
| 30 | |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 31 | sourceSets { |
Alan Viverette | 9439d70 | 2016-10-25 14:45:10 +0100 | [diff] [blame] | 32 | main.java.srcDirs = [ |
| 33 | 'base', |
| 34 | 'gingerbread', |
Alan Viverette | 9439d70 | 2016-10-25 14:45:10 +0100 | [diff] [blame] | 35 | 'ics', |
| 36 | 'lollipop', |
| 37 | 'src' |
| 38 | ] |
| 39 | main.res.srcDirs = [ |
| 40 | 'res', |
| 41 | 'res-public' |
| 42 | ] |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 43 | main.resources.srcDir 'src' |
| 44 | |
Chris Banes | a2f4dd0 | 2016-06-21 14:41:43 +0100 | [diff] [blame] | 45 | test.java.srcDir 'jvm-tests/src' |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 46 | } |
| 47 | |
Yuichi Araki | e764a03 | 2015-06-30 18:45:49 +0900 | [diff] [blame] | 48 | buildTypes.all { |
| 49 | consumerProguardFiles 'proguard-rules.pro' |
| 50 | } |
Alan Viverette | eb64862 | 2016-03-11 19:33:03 +0000 | [diff] [blame] | 51 | |
| 52 | aaptOptions { |
| 53 | additionalParameters "--no-version-vectors" |
| 54 | } |
ztenghui | e255ac7 | 2017-01-26 15:29:16 -0800 | [diff] [blame] | 55 | |
| 56 | buildTypes { |
| 57 | debug { |
| 58 | pseudoLocalesEnabled true |
| 59 | } |
| 60 | } |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 61 | } |
Chris Banes | 3f175da | 2015-10-01 12:42:26 +0100 | [diff] [blame] | 62 | |
Aurimas Liutikas | 16cd13b | 2017-01-04 15:00:13 -0800 | [diff] [blame] | 63 | supportLibrary { |
| 64 | name 'Android Design Support Library' |
Aurimas Liutikas | e1f39f0 | 2017-08-23 17:59:58 -0700 | [diff] [blame] | 65 | publish true |
Aurimas Liutikas | 16cd13b | 2017-01-04 15:00:13 -0800 | [diff] [blame] | 66 | inceptionYear '2015' |
Kirill Grouchnikov | 5c5181c | 2017-05-16 10:58:53 -0700 | [diff] [blame] | 67 | 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 Liutikas | f8b708a | 2017-11-02 16:07:13 -0700 | [diff] [blame^] | 68 | legacySourceLocation true |
Aurimas Liutikas | 16cd13b | 2017-01-04 15:00:13 -0800 | [diff] [blame] | 69 | } |