blob: 6c072659c8556bac86fd3df886aeb77950668715 [file] [log] [blame]
Aurimas Liutikas9697da72016-12-22 15:50:42 -08001apply plugin: android.support.SupportLibraryPlugin
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -08002archivesBaseName = 'appcompat-v7'
3
4dependencies {
Alan Viverette9439d702016-10-25 14:45:10 +01005 compile project(':support-annotations')
Xavier Ducrohet855a9222014-01-02 19:00:43 -08006 compile project(':support-v4')
Chris Banese4beadb2015-11-10 10:45:58 +00007 compile project(':support-vector-drawable')
Chris Banesbd3494d2016-01-27 18:03:37 +00008 compile project(':support-animated-vector-drawable')
9
Aurimas Liutikasdfe75782016-08-03 14:27:20 -070010 androidTestCompile ("com.android.support.test:runner:${project.rootProject.ext.testRunnerVersion}") {
Chris Banesf6c82b62016-01-13 16:38:59 +000011 exclude module: 'support-annotations'
12 }
Aurimas Liutikasdfe75782016-08-03 14:27:20 -070013 androidTestCompile ("com.android.support.test.espresso:espresso-core:${project.rootProject.ext.espressoVersion}") {
Chris Banesf6c82b62016-01-13 16:38:59 +000014 exclude module: 'support-annotations'
15 }
Kirill Grouchnikov21f78eb2016-02-01 16:58:36 -050016 androidTestCompile 'org.mockito:mockito-core:1.9.5'
Kirill Grouchnikova9f4a782016-02-03 11:37:47 -050017 androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
18 androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
Chris Banescdbdcb22015-07-10 11:05:06 +010019 testCompile 'junit:junit:4.12'
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080020}
21
22android {
Yigit Boyar02a9e8c2016-01-26 20:41:00 -080023 compileSdkVersion project.ext.currentSdk
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080024
Chris Banescdbdcb22015-07-10 11:05:06 +010025 defaultConfig {
Aurimas Liutikasf7513062017-01-05 13:02:27 -080026 minSdkVersion 14
Alan Viveretteeb648622016-03-11 19:33:03 +000027 // This disables the builds tools automatic vector -> PNG generation
28 generatedDensities = []
Chris Banescdbdcb22015-07-10 11:05:06 +010029 }
30
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080031 sourceSets {
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080032 main.java.srcDir 'src'
Tor Norbye47c59fb2015-04-08 14:42:16 -070033 main.res.srcDirs 'res', 'res-public'
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080034 main.assets.srcDir 'assets'
35 main.resources.srcDir 'src'
Chris Banes5ba72322014-09-10 13:01:06 +010036 }
37
Alan Viveretteeb648622016-03-11 19:33:03 +000038 aaptOptions {
39 additionalParameters "--no-version-vectors"
40 }
Jeff Hamilton5d522dd2014-05-19 12:50:02 -050041}
Xavier Ducrohet11b83982015-03-31 15:12:42 -070042
Xavier Ducrohet11b83982015-03-31 15:12:42 -070043uploadArchives {
44 repositories {
45 mavenDeployer {
46 repository(url: uri(rootProject.ext.supportRepoOut)) {
47 }
48
49 pom.project {
50 name 'Android AppCompat Library v7'
51 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 4 or later."
52 url 'http://developer.android.com/tools/extras/support-library.html'
53 inceptionYear '2011'
54
55 licenses {
56 license {
57 name 'The Apache Software License, Version 2.0'
58 url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
59 distribution 'repo'
60 }
61 }
62
63 scm {
64 url "http://source.android.com"
65 connection "scm:git:https://android.googlesource.com/platform/frameworks/support"
66 }
67 developers {
68 developer {
69 name 'The Android Open Source Project'
70 }
71 }
72 }
73 }
74 }
75}