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