Aurimas Liutikas | 44d7d86 | 2017-10-27 17:55:06 -0700 | [diff] [blame] | 1 | import android.support.LibraryGroups |
Aurimas Liutikas | 78c1ab7 | 2017-11-08 13:33:51 -0800 | [diff] [blame] | 2 | import android.support.LibraryVersions |
Aurimas Liutikas | 44d7d86 | 2017-10-27 17:55:06 -0700 | [diff] [blame] | 3 | |
Aurimas Liutikas | f8b708a | 2017-11-02 16:07:13 -0700 | [diff] [blame] | 4 | plugins { |
| 5 | id("SupportAndroidLibraryPlugin") |
| 6 | } |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 7 | |
| 8 | dependencies { |
Aurimas Liutikas | 1989c3c | 2017-07-05 14:44:09 -0700 | [diff] [blame] | 9 | api project(':support-v4') |
Aurimas Liutikas | 40e7821 | 2017-07-20 14:22:58 -0700 | [diff] [blame] | 10 | api project(':appcompat-v7') |
| 11 | api project(':recyclerview-v7') |
| 12 | api project(':transition') |
Kirill Grouchnikov | 394c427 | 2015-12-21 14:09:23 -0500 | [diff] [blame] | 13 | |
Aurimas Liutikas | a82b39f | 2017-07-24 17:32:00 -0700 | [diff] [blame] | 14 | androidTestImplementation libs.test_runner, { exclude module: 'support-annotations' } |
| 15 | androidTestImplementation libs.espresso_core, { exclude module: 'support-annotations' } |
| 16 | androidTestImplementation libs.espresso_contrib, { exclude group: 'com.android.support' } |
| 17 | androidTestImplementation libs.mockito_core, { exclude group: 'net.bytebuddy' } // DexMaker has it"s own MockMaker |
| 18 | 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] | 19 | androidTestImplementation project(':support-testutils') |
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' |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 42 | } |
| 43 | |
Yuichi Araki | e764a03 | 2015-06-30 18:45:49 +0900 | [diff] [blame] | 44 | buildTypes.all { |
| 45 | consumerProguardFiles 'proguard-rules.pro' |
| 46 | } |
Alan Viverette | eb64862 | 2016-03-11 19:33:03 +0000 | [diff] [blame] | 47 | |
| 48 | aaptOptions { |
| 49 | additionalParameters "--no-version-vectors" |
| 50 | } |
ztenghui | e255ac7 | 2017-01-26 15:29:16 -0800 | [diff] [blame] | 51 | |
| 52 | buildTypes { |
| 53 | debug { |
| 54 | pseudoLocalesEnabled true |
| 55 | } |
| 56 | } |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 57 | } |
Chris Banes | 3f175da | 2015-10-01 12:42:26 +0100 | [diff] [blame] | 58 | |
Aurimas Liutikas | 16cd13b | 2017-01-04 15:00:13 -0800 | [diff] [blame] | 59 | supportLibrary { |
Aurimas Liutikas | ea5ee82 | 2017-11-06 12:52:28 -0800 | [diff] [blame] | 60 | name = "Android Design Support Library" |
| 61 | publish = true |
Aurimas Liutikas | 78c1ab7 | 2017-11-08 13:33:51 -0800 | [diff] [blame] | 62 | mavenVersion = LibraryVersions.SUPPORT_LIBRARY |
Aurimas Liutikas | 44d7d86 | 2017-10-27 17:55:06 -0700 | [diff] [blame] | 63 | mavenGroup = LibraryGroups.SUPPORT |
Aurimas Liutikas | ea5ee82 | 2017-11-06 12:52:28 -0800 | [diff] [blame] | 64 | inceptionYear = "2015" |
| 65 | 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." |
| 66 | legacySourceLocation = true |
Aurimas Liutikas | 16cd13b | 2017-01-04 15:00:13 -0800 | [diff] [blame] | 67 | } |