blob: b04bee6a10af36bcb92aabc22f67207d8dfab9a2 [file] [log] [blame]
Aurimas Liutikas526389b2018-02-27 14:01:24 -08001import static androidx.build.dependencies.DependenciesKt.*
2import androidx.build.LibraryGroups
3import androidx.build.LibraryVersions
Aurimas Liutikas44d7d862017-10-27 17:55:06 -07004
Aurimas Liutikasf8b708a2017-11-02 16:07:13 -07005plugins {
6 id("SupportAndroidLibraryPlugin")
7}
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -08008
9dependencies {
Aurimas Liutikasac5fe7c2018-03-06 14:40:53 -080010 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 Banesbd3494d2016-01-27 18:03:37 +000019
Filip Pavlisa8792942018-03-08 21:01:59 +000020 androidTestImplementation(TEST_RUNNER_TMP, libs.exclude_for_espresso)
21 androidTestImplementation(ESPRESSO_CORE_TMP, libs.exclude_for_espresso)
Aurimas Liutikasb8fd9b62017-11-22 12:55:43 -080022 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 Liutikas67171c82018-02-27 13:10:25 -080024 androidTestImplementation project(':internal-testutils'), {
Aurimas Liutikasac5fe7c2018-03-06 14:40:53 -080025 exclude group: 'androidx.appcompat', module: 'appcompat'
Kirill Grouchnikov3743a7e2017-09-26 17:55:05 -040026 }
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080027}
28
29android {
Chris Banescdbdcb22015-07-10 11:05:06 +010030 defaultConfig {
Alan Viveretteeb648622016-03-11 19:33:03 +000031 // This disables the builds tools automatic vector -> PNG generation
32 generatedDensities = []
Chris Banescdbdcb22015-07-10 11:05:06 +010033 }
34
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080035 sourceSets {
Tor Norbye47c59fb2015-04-08 14:42:16 -070036 main.res.srcDirs 'res', 'res-public'
Chris Banes5ba72322014-09-10 13:01:06 +010037 }
38
Alan Viveretteeb648622016-03-11 19:33:03 +000039 aaptOptions {
40 additionalParameters "--no-version-vectors"
Clara Bayarri543fd292017-03-24 11:29:49 +000041 noCompress 'ttf'
Alan Viveretteeb648622016-03-11 19:33:03 +000042 }
Alan Viverette99c01a42018-02-23 12:24:19 -050043
44 buildTypes.all {
45 consumerProguardFiles("proguard-rules.pro")
46 }
Jeff Hamilton5d522dd2014-05-19 12:50:02 -050047}
Xavier Ducrohet11b83982015-03-31 15:12:42 -070048
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080049supportLibrary {
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080050 name = "Android AppCompat Library v7"
51 publish = true
Aurimas Liutikas78c1ab72017-11-08 13:33:51 -080052 mavenVersion = LibraryVersions.SUPPORT_LIBRARY
Aurimas Liutikasac5fe7c2018-03-06 14:40:53 -080053 mavenGroup = LibraryGroups.APPCOMPAT
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080054 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 Liutikasbfef0932018-04-04 13:25:38 -070056 failOnUncheckedWarnings = false
57 failOnDeprecationWarnings = false
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080058}