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