blob: 03f2c0b65f19fa6de243c586142f323f4a142c46 [file] [log] [blame]
Aurimas Liutikasb8fd9b62017-11-22 12:55:43 -08001import static android.support.dependencies.DependenciesKt.*
Aurimas Liutikas44d7d862017-10-27 17:55:06 -07002import android.support.LibraryGroups
Aurimas Liutikas78c1ab72017-11-08 13:33:51 -08003import android.support.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 Liutikasb8fd9b62017-11-22 12:55:43 -080010 api(project(":support-annotations"))
11 api(project(":support-core-utils"))
12 api(project(":support-fragment"))
13 api(project(":support-vector-drawable"))
14 api(project(":animated-vector-drawable"))
Chris Banesbd3494d2016-01-27 18:03:37 +000015
Jake Wharton66807fc2017-12-05 14:44:35 -050016 androidTestImplementation(TEST_RUNNER)
17 androidTestImplementation(ESPRESSO_CORE)
Aurimas Liutikasb8fd9b62017-11-22 12:55:43 -080018 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 Liutikas67171c82018-02-27 13:10:25 -080020 androidTestImplementation project(':internal-testutils'), {
Kirill Grouchnikov3743a7e2017-09-26 17:55:05 -040021 exclude group: 'com.android.support', module: 'appcompat-v7'
22 }
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080023}
24
25android {
Chris Banescdbdcb22015-07-10 11:05:06 +010026 defaultConfig {
Alan Viveretteeb648622016-03-11 19:33:03 +000027 // This disables the builds tools automatic vector -> PNG generation
28 generatedDensities = []
Chris Banescdbdcb22015-07-10 11:05:06 +010029 }
30
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080031 sourceSets {
Tor Norbye47c59fb2015-04-08 14:42:16 -070032 main.res.srcDirs 'res', 'res-public'
Chris Banes5ba72322014-09-10 13:01:06 +010033 }
34
Alan Viveretteeb648622016-03-11 19:33:03 +000035 aaptOptions {
36 additionalParameters "--no-version-vectors"
Clara Bayarri543fd292017-03-24 11:29:49 +000037 noCompress 'ttf'
Alan Viveretteeb648622016-03-11 19:33:03 +000038 }
Jeff Hamilton5d522dd2014-05-19 12:50:02 -050039}
Xavier Ducrohet11b83982015-03-31 15:12:42 -070040
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080041supportLibrary {
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080042 name = "Android AppCompat Library v7"
43 publish = true
Aurimas Liutikas78c1ab72017-11-08 13:33:51 -080044 mavenVersion = LibraryVersions.SUPPORT_LIBRARY
Aurimas Liutikas44d7d862017-10-27 17:55:06 -070045 mavenGroup = LibraryGroups.SUPPORT
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080046 inceptionYear = "2011"
47 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 Liutikas16cd13b2017-01-04 15:00:13 -080048}