blob: 5fb829e42ed335b4b5e7a0e13d8f34dec91a4d79 [file] [log] [blame]
/*
* 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.LibraryType
plugins {
id("AndroidXPlugin")
id("com.android.library")
}
dependencies {
api(project(":car:app:app"))
implementation "androidx.lifecycle:lifecycle-runtime:2.2.0"
implementation "androidx.lifecycle:lifecycle-common-java8:2.2.0"
implementation 'androidx.annotation:annotation:1.1.0'
implementation(libs.robolectric)
implementation("androidx.annotation:annotation-experimental:1.1.0")
// There is an implicit compile-only dep due to :annotation-experimental
// Build will complain without this manual declaration.
compileOnly libs.kotlinStdlib
testImplementation(project(":car:app:app-projected"))
testImplementation(libs.junit)
testImplementation(libs.testCore)
testImplementation(libs.testRunner)
testImplementation(libs.junit)
testImplementation(libs.mockitoCore)
testImplementation(libs.robolectric)
testImplementation(libs.truth)
annotationProcessor(libs.nullaway)
}
android {
defaultConfig {
minSdkVersion 23
multiDexEnabled = true
}
lintOptions {
disable("InvalidPackage")
}
namespace "androidx.car.app.testing"
}
androidx {
name = "androidx.car.app:app-testing"
type = LibraryType.PUBLISHED_TEST_LIBRARY
mavenGroup = LibraryGroups.CAR_APP
inceptionYear = "2021"
description = "androidx.car.app:app-testing"
}