| 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 | archivesBaseName = 'design' |
| 3 | |
| 4 | dependencies { |
| Alan Viverette | 9439d70 | 2016-10-25 14:45:10 +0100 | [diff] [blame] | 5 | compile project(':support-v4') |
| Chris Banes | 9840efe | 2015-01-06 14:02:01 +0000 | [diff] [blame] | 6 | compile project(':support-appcompat-v7') |
| Yuichi Araki | 64bcb67 | 2015-09-03 10:25:04 +0000 | [diff] [blame] | 7 | compile project(':support-recyclerview-v7') |
| Aurimas Liutikas | 3cc432a | 2016-08-19 11:16:37 -0700 | [diff] [blame] | 8 | compile project(':support-transition') |
| Kirill Grouchnikov | 394c427 | 2015-12-21 14:09:23 -0500 | [diff] [blame] | 9 | |
| Aurimas Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame^] | 10 | androidTestCompile (libs.test_runner) { |
| Chris Banes | f6c82b6 | 2016-01-13 16:38:59 +0000 | [diff] [blame] | 11 | exclude module: 'support-annotations' |
| 12 | } |
| Aurimas Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame^] | 13 | androidTestCompile (libs.espresso_core) { |
| Chris Banes | f6c82b6 | 2016-01-13 16:38:59 +0000 | [diff] [blame] | 14 | exclude module: 'support-annotations' |
| 15 | } |
| Aurimas Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame^] | 16 | androidTestCompile (libs.espresso_contrib) { |
| Chris Banes | 907eab4 | 2016-11-21 12:52:14 +0000 | [diff] [blame] | 17 | exclude group: 'com.android.support' |
| 18 | } |
| Aurimas Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame^] | 19 | androidTestCompile libs.mockito_core |
| 20 | androidTestCompile libs.dexmaker |
| 21 | androidTestCompile libs.dexmaker_mockito |
| 22 | |
| 23 | testCompile libs.junit |
| 24 | testCompile ("$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 { |
| Yigit Boyar | 02a9e8c | 2016-01-26 20:41:00 -0800 | [diff] [blame] | 30 | compileSdkVersion project.ext.currentSdk |
| Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 31 | |
| Kirill Grouchnikov | 394c427 | 2015-12-21 14:09:23 -0500 | [diff] [blame] | 32 | defaultConfig { |
| Aurimas Liutikas | f751306 | 2017-01-05 13:02:27 -0800 | [diff] [blame] | 33 | minSdkVersion 14 |
| Alan Viverette | eb64862 | 2016-03-11 19:33:03 +0000 | [diff] [blame] | 34 | // This disables the builds tools automatic vector -> PNG generation |
| 35 | generatedDensities = [] |
| Kirill Grouchnikov | 394c427 | 2015-12-21 14:09:23 -0500 | [diff] [blame] | 36 | } |
| 37 | |
| Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 38 | sourceSets { |
| 39 | main.manifest.srcFile 'AndroidManifest.xml' |
| Alan Viverette | 9439d70 | 2016-10-25 14:45:10 +0100 | [diff] [blame] | 40 | main.java.srcDirs = [ |
| 41 | 'base', |
| 42 | 'gingerbread', |
| Alan Viverette | 9439d70 | 2016-10-25 14:45:10 +0100 | [diff] [blame] | 43 | 'ics', |
| 44 | 'lollipop', |
| 45 | 'src' |
| 46 | ] |
| 47 | main.res.srcDirs = [ |
| 48 | 'res', |
| 49 | 'res-public' |
| 50 | ] |
| Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 51 | main.resources.srcDir 'src' |
| 52 | |
| Chris Banes | a2f4dd0 | 2016-06-21 14:41:43 +0100 | [diff] [blame] | 53 | test.java.srcDir 'jvm-tests/src' |
| Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 54 | } |
| 55 | |
| Yuichi Araki | e764a03 | 2015-06-30 18:45:49 +0900 | [diff] [blame] | 56 | buildTypes.all { |
| 57 | consumerProguardFiles 'proguard-rules.pro' |
| 58 | } |
| Alan Viverette | eb64862 | 2016-03-11 19:33:03 +0000 | [diff] [blame] | 59 | |
| 60 | aaptOptions { |
| 61 | additionalParameters "--no-version-vectors" |
| 62 | } |
| Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 63 | } |
| Chris Banes | 3f175da | 2015-10-01 12:42:26 +0100 | [diff] [blame] | 64 | |
| Aurimas Liutikas | 16cd13b | 2017-01-04 15:00:13 -0800 | [diff] [blame] | 65 | supportLibrary { |
| 66 | name 'Android Design Support Library' |
| 67 | inceptionYear '2015' |
| 68 | 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 4 or later." |
| 69 | } |