Aurimas Liutikas | 9697da7 | 2016-12-22 15:50:42 -0800 | [diff] [blame] | 1 | apply plugin: android.support.SupportLibraryPlugin |
Xavier Ducrohet | 86fb8ef | 2013-02-22 15:04:37 -0800 | [diff] [blame] | 2 | archivesBaseName = 'appcompat-v7' |
| 3 | |
| 4 | dependencies { |
Alan Viverette | 9439d70 | 2016-10-25 14:45:10 +0100 | [diff] [blame] | 5 | compile project(':support-annotations') |
Xavier Ducrohet | 855a922 | 2014-01-02 19:00:43 -0800 | [diff] [blame] | 6 | compile project(':support-v4') |
Chris Banes | e4beadb | 2015-11-10 10:45:58 +0000 | [diff] [blame] | 7 | compile project(':support-vector-drawable') |
Chris Banes | bd3494d | 2016-01-27 18:03:37 +0000 | [diff] [blame] | 8 | compile project(':support-animated-vector-drawable') |
| 9 | |
Aurimas Liutikas | dfe7578 | 2016-08-03 14:27:20 -0700 | [diff] [blame] | 10 | androidTestCompile ("com.android.support.test:runner:${project.rootProject.ext.testRunnerVersion}") { |
Chris Banes | f6c82b6 | 2016-01-13 16:38:59 +0000 | [diff] [blame] | 11 | exclude module: 'support-annotations' |
| 12 | } |
Aurimas Liutikas | dfe7578 | 2016-08-03 14:27:20 -0700 | [diff] [blame] | 13 | androidTestCompile ("com.android.support.test.espresso:espresso-core:${project.rootProject.ext.espressoVersion}") { |
Chris Banes | f6c82b6 | 2016-01-13 16:38:59 +0000 | [diff] [blame] | 14 | exclude module: 'support-annotations' |
| 15 | } |
Kirill Grouchnikov | 21f78eb | 2016-02-01 16:58:36 -0500 | [diff] [blame] | 16 | androidTestCompile 'org.mockito:mockito-core:1.9.5' |
Kirill Grouchnikov | a9f4a78 | 2016-02-03 11:37:47 -0500 | [diff] [blame] | 17 | androidTestCompile 'com.google.dexmaker:dexmaker:1.2' |
| 18 | androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2' |
Chris Banes | cdbdcb2 | 2015-07-10 11:05:06 +0100 | [diff] [blame] | 19 | testCompile 'junit:junit:4.12' |
Xavier Ducrohet | 86fb8ef | 2013-02-22 15:04:37 -0800 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | android { |
Yigit Boyar | 02a9e8c | 2016-01-26 20:41:00 -0800 | [diff] [blame] | 23 | compileSdkVersion project.ext.currentSdk |
Xavier Ducrohet | 86fb8ef | 2013-02-22 15:04:37 -0800 | [diff] [blame] | 24 | |
Chris Banes | cdbdcb2 | 2015-07-10 11:05:06 +0100 | [diff] [blame] | 25 | defaultConfig { |
Kirill Grouchnikov | df15399 | 2016-05-04 16:55:20 -0400 | [diff] [blame] | 26 | minSdkVersion 9 |
Alan Viverette | eb64862 | 2016-03-11 19:33:03 +0000 | [diff] [blame] | 27 | // This disables the builds tools automatic vector -> PNG generation |
| 28 | generatedDensities = [] |
Chris Banes | cdbdcb2 | 2015-07-10 11:05:06 +0100 | [diff] [blame] | 29 | } |
| 30 | |
Xavier Ducrohet | 86fb8ef | 2013-02-22 15:04:37 -0800 | [diff] [blame] | 31 | sourceSets { |
Xavier Ducrohet | 86fb8ef | 2013-02-22 15:04:37 -0800 | [diff] [blame] | 32 | main.java.srcDir 'src' |
Tor Norbye | 47c59fb | 2015-04-08 14:42:16 -0700 | [diff] [blame] | 33 | main.res.srcDirs 'res', 'res-public' |
Xavier Ducrohet | 86fb8ef | 2013-02-22 15:04:37 -0800 | [diff] [blame] | 34 | main.assets.srcDir 'assets' |
| 35 | main.resources.srcDir 'src' |
Chris Banes | 5ba7232 | 2014-09-10 13:01:06 +0100 | [diff] [blame] | 36 | } |
| 37 | |
Alan Viverette | eb64862 | 2016-03-11 19:33:03 +0000 | [diff] [blame] | 38 | aaptOptions { |
| 39 | additionalParameters "--no-version-vectors" |
| 40 | } |
Jeff Hamilton | 5d522dd | 2014-05-19 12:50:02 -0500 | [diff] [blame] | 41 | } |
Xavier Ducrohet | 11b8398 | 2015-03-31 15:12:42 -0700 | [diff] [blame] | 42 | |
Xavier Ducrohet | 11b8398 | 2015-03-31 15:12:42 -0700 | [diff] [blame] | 43 | uploadArchives { |
| 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 | } |