blob: 2a416c264564106140830b5161f76ab1f523df01 [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.
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("AndroidXPlugin")
id("com.android.application")
id("kotlin-android")
id("AndroidXComposePlugin")
}
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"))
// Lifecycle and LiveData
implementation("androidx.lifecycle:lifecycle-livedata:2.2.0")
implementation("androidx.lifecycle:lifecycle-runtime:2.3.1")
implementation(project(":lifecycle:lifecycle-common-java8"))
// Android Support Library
implementation("androidx.appcompat:appcompat:1.3.0")
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation(libs.guavaAndroid)
implementation(libs.constraintLayout)
compileOnly(libs.kotlinCompiler)
// Testing framework
androidTestImplementation(libs.testExtJunit)
androidTestImplementation(libs.testCore)
androidTestImplementation(libs.testRunner)
androidTestImplementation(libs.testRules)
androidTestImplementation(libs.testUiautomator)
androidTestImplementation(libs.espressoCore)
androidTestImplementation("androidx.lifecycle:lifecycle-runtime-testing:2.3.1")
androidTestImplementation("androidx.lifecycle:lifecycle-runtime:2.3.1")
androidTestImplementation("androidx.lifecycle:lifecycle-livedata-ktx:2.2.0")
androidTestImplementation(libs.truth)
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")
}
}