blob: a763ddd34c874b114c37e56c8ae0a3df220241dd [file] [log] [blame]
/*
* Copyright 2019 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.
*/
/**
* This file was created using the `create_project.py` script located in the
* `<AndroidX root>/development/project-creator` directory.
*
* Please use that script when creating a new project, rather than copying an existing project and
* modifying its settings.
*/
import androidx.build.Publish
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("kotlin-android")
}
dependencies {
// ensuring implementation versions stay consistent with androidTestImplementation
def testCoreVersion = "1.5.0"
def testRunnerVersion = "1.5.2"
def testRulesVersion = "1.5.0"
implementation("androidx.test:core:$testCoreVersion")
implementation("androidx.test:rules:$testRulesVersion")
implementation("androidx.test:runner:$testRunnerVersion")
implementation(libs.testUiautomator)
api("androidx.annotation:annotation:1.2.0")
implementation(libs.guavaListenableFuture)
implementation("androidx.appcompat:appcompat:1.1.0")
api(project(":camera:camera-core"))
api(project(":camera:camera-video"))
implementation("androidx.core:core:1.1.0")
implementation("androidx.concurrent:concurrent-futures:1.0.0")
implementation("androidx.test.espresso:espresso-core:3.5.0")
implementation("androidx.test.espresso:espresso-idling-resource:3.5.0")
implementation(libs.junit)
implementation(libs.truth)
implementation(libs.kotlinStdlib)
implementation(libs.kotlinCoroutinesAndroid)
testImplementation("androidx.test:core:$testCoreVersion")
testImplementation("androidx.test:runner:$testRunnerVersion")
testImplementation(libs.junit)
testImplementation(libs.truth)
testImplementation(libs.robolectric)
testImplementation(libs.mockitoCore4)
androidTestImplementation(libs.multidex)
androidTestImplementation(libs.testExtJunit)
androidTestImplementation("androidx.test:core:$testCoreVersion")
androidTestImplementation("androidx.test:rules:$testRulesVersion")
androidTestImplementation("androidx.test:runner:$testRunnerVersion")
androidTestImplementation(libs.truth)
androidTestImplementation(libs.kotlinStdlib)
androidTestImplementation(libs.kotlinCoroutinesAndroid)
androidTestImplementation("androidx.concurrent:concurrent-futures-ktx:1.1.0")
androidTestImplementation(project(":internal-testutils-truth"))
}
android {
defaultConfig {
externalNativeBuild {
multiDexEnabled = true
cmake {
cppFlags "-std=c++17"
arguments "-DCMAKE_VERBOSE_MAKEFILE=ON"
}
}
}
lintOptions {
enable 'CameraXQuirksClassDetector'
}
// Use Robolectric 4.+
testOptions.unitTests.includeAndroidResources = true
externalNativeBuild {
cmake {
path "src/main/cpp/CMakeLists.txt"
version libs.versions.cmake.get()
}
}
namespace "androidx.camera.testing"
}
androidx {
name = "Camera Testing"
publish = Publish.SNAPSHOT_AND_RELEASE
inceptionYear = "2019"
description = "Testing components for the Jetpack Camera Library, a library providing a " +
"consistent and reliable camera foundation that enables great camera driven " +"" +
"experiences across all of Android."
}