blob: 214c6db02139069b1eef391393ceab726617404f [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
Aurimas Liutikasb8fd9b62017-11-22 12:55:43 -080016 androidTestImplementation(TEST_RUNNER, libs.exclude_annotations)
17 androidTestImplementation(ESPRESSO_CORE, libs.exclude_annotations)
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
Kirill Grouchnikov3743a7e2017-09-26 17:55:05 -040020 androidTestImplementation project(':support-testutils'), {
21 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 {
Aurimas Liutikasb8fd9b62017-11-22 12:55:43 -080027 minSdkVersion(14)
Alan Viveretteeb648622016-03-11 19:33:03 +000028 // This disables the builds tools automatic vector -> PNG generation
29 generatedDensities = []
Chris Banescdbdcb22015-07-10 11:05:06 +010030 }
31
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080032 sourceSets {
Tor Norbye47c59fb2015-04-08 14:42:16 -070033 main.res.srcDirs 'res', 'res-public'
Chris Banes5ba72322014-09-10 13:01:06 +010034 }
35
Alan Viveretteeb648622016-03-11 19:33:03 +000036 aaptOptions {
37 additionalParameters "--no-version-vectors"
Clara Bayarri543fd292017-03-24 11:29:49 +000038 noCompress 'ttf'
Alan Viveretteeb648622016-03-11 19:33:03 +000039 }
Jeff Hamilton5d522dd2014-05-19 12:50:02 -050040}
Xavier Ducrohet11b83982015-03-31 15:12:42 -070041
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080042supportLibrary {
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080043 name = "Android AppCompat Library v7"
44 publish = true
Aurimas Liutikas78c1ab72017-11-08 13:33:51 -080045 mavenVersion = LibraryVersions.SUPPORT_LIBRARY
Aurimas Liutikas44d7d862017-10-27 17:55:06 -070046 mavenGroup = LibraryGroups.SUPPORT
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080047 inceptionYear = "2011"
48 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."
49 legacySourceLocation = true
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080050}