blob: dbf96d61f9afe3d066bc41a0f6c288a1bf3de46e [file] [log] [blame]
Aurimas Liutikas44d7d862017-10-27 17:55:06 -07001import android.support.LibraryGroups
2
Aurimas Liutikasf8b708a2017-11-02 16:07:13 -07003plugins {
4 id("SupportAndroidLibraryPlugin")
5}
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -08006
7dependencies {
Aurimas Liutikas1989c3c2017-07-05 14:44:09 -07008 api project(':support-annotations')
Ian Laked8ee5302017-09-05 16:05:33 -07009 api project(':support-core-utils')
10 api project(':support-fragment')
Aurimas Liutikas1989c3c2017-07-05 14:44:09 -070011 api project(':support-vector-drawable')
Aurimas Liutikas40e78212017-07-20 14:22:58 -070012 api project(':animated-vector-drawable')
Chris Banesbd3494d2016-01-27 18:03:37 +000013
Aurimas Liutikas9edca682017-07-25 09:12:35 -070014 androidTestImplementation libs.test_runner, { exclude module: 'support-annotations' }
15 androidTestImplementation libs.espresso_core, { exclude module: 'support-annotations' }
16 androidTestImplementation libs.mockito_core, { exclude group: 'net.bytebuddy' } // DexMaker has it"s own MockMaker
17 androidTestImplementation libs.dexmaker_mockito, { exclude group: 'net.bytebuddy' } // DexMaker has it"s own MockMaker
Kirill Grouchnikov3743a7e2017-09-26 17:55:05 -040018 androidTestImplementation project(':support-testutils'), {
19 exclude group: 'com.android.support', module: 'appcompat-v7'
20 }
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080021}
22
23android {
Chris Banescdbdcb22015-07-10 11:05:06 +010024 defaultConfig {
Aurimas Liutikasf7513062017-01-05 13:02:27 -080025 minSdkVersion 14
Alan Viveretteeb648622016-03-11 19:33:03 +000026 // This disables the builds tools automatic vector -> PNG generation
27 generatedDensities = []
Chris Banescdbdcb22015-07-10 11:05:06 +010028 }
29
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080030 sourceSets {
Tor Norbye47c59fb2015-04-08 14:42:16 -070031 main.res.srcDirs 'res', 'res-public'
Chris Banes5ba72322014-09-10 13:01:06 +010032 }
33
Alan Viveretteeb648622016-03-11 19:33:03 +000034 aaptOptions {
35 additionalParameters "--no-version-vectors"
Clara Bayarri543fd292017-03-24 11:29:49 +000036 noCompress 'ttf'
Alan Viveretteeb648622016-03-11 19:33:03 +000037 }
Jeff Hamilton5d522dd2014-05-19 12:50:02 -050038}
Xavier Ducrohet11b83982015-03-31 15:12:42 -070039
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080040supportLibrary {
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080041 name = "Android AppCompat Library v7"
42 publish = true
Aurimas Liutikas44d7d862017-10-27 17:55:06 -070043 mavenGroup = LibraryGroups.SUPPORT
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080044 inceptionYear = "2011"
45 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."
46 legacySourceLocation = true
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080047}