blob: 14e4cc24b2b8fe0d356e1cd81828bb42b09425e4 [file] [log] [blame]
/*
* Copyright 2022 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")
id("AndroidXComposePlugin")
}
android {
namespace 'androidx.camera.integration.avsync'
defaultConfig {
applicationId "androidx.camera.integration.avsync"
minSdkVersion 21
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
}
}
}
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-video"))
// Compose
def compose_version = "1.4.0"
implementation("androidx.activity:activity-compose:1.5.0")
implementation(project(":compose:material:material"))
implementation("androidx.compose.ui:ui:$compose_version")
implementation("androidx.compose.ui:ui-tooling-preview:$compose_version")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1")
implementation("androidx.lifecycle:lifecycle-viewmodel:2.6.1")
compileOnly(libs.kotlinCompiler)
// Add camera-testing as 'implementation' dependency to use utils in camera-testing.
implementation(project(":camera:camera-testing")) {
// Ensure camera-testing does not pull in androidx.test dependencies.
exclude(group:"androidx.test")
}
// Align dependencies in debugRuntimeClasspath and debugAndroidTestRuntimeClasspath.
androidTestImplementation(project(":annotation:annotation-experimental"))
// Testing framework
testImplementation(libs.kotlinCoroutinesTest)
testImplementation(libs.junit)
testImplementation(libs.truth)
androidTestImplementation("androidx.lifecycle:lifecycle-viewmodel:2.6.1")
androidTestImplementation(libs.kotlinCoroutinesTest)
androidTestImplementation(libs.testExtJunit)
androidTestImplementation(libs.testRules)
androidTestImplementation(libs.testRunner)
androidTestImplementation(libs.truth)
}