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 | |
Aurimas Liutikas | 9697da7 | 2016-12-22 15:50:42 -0800 | [diff] [blame] | 17 | apply plugin: android.support.SupportLibraryPlugin |
Tony Mantler | 6904f67 | 2015-02-19 08:58:37 -0800 | [diff] [blame] | 18 | archivesBaseName = 'preference-v7' |
| 19 | |
| 20 | dependencies { |
Aurimas Liutikas | f34de28 | 2017-07-05 14:44:09 -0700 | [diff] [blame^] | 21 | api project(':support-v4') |
| 22 | api project(':support-appcompat-v7') |
| 23 | api project(':support-recyclerview-v7') |
Tony Mantler | 8435219 | 2016-07-20 11:39:11 -0700 | [diff] [blame] | 24 | |
Aurimas Liutikas | f34de28 | 2017-07-05 14:44:09 -0700 | [diff] [blame^] | 25 | androidTestImplementation (libs.test_runner) { |
Tony Mantler | 8435219 | 2016-07-20 11:39:11 -0700 | [diff] [blame] | 26 | exclude module: 'support-annotations' |
| 27 | } |
Aurimas Liutikas | f34de28 | 2017-07-05 14:44:09 -0700 | [diff] [blame^] | 28 | androidTestImplementation (libs.espresso_core) { |
Tony Mantler | 8435219 | 2016-07-20 11:39:11 -0700 | [diff] [blame] | 29 | exclude module: 'support-annotations' |
| 30 | } |
Aurimas Liutikas | f34de28 | 2017-07-05 14:44:09 -0700 | [diff] [blame^] | 31 | androidTestImplementation libs.mockito_core |
| 32 | androidTestImplementation libs.dexmaker_mockito |
Tony Mantler | 6904f67 | 2015-02-19 08:58:37 -0800 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | android { |
Tony Mantler | 8435219 | 2016-07-20 11:39:11 -0700 | [diff] [blame] | 36 | defaultConfig { |
Aurimas Liutikas | f751306 | 2017-01-05 13:02:27 -0800 | [diff] [blame] | 37 | minSdkVersion 14 |
Tony Mantler | 8435219 | 2016-07-20 11:39:11 -0700 | [diff] [blame] | 38 | } |
| 39 | |
Tony Mantler | 6904f67 | 2015-02-19 08:58:37 -0800 | [diff] [blame] | 40 | sourceSets { |
Tony Mantler | 6904f67 | 2015-02-19 08:58:37 -0800 | [diff] [blame] | 41 | main.java.srcDir 'src' |
Jason Monk | 3fadd62 | 2015-10-28 14:33:19 -0400 | [diff] [blame] | 42 | main.java.srcDir 'constants' |
Alan Viverette | 8f9a4a9 | 2017-05-11 14:24:01 -0400 | [diff] [blame] | 43 | main.res.srcDirs = [ |
| 44 | 'res', |
| 45 | 'res-public' |
| 46 | ] |
Tony Mantler | 6904f67 | 2015-02-19 08:58:37 -0800 | [diff] [blame] | 47 | main.assets.srcDir 'assets' |
| 48 | main.resources.srcDir 'src' |
Tony Mantler | 6904f67 | 2015-02-19 08:58:37 -0800 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | lintOptions { |
Alan Viverette | af6b251 | 2016-11-16 17:33:10 -0500 | [diff] [blame] | 52 | // Remove this once all NewApi breakages have been fixed. |
| 53 | disable "NewApi" |
Tony Mantler | 6904f67 | 2015-02-19 08:58:37 -0800 | [diff] [blame] | 54 | } |
Tony Mantler | 06f9ee5 | 2015-08-21 10:55:03 -0700 | [diff] [blame] | 55 | |
| 56 | buildTypes.all { |
| 57 | consumerProguardFiles 'proguard-rules.pro' |
| 58 | } |
Tony Mantler | 6904f67 | 2015-02-19 08:58:37 -0800 | [diff] [blame] | 59 | } |
Tony Mantler | a2dbc75 | 2015-10-07 15:34:36 -0700 | [diff] [blame] | 60 | |
Aurimas Liutikas | 16cd13b | 2017-01-04 15:00:13 -0800 | [diff] [blame] | 61 | supportLibrary { |
| 62 | name 'Android Support Preference v7' |
| 63 | inceptionYear '2015' |
| 64 | description 'Android Support Preference v7' |
| 65 | } |