| Aurimas Liutikas | 526389b | 2018-02-27 14:01:24 -0800 | [diff] [blame] | 1 | import static androidx.build.dependencies.DependenciesKt.* |
| 2 | import androidx.build.LibraryGroups |
| 3 | import androidx.build.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 | } |
| Xavier Ducrohet | 86fb8ef | 2013-02-22 15:04:37 -0800 | [diff] [blame] | 8 | |
| 9 | dependencies { |
| Aurimas Liutikas | ac5fe7c | 2018-03-06 14:40:53 -0800 | [diff] [blame] | 10 | api(project(":annotation")) |
| 11 | |
| 12 | api(project(":core")) |
| 13 | api(project(":collection")) |
| 14 | api(project(":cursoradapter")) |
| 15 | api(project(":legacy-support-core-utils")) |
| 16 | api(project(":fragment")) |
| 17 | api(project(":vectordrawable")) |
| 18 | api(project(":vectordrawable-animated")) |
| Chris Banes | bd3494d | 2016-01-27 18:03:37 +0000 | [diff] [blame] | 19 | |
| Filip Pavlis | a879294 | 2018-03-08 21:01:59 +0000 | [diff] [blame] | 20 | androidTestImplementation(TEST_RUNNER_TMP, libs.exclude_for_espresso) |
| 21 | androidTestImplementation(ESPRESSO_CORE_TMP, libs.exclude_for_espresso) |
| Aurimas Liutikas | b8fd9b6 | 2017-11-22 12:55:43 -0800 | [diff] [blame] | 22 | androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker |
| 23 | androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker |
| Aurimas Liutikas | 67171c8 | 2018-02-27 13:10:25 -0800 | [diff] [blame] | 24 | androidTestImplementation project(':internal-testutils'), { |
| Aurimas Liutikas | ac5fe7c | 2018-03-06 14:40:53 -0800 | [diff] [blame] | 25 | exclude group: 'androidx.appcompat', module: 'appcompat' |
| Kirill Grouchnikov | 3743a7e | 2017-09-26 17:55:05 -0400 | [diff] [blame] | 26 | } |
| Xavier Ducrohet | 86fb8ef | 2013-02-22 15:04:37 -0800 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | android { |
| Chris Banes | cdbdcb2 | 2015-07-10 11:05:06 +0100 | [diff] [blame] | 30 | defaultConfig { |
| Alan Viverette | eb64862 | 2016-03-11 19:33:03 +0000 | [diff] [blame] | 31 | // This disables the builds tools automatic vector -> PNG generation |
| 32 | generatedDensities = [] |
| Chris Banes | cdbdcb2 | 2015-07-10 11:05:06 +0100 | [diff] [blame] | 33 | } |
| 34 | |
| Xavier Ducrohet | 86fb8ef | 2013-02-22 15:04:37 -0800 | [diff] [blame] | 35 | sourceSets { |
| Tor Norbye | 47c59fb | 2015-04-08 14:42:16 -0700 | [diff] [blame] | 36 | main.res.srcDirs 'res', 'res-public' |
| Chris Banes | 5ba7232 | 2014-09-10 13:01:06 +0100 | [diff] [blame] | 37 | } |
| 38 | |
| Alan Viverette | eb64862 | 2016-03-11 19:33:03 +0000 | [diff] [blame] | 39 | aaptOptions { |
| 40 | additionalParameters "--no-version-vectors" |
| Clara Bayarri | 543fd29 | 2017-03-24 11:29:49 +0000 | [diff] [blame] | 41 | noCompress 'ttf' |
| Alan Viverette | eb64862 | 2016-03-11 19:33:03 +0000 | [diff] [blame] | 42 | } |
| Alan Viverette | 99c01a4 | 2018-02-23 12:24:19 -0500 | [diff] [blame] | 43 | |
| 44 | buildTypes.all { |
| 45 | consumerProguardFiles("proguard-rules.pro") |
| 46 | } |
| Jeff Hamilton | 5d522dd | 2014-05-19 12:50:02 -0500 | [diff] [blame] | 47 | } |
| Xavier Ducrohet | 11b8398 | 2015-03-31 15:12:42 -0700 | [diff] [blame] | 48 | |
| Aurimas Liutikas | 16cd13b | 2017-01-04 15:00:13 -0800 | [diff] [blame] | 49 | supportLibrary { |
| Aurimas Liutikas | ea5ee82 | 2017-11-06 12:52:28 -0800 | [diff] [blame] | 50 | name = "Android AppCompat Library v7" |
| 51 | publish = true |
| Aurimas Liutikas | 78c1ab7 | 2017-11-08 13:33:51 -0800 | [diff] [blame] | 52 | mavenVersion = LibraryVersions.SUPPORT_LIBRARY |
| Aurimas Liutikas | ac5fe7c | 2018-03-06 14:40:53 -0800 | [diff] [blame] | 53 | mavenGroup = LibraryGroups.APPCOMPAT |
| Aurimas Liutikas | ea5ee82 | 2017-11-06 12:52:28 -0800 | [diff] [blame] | 54 | inceptionYear = "2011" |
| 55 | 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 | bfef093 | 2018-04-04 13:25:38 -0700 | [diff] [blame] | 56 | failOnUncheckedWarnings = false |
| 57 | failOnDeprecationWarnings = false |
| Aurimas Liutikas | 16cd13b | 2017-01-04 15:00:13 -0800 | [diff] [blame] | 58 | } |