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
17import static androidx.build.dependencies.DependenciesKt.*
18import androidx.build.LibraryGroups
19import androidx.build.LibraryVersions
20
21plugins {
22    id("SupportAndroidLibraryPlugin")
23}
24
25dependencies {
26    api(project(":core"))
27    api(project(":collection"))
28    api(project(":fragment"))
29    api(project(":appcompat"))
30    api(project(":recyclerview"))
31
32    androidTestImplementation(TEST_RUNNER_TMP, libs.exclude_for_espresso)
33    androidTestImplementation(ESPRESSO_CORE_TMP, libs.exclude_for_espresso)
34    androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
35    androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
36}
37
38android {
39    sourceSets {
40        main.res.srcDirs = [
41                'res',
42                'res-public'
43        ]
44    }
45
46    buildTypes.all {
47        consumerProguardFiles 'proguard-rules.pro'
48    }
49}
50
51supportLibrary {
52    name = "Android Support Preference v7"
53    publish = true
54    mavenVersion = LibraryVersions.SUPPORT_LIBRARY
55    mavenGroup = LibraryGroups.PREFERENCE
56    inceptionYear = "2015"
57    description = "Android Support Preference v7"
58    failOnUncheckedWarnings = false
59    failOnDeprecationWarnings = false
60}
61