blob: 06a5a55c0e23f864719f32391f5f23917f92f143 [file] [log] [blame]
Aurimas Liutikas44d7d862017-10-27 17:55:06 -07001import android.support.LibraryGroups
Aurimas Liutikas78c1ab72017-11-08 13:33:51 -08002import android.support.LibraryVersions
Aurimas Liutikas44d7d862017-10-27 17:55:06 -07003
Aurimas Liutikasf8b708a2017-11-02 16:07:13 -07004plugins {
5 id("SupportAndroidLibraryPlugin")
6}
Chris Banes95cf1162015-01-13 10:27:15 +00007
8dependencies {
Aurimas Liutikas1989c3c2017-07-05 14:44:09 -07009 api project(':support-v4')
Aurimas Liutikas40e78212017-07-20 14:22:58 -070010 api project(':appcompat-v7')
11 api project(':recyclerview-v7')
12 api project(':transition')
Kirill Grouchnikov394c4272015-12-21 14:09:23 -050013
Aurimas Liutikasa82b39f2017-07-24 17:32:00 -070014 androidTestImplementation libs.test_runner, { exclude module: 'support-annotations' }
15 androidTestImplementation libs.espresso_core, { exclude module: 'support-annotations' }
16 androidTestImplementation libs.espresso_contrib, { exclude group: 'com.android.support' }
17 androidTestImplementation libs.mockito_core, { exclude group: 'net.bytebuddy' } // DexMaker has it"s own MockMaker
18 androidTestImplementation libs.dexmaker_mockito, { exclude group: 'net.bytebuddy' } // DexMaker has it"s own MockMaker
Aurimas Liutikas1989c3c2017-07-05 14:44:09 -070019 androidTestImplementation project(':support-testutils')
Chris Banes95cf1162015-01-13 10:27:15 +000020}
21
22android {
Kirill Grouchnikov394c4272015-12-21 14:09:23 -050023 defaultConfig {
Aurimas Liutikasf7513062017-01-05 13:02:27 -080024 minSdkVersion 14
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}