blob: 7724a2927ee724ce31b4650ff1106aa6c3d01b20 [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
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080014 androidTestCompile libs.dexmaker_mockito
Seigo Nonaka2c4cbf12017-05-23 16:18:57 +090015 androidTestCompile project(':support-testutils')
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040016}
17
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040018android {
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040019 defaultConfig {
Aurimas Liutikasf7513062017-01-05 13:02:27 -080020 minSdkVersion 14
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040021 }
22
23 sourceSets {
Alan Viverette9439d702016-10-25 14:45:10 +010024 main.java.srcDirs = [
Alan Viverette9439d702016-10-25 14:45:10 +010025 'ics',
Alan Viverette9439d702016-10-25 14:45:10 +010026 'jellybean',
Alan Viverette9439d702016-10-25 14:45:10 +010027 'kitkat',
28 'api20',
29 'api21',
Alan Viverette9439d702016-10-25 14:45:10 +010030 'api23',
31 'api24',
Vladislav Kaznacheevdaa85ce2016-11-22 17:32:12 -080032 'api26',
Alan Viverette9439d702016-10-25 14:45:10 +010033 'java'
34 ]
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040035 main.aidl.srcDirs = ['java']
Clara Bayarri543fd292017-03-24 11:29:49 +000036 main.res.srcDirs 'res', 'res-public'
37 }
38
39 aaptOptions {
40 noCompress 'ttf'
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040041 }
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040042}
43
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080044supportLibrary {
45 name 'Android Support Library compat'
46 inceptionYear '2015'
Kirill Grouchnikov5c5181c2017-05-16 10:58:53 -070047 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 -080048}