Aurimas Liutikas | b8fd9b6 | 2017-11-22 12:55:43 -0800 | [diff] [blame] | 1 | import static android.support.dependencies.DependenciesKt.* |
Aurimas Liutikas | 44d7d86 | 2017-10-27 17:55:06 -0700 | [diff] [blame] | 2 | import android.support.LibraryGroups |
Aurimas Liutikas | 78c1ab7 | 2017-11-08 13:33:51 -0800 | [diff] [blame] | 3 | import android.support.LibraryVersions |
Aurimas Liutikas | 44d7d86 | 2017-10-27 17:55:06 -0700 | [diff] [blame] | 4 | |
Aurimas Liutikas | f8b708a | 2017-11-02 16:07:13 -0700 | [diff] [blame] | 5 | plugins { |
| 6 | id("SupportAndroidLibraryPlugin") |
| 7 | } |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 8 | |
| 9 | dependencies { |
Aurimas Liutikas | b8fd9b6 | 2017-11-22 12:55:43 -0800 | [diff] [blame] | 10 | api(project(":support-v4")) |
| 11 | api(project(":appcompat-v7")) |
| 12 | api(project(":recyclerview-v7")) |
| 13 | api(project(":transition")) |
Kirill Grouchnikov | 394c427 | 2015-12-21 14:09:23 -0500 | [diff] [blame] | 14 | |
Jake Wharton | 66807fc | 2017-12-05 14:44:35 -0500 | [diff] [blame] | 15 | androidTestImplementation(TEST_RUNNER) |
| 16 | androidTestImplementation(ESPRESSO_CORE) |
Aurimas Liutikas | b8fd9b6 | 2017-11-22 12:55:43 -0800 | [diff] [blame] | 17 | androidTestImplementation(ESPRESSO_CONTRIB, libs.exclude_support) |
| 18 | androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker |
| 19 | androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker |
Aurimas Liutikas | 1989c3c | 2017-07-05 14:44:09 -0700 | [diff] [blame] | 20 | androidTestImplementation project(':support-testutils') |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 21 | } |
| 22 | |
| 23 | android { |
Kirill Grouchnikov | 394c427 | 2015-12-21 14:09:23 -0500 | [diff] [blame] | 24 | defaultConfig { |
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 | } |