blob: 6576e5fc79ca34a3ff17b0fd3b97038fd423f833 [file] [log] [blame]
Tony Mantler6904f672015-02-19 08:58:37 -08001/*
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
17apply plugin: 'android-library'
18
19archivesBaseName = 'preference-v7'
20
21dependencies {
22 compile project(':support-v4')
23 compile project(':support-appcompat-v7')
24 compile project(':support-recyclerview-v7')
25}
26
27android {
28 compileSdkVersion 'current'
29
30 sourceSets {
31 main.manifest.srcFile 'AndroidManifest.xml'
32 main.java.srcDir 'src'
33 main.res.srcDir 'res'
34 main.assets.srcDir 'assets'
35 main.resources.srcDir 'src'
36
37 // this moves src/instrumentTest to tests so all folders follow:
38 // tests/java, tests/res, tests/assets, ...
39 // This is a *reset* so it replaces the default paths
40 androidTest.setRoot('tests')
41 androidTest.java.srcDir 'tests/src'
42 }
43
44 compileOptions {
45 sourceCompatibility JavaVersion.VERSION_1_7
46 targetCompatibility JavaVersion.VERSION_1_7
47 }
48
49 lintOptions {
50 // TODO: fix errors and reenable.
51 abortOnError false
52 }
53}