Home | History | Annotate | Download | only in preference
      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 apply plugin: android.support.SupportLibraryPlugin
     18 archivesBaseName = 'preference-v7'
     19 
     20 dependencies {
     21     compile project(':support-v4')
     22     compile project(':support-appcompat-v7')
     23     compile project(':support-recyclerview-v7')
     24 
     25     androidTestCompile (libs.test_runner) {
     26         exclude module: 'support-annotations'
     27     }
     28     androidTestCompile (libs.espresso_core) {
     29         exclude module: 'support-annotations'
     30     }
     31     androidTestCompile libs.mockito_core
     32     androidTestCompile libs.dexmaker_mockito
     33 }
     34 
     35 android {
     36     defaultConfig {
     37         minSdkVersion 14
     38     }
     39 
     40     sourceSets {
     41         main.java.srcDir 'src'
     42         main.java.srcDir 'constants'
     43         main.res.srcDirs = [
     44                 'res',
     45                 'res-public'
     46         ]
     47         main.assets.srcDir 'assets'
     48         main.resources.srcDir 'src'
     49     }
     50 
     51     lintOptions {
     52         // Remove this once all NewApi breakages have been fixed.
     53         disable "NewApi"
     54     }
     55 
     56     buildTypes.all {
     57         consumerProguardFiles 'proguard-rules.pro'
     58     }
     59 }
     60 
     61 supportLibrary {
     62     name 'Android Support Preference v7'
     63     inceptionYear '2015'
     64     description 'Android Support Preference v7'
     65 }
     66