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