blob: c72f23c7f351c2bcdd7472aef4e5cb39af7ed74e [file] [log] [blame]
Tony Mantler2a90a3f2015-03-19 13:19:46 -07001/*
2 * Copyright (C) 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License
15 */
16
17
18
Yigit Boyar02a9e8c2016-01-26 20:41:00 -080019apply plugin: 'com.android.library'
Tony Mantler2a90a3f2015-03-19 13:19:46 -070020
Tony Mantlerd2e2c832015-03-23 09:58:10 -070021archivesBaseName = 'preference-leanback-v17'
Tony Mantler2a90a3f2015-03-19 13:19:46 -070022
23dependencies {
24 compile project(':support-v4')
25 compile project(':support-appcompat-v7')
26 compile project(':support-recyclerview-v7')
27 compile project(':support-preference-v7')
28 compile project(':support-preference-v14')
29 compile project(':support-leanback-v17')
30}
31
32android {
Yigit Boyar02a9e8c2016-01-26 20:41:00 -080033 compileSdkVersion project.ext.currentSdk
Tony Mantler2a90a3f2015-03-19 13:19:46 -070034
35 sourceSets {
36 main.manifest.srcFile 'AndroidManifest.xml'
Tony Mantler2dce94c2015-07-10 10:52:47 -070037 main.java.srcDirs = ['src', 'api21']
Tony Mantler2a90a3f2015-03-19 13:19:46 -070038 main.res.srcDir 'res'
39 main.assets.srcDir 'assets'
40 main.resources.srcDir 'src'
41
42 // this moves src/instrumentTest to tests so all folders follow:
43 // tests/java, tests/res, tests/assets, ...
44 // This is a *reset* so it replaces the default paths
45 androidTest.setRoot('tests')
46 androidTest.java.srcDir 'tests/src'
47 }
48
49 compileOptions {
50 sourceCompatibility JavaVersion.VERSION_1_7
51 targetCompatibility JavaVersion.VERSION_1_7
52 }
53
54 lintOptions {
55 // TODO: fix errors and reenable.
56 abortOnError false
57 }
58}
Tony Mantlera2dbc752015-10-07 15:34:36 -070059
60uploadArchives {
61 repositories {
62 mavenDeployer {
63 repository(url: uri(rootProject.ext.supportRepoOut)) {
64 }
65
66 pom.project {
67 name 'Android Support Leanback Preference v17'
68 description "Android Support Leanback Preference v17"
69 url 'http://developer.android.com/tools/extras/support-library.html'
70 inceptionYear '2015'
71
72 licenses {
73 license {
74 name 'The Apache Software License, Version 2.0'
75 url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
76 distribution 'repo'
77 }
78 }
79
80 scm {
81 url "http://source.android.com"
82 connection "scm:git:https://android.googlesource.com/platform/frameworks/support"
83 }
84 developers {
85 developer {
86 name 'The Android Open Source Project'
87 }
88 }
89 }
90 }
91 }
92}