blob: baa94ea2f91cf5044f316748a50a7b1f68e8c1f0 [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}
Chris Banes95cf1162015-01-13 10:27:15 +00008
9dependencies {
Aurimas Liutikasb8fd9b62017-11-22 12:55:43 -080010 api(project(":support-v4"))
11 api(project(":appcompat-v7"))
12 api(project(":recyclerview-v7"))
13 api(project(":transition"))
Kirill Grouchnikov394c4272015-12-21 14:09:23 -050014
Jake Wharton66807fc2017-12-05 14:44:35 -050015 androidTestImplementation(TEST_RUNNER)
16 androidTestImplementation(ESPRESSO_CORE)
Aurimas Liutikasb8fd9b62017-11-22 12:55:43 -080017 androidTestImplementation(ESPRESSO_CONTRIB, libs.exclude_support)
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
Aurimas Liutikas1989c3c2017-07-05 14:44:09 -070020 androidTestImplementation project(':support-testutils')
Chris Banes95cf1162015-01-13 10:27:15 +000021}
22
23android {
Kirill Grouchnikov394c4272015-12-21 14:09:23 -050024 defaultConfig {
Alan Viveretteeb648622016-03-11 19:33:03 +000025 // This disables the builds tools automatic vector -> PNG generation
26 generatedDensities = []
Kirill Grouchnikov394c4272015-12-21 14:09:23 -050027 }
28
Chris Banes95cf1162015-01-13 10:27:15 +000029 sourceSets {
Alan Viverette9439d702016-10-25 14:45:10 +010030 main.java.srcDirs = [
31 'base',
32 'gingerbread',
Alan Viverette9439d702016-10-25 14:45:10 +010033 'ics',
34 'lollipop',
35 'src'
36 ]
37 main.res.srcDirs = [
38 'res',
39 'res-public'
40 ]
Chris Banes95cf1162015-01-13 10:27:15 +000041 main.resources.srcDir 'src'
Chris Banes95cf1162015-01-13 10:27:15 +000042 }
43
Yuichi Arakie764a032015-06-30 18:45:49 +090044 buildTypes.all {
45 consumerProguardFiles 'proguard-rules.pro'
46 }
Alan Viveretteeb648622016-03-11 19:33:03 +000047
48 aaptOptions {
49 additionalParameters "--no-version-vectors"
50 }
ztenghuie255ac72017-01-26 15:29:16 -080051
52 buildTypes {
53 debug {
54 pseudoLocalesEnabled true
55 }
56 }
Chris Banes95cf1162015-01-13 10:27:15 +000057}
Chris Banes3f175da2015-10-01 12:42:26 +010058
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080059supportLibrary {
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080060 name = "Android Design Support Library"
61 publish = true
Aurimas Liutikas78c1ab72017-11-08 13:33:51 -080062 mavenVersion = LibraryVersions.SUPPORT_LIBRARY
Aurimas Liutikas44d7d862017-10-27 17:55:06 -070063 mavenGroup = LibraryGroups.SUPPORT
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080064 inceptionYear = "2015"
65 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."
66 legacySourceLocation = true
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080067}