blob: fc61134826616e6168870b90757a4db3ee31badf [file] [log] [blame]
Aurimas Liutikas9697da72016-12-22 15:50:42 -08001apply plugin: android.support.SupportLibraryPlugin
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -04002archivesBaseName = 'support-compat'
3
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -04004dependencies {
Alan Viverette9439d702016-10-25 14:45:10 +01005 compile project(':support-annotations')
Aurimas Liutikasf09d8582017-01-20 21:49:51 -08006
7 androidTestCompile (libs.test_runner) {
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -04008 exclude module: 'support-annotations'
9 }
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080010 androidTestCompile (libs.espresso_core) {
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040011 exclude module: 'support-annotations'
12 }
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080013 androidTestCompile libs.mockito_core
14 androidTestCompile libs.dexmaker
15 androidTestCompile libs.dexmaker_mockito
Seigo Nonaka2c4cbf12017-05-23 16:18:57 +090016 androidTestCompile project(':support-testutils')
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040017}
18
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040019android {
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040020 defaultConfig {
Aurimas Liutikasf7513062017-01-05 13:02:27 -080021 minSdkVersion 14
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040022 }
23
24 sourceSets {
Alan Viverette9439d702016-10-25 14:45:10 +010025 main.java.srcDirs = [
Alan Viverette9439d702016-10-25 14:45:10 +010026 'ics',
Alan Viverette9439d702016-10-25 14:45:10 +010027 'jellybean',
Alan Viverette9439d702016-10-25 14:45:10 +010028 'kitkat',
29 'api20',
30 'api21',
Alan Viverette9439d702016-10-25 14:45:10 +010031 'api23',
32 'api24',
Vladislav Kaznacheevdaa85ce2016-11-22 17:32:12 -080033 'api26',
Alan Viverette9439d702016-10-25 14:45:10 +010034 'java'
35 ]
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040036 main.aidl.srcDirs = ['java']
Clara Bayarri543fd292017-03-24 11:29:49 +000037 main.res.srcDirs 'res', 'res-public'
38 }
39
40 aaptOptions {
41 noCompress 'ttf'
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040042 }
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040043}
44
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080045supportLibrary {
46 name 'Android Support Library compat'
47 inceptionYear '2015'
Kirill Grouchnikov5c5181c2017-05-16 10:58:53 -070048 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 -080049}