blob: 3f8109309390df2e196112bc3c2fd8eeb6b9f6a6 [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
Aurimas Liutikas9697da72016-12-22 15:50:42 -080017apply plugin: android.support.SupportLibraryPlugin
Tony Mantler6904f672015-02-19 08:58:37 -080018archivesBaseName = 'preference-v7'
19
20dependencies {
Aurimas Liutikasf34de282017-07-05 14:44:09 -070021 api project(':support-v4')
22 api project(':support-appcompat-v7')
23 api project(':support-recyclerview-v7')
Tony Mantler84352192016-07-20 11:39:11 -070024
Aurimas Liutikasf34de282017-07-05 14:44:09 -070025 androidTestImplementation (libs.test_runner) {
Tony Mantler84352192016-07-20 11:39:11 -070026 exclude module: 'support-annotations'
27 }
Aurimas Liutikasf34de282017-07-05 14:44:09 -070028 androidTestImplementation (libs.espresso_core) {
Tony Mantler84352192016-07-20 11:39:11 -070029 exclude module: 'support-annotations'
30 }
Aurimas Liutikasf34de282017-07-05 14:44:09 -070031 androidTestImplementation libs.mockito_core
32 androidTestImplementation libs.dexmaker_mockito
Tony Mantler6904f672015-02-19 08:58:37 -080033}
34
35android {
Tony Mantler84352192016-07-20 11:39:11 -070036 defaultConfig {
Aurimas Liutikasf7513062017-01-05 13:02:27 -080037 minSdkVersion 14
Tony Mantler84352192016-07-20 11:39:11 -070038 }
39
Tony Mantler6904f672015-02-19 08:58:37 -080040 sourceSets {
Tony Mantler6904f672015-02-19 08:58:37 -080041 main.java.srcDir 'src'
Jason Monk3fadd622015-10-28 14:33:19 -040042 main.java.srcDir 'constants'
Alan Viverette8f9a4a92017-05-11 14:24:01 -040043 main.res.srcDirs = [
44 'res',
45 'res-public'
46 ]
Tony Mantler6904f672015-02-19 08:58:37 -080047 main.assets.srcDir 'assets'
48 main.resources.srcDir 'src'
Tony Mantler6904f672015-02-19 08:58:37 -080049 }
50
51 lintOptions {
Alan Viveretteaf6b2512016-11-16 17:33:10 -050052 // Remove this once all NewApi breakages have been fixed.
53 disable "NewApi"
Tony Mantler6904f672015-02-19 08:58:37 -080054 }
Tony Mantler06f9ee52015-08-21 10:55:03 -070055
56 buildTypes.all {
57 consumerProguardFiles 'proguard-rules.pro'
58 }
Tony Mantler6904f672015-02-19 08:58:37 -080059}
Tony Mantlera2dbc752015-10-07 15:34:36 -070060
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080061supportLibrary {
62 name 'Android Support Preference v7'
63 inceptionYear '2015'
64 description 'Android Support Preference v7'
65}