blob: 178d84dfe4d71934e9483222150dfa7014f367ba [file] [log] [blame]
/*
* Copyright (C) 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.
*/
plugins {
id("AndroidXPlugin")
id("com.android.application")
id("kotlin-android")
}
android {
defaultConfig {
applicationId "androidx.camera.integration.viewfinder"
minSdkVersion 21
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
}
}
namespace "androidx.camera.integration.viewfinder"
}
dependencies {
implementation("androidx.concurrent:concurrent-futures-ktx:1.1.0")
// Internal library
implementation(project(":camera:camera-camera2"))
implementation(project(":camera:camera-lifecycle"))
implementation(project(":camera:camera-viewfinder"))
// Android Support Library
implementation("androidx.appcompat:appcompat:1.3.0")
implementation("androidx.activity:activity-ktx:1.2.0")
implementation("androidx.legacy:legacy-support-v4:1.0.0")
implementation("androidx.concurrent:concurrent-futures-ktx:1.1.0")
implementation(project(":window:window"))
implementation(project(":window:window-java"))
implementation(libs.guavaAndroid)
implementation(libs.constraintLayout)
compileOnly(libs.kotlinCompiler)
// Align dependencies in debugRuntimeClasspath and debugAndroidTestRuntimeClasspath.
androidTestImplementation("androidx.annotation:annotation-experimental:1.4.0")
// Testing framework
androidTestImplementation(libs.testExtJunit)
androidTestImplementation(libs.testCore)
androidTestImplementation(libs.testRunner)
androidTestImplementation(libs.testRules)
androidTestImplementation(libs.testUiautomator)
androidTestImplementation(libs.truth)
androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0")
androidTestImplementation("androidx.concurrent:concurrent-futures:1.1.0")
debugImplementation(libs.testCore)
debugImplementation("androidx.fragment:fragment-testing:1.2.3")
// camera-testing added as 'implementation' dependency to include camera-testing activity in APK
debugImplementation(project(":camera:camera-testing")) {
// Ensure camera-testing does not pull in camera-core project dependency which will
// override pinned dependency.
exclude(group:"androidx.camera", module:"camera-core")
// Ensure camera-testing does not pull in androidx.test dependencies
exclude(group:"androidx.test")
}
}