| /* |
| * Copyright (C) 2021 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| import androidx.build.LibraryGroups |
| import androidx.build.LibraryType |
| import androidx.build.Publish |
| import androidx.build.LibraryVersions |
| |
| import static androidx.build.dependencies.DependenciesKt.ANDROIDX_TEST_CORE |
| import static androidx.build.dependencies.DependenciesKt.ANDROIDX_TEST_RUNNER |
| import static androidx.build.dependencies.DependenciesKt.JUNIT |
| import static androidx.build.dependencies.DependenciesKt.MOCKITO_CORE |
| import static androidx.build.dependencies.DependenciesKt.NULLAWAY |
| import static androidx.build.dependencies.DependenciesKt.ROBOLECTRIC |
| import static androidx.build.dependencies.DependenciesKt.TRUTH |
| |
| plugins { |
| id("AndroidXPlugin") |
| id("com.android.library") |
| } |
| |
| dependencies { |
| api(project(":car:app:app")) |
| implementation "androidx.lifecycle:lifecycle-common-java8:2.2.0" |
| implementation 'androidx.annotation:annotation:1.1.0' |
| implementation project(path: ':lifecycle:lifecycle-runtime') |
| |
| testImplementation("junit:junit:4.13") |
| testImplementation(ANDROIDX_TEST_CORE) |
| testImplementation(ANDROIDX_TEST_RUNNER) |
| testImplementation(JUNIT) |
| testImplementation(MOCKITO_CORE) |
| testImplementation(ROBOLECTRIC) |
| testImplementation(TRUTH) |
| |
| annotationProcessor(NULLAWAY) |
| } |
| |
| android { |
| defaultConfig { |
| minSdkVersion 23 |
| multiDexEnabled = true |
| } |
| } |
| |
| androidx { |
| name = "androidx.car.app:app-testing" |
| type = LibraryType.PUBLISHED_LIBRARY |
| mavenGroup = LibraryGroups.CAR_APP |
| // Special pre-release version to exclude the app-aaos module from the 1.0.0 release. |
| mavenVersion = LibraryVersions.CAR_APP_PRE_RELEASE |
| inceptionYear = "2021" |
| description = "androidx.car.app:app-testing" |
| } |