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 19apply plugin: 'android-library' 20 21archivesBaseName = 'preference-leanback-v17' 22 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 { 33 compileSdkVersion 'current' 34 35 sourceSets { 36 main.manifest.srcFile 'AndroidManifest.xml' 37 main.java.srcDirs = ['src', 'api21'] 38 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} 59