blob: f88be95562e4f96f82fcebf6ecb331ed2444af42 [file] [log] [blame]
Jason Monk8a452e92017-10-31 19:21:47 -04001/*
2 * Copyright (C) 2017 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 Liutikas526389b2018-02-27 14:01:24 -080017import static androidx.build.dependencies.DependenciesKt.*
18import androidx.build.LibraryVersions
19import androidx.build.LibraryGroups
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070020import androidx.build.Publish
Jason Monkdb7ed472017-11-14 19:31:23 -050021
Jason Monk8a452e92017-10-31 19:21:47 -040022plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010023 id("AndroidXPlugin")
24 id("com.android.library")
Jason Monk8a452e92017-10-31 19:21:47 -040025}
26
27dependencies {
Aurimas Liutikas4d33d5f2018-04-10 11:09:27 -070028 implementation(project(":slice-core"))
Jim Sproch9e38b4f2021-01-06 14:21:06 -080029 implementation(project(":appcompat:appcompat"))
Nick Anthony9dc05212021-01-11 10:29:48 -050030 implementation("androidx.recyclerview:recyclerview:1.2.0-beta01")
Nick Anthony692b3e952019-06-04 11:25:56 -040031 implementation("androidx.collection:collection:1.1.0")
Ian Lake005a9202019-09-26 16:17:25 -070032 api("androidx.lifecycle:lifecycle-livedata-core:2.0.0")
Jason Monk901e2a62017-12-18 15:40:24 -050033
Mady Mellored423ac2018-05-04 09:21:49 -070034 androidTestImplementation(project(":slice-builders"))
Jason Monk1d7c4ff2018-06-01 14:11:26 -040035 androidTestImplementation(project(":slice-test"))
Dustin Lam3979d962019-04-08 10:40:19 -070036 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
37 androidTestImplementation(ANDROIDX_TEST_CORE)
38 androidTestImplementation(ANDROIDX_TEST_RUNNER)
39 androidTestImplementation(ANDROIDX_TEST_RULES)
Aurimas Liutikas3f9ceb62018-07-10 11:57:16 -070040 androidTestImplementation(ESPRESSO_CORE, libs.exclude_for_espresso)
Jason Monk731b13d2018-01-11 12:11:22 -050041 androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy)
42 androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy)
43}
44
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070045androidx {
Aurimas Liutikascdcbdb02017-11-28 15:28:01 -080046 name = "Slice views"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070047 publish = Publish.SNAPSHOT_AND_RELEASE
Jason Monkca39c262018-07-24 14:47:02 -040048 mavenVersion = LibraryVersions.SLICE
Aurimas Liutikasac5fe7c2018-03-06 14:40:53 -080049 mavenGroup = LibraryGroups.SLICE
Aurimas Liutikascdcbdb02017-11-28 15:28:01 -080050 inceptionYear = "2017"
51 description = "A library that handles rendering of slice content into supported templates"
Aurimas Liutikasbfef0932018-04-04 13:25:38 -070052 failOnDeprecationWarnings = false
Jason Monk8a452e92017-10-31 19:21:47 -040053}