Alan Viverette | a75e3d6 | 2021-06-23 17:38:25 -0400 | [diff] [blame] | 1 | /* |
| 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 | |
Jelle Fresen | 4a13c56 | 2021-11-26 16:50:44 +0000 | [diff] [blame] | 17 | import androidx.build.LibraryType |
Alan Viverette | a75e3d6 | 2021-06-23 17:38:25 -0400 | [diff] [blame] | 18 | import androidx.build.Publish |
| 19 | |
| 20 | plugins { |
| 21 | id("AndroidXPlugin") |
| 22 | id("com.android.library") |
| 23 | } |
| 24 | |
| 25 | dependencies { |
| 26 | implementation(project(":slice:slice-core")) |
| 27 | implementation(project(":slice:slice-builders")) |
| 28 | implementation(project(":recyclerview:recyclerview")) |
| 29 | implementation("androidx.collection:collection:1.1.0") |
| 30 | api("androidx.lifecycle:lifecycle-livedata-core:2.0.0") |
| 31 | |
| 32 | androidTestImplementation(libs.testExtJunit) |
| 33 | androidTestImplementation(libs.testCore) |
| 34 | androidTestImplementation(libs.testRunner) |
| 35 | androidTestImplementation(libs.espressoCore, excludes.espresso) |
| 36 | androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) |
| 37 | androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) |
| 38 | } |
| 39 | |
| 40 | androidx { |
Alan Viverette | a46238ed | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 41 | name = "Slice Test Extensions" |
Jelle Fresen | 4a13c56 | 2021-11-26 16:50:44 +0000 | [diff] [blame] | 42 | type = LibraryType.INTERNAL_TEST_LIBRARY |
Alan Viverette | 08681cf | 2023-03-08 14:47:53 -0500 | [diff] [blame] | 43 | publish = Publish.NONE // Library is deprecated pending removal. |
Alan Viverette | a75e3d6 | 2021-06-23 17:38:25 -0400 | [diff] [blame] | 44 | mavenVersion = LibraryVersions.SLICE |
Alan Viverette | a75e3d6 | 2021-06-23 17:38:25 -0400 | [diff] [blame] | 45 | inceptionYear = "2017" |
| 46 | description = "A library that holds common code for testing slices" |
| 47 | failOnDeprecationWarnings = false |
Marcello Albano | d80729f | 2023-05-02 15:13:17 -0700 | [diff] [blame] | 48 | |
| 49 | deviceTests { |
| 50 | // Pending removal, don't run tests. |
| 51 | enabled = false |
| 52 | } |
Alan Viverette | a75e3d6 | 2021-06-23 17:38:25 -0400 | [diff] [blame] | 53 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 54 | |
| 55 | android { |
| 56 | namespace "androidx.slice.test" |
| 57 | } |