1/* 2 * Copyright 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17plugins { 18 id("AndroidXPlugin") 19 id("com.android.application") 20 id("org.jetbrains.kotlin.android") 21 id("AndroidXComposePlugin") 22} 23 24android { 25 namespace = "androidx.camera.integration.avsync" 26 compileSdk = 35 27 defaultConfig { 28 applicationId = "androidx.camera.integration.avsync" 29 } 30 31 buildTypes { 32 release { 33 minifyEnabled = true 34 shrinkResources = true 35 } 36 } 37} 38 39dependencies { 40 implementation("androidx.concurrent:concurrent-futures-ktx:1.1.0") 41 42 // Internal library 43 implementation(project(":camera:camera-camera2")) 44 implementation(project(":camera:camera-camera2-pipe-integration")) 45 implementation(project(":camera:camera-lifecycle")) 46 implementation(project(":camera:camera-video")) 47 48 // Compose 49 def compose_version = "1.7.2" 50 implementation("androidx.activity:activity-compose:1.5.0") 51 implementation("androidx.compose.material:material:$compose_version") 52 implementation("androidx.compose.material:material-icons-core:1.6.7") 53 implementation("androidx.compose.ui:ui:$compose_version") 54 implementation("androidx.compose.ui:ui-tooling-preview:$compose_version") 55 implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1") 56 implementation("androidx.lifecycle:lifecycle-viewmodel:2.6.1") 57 58 // Add camera-testing as 'implementation' dependency to use utils in camera-testing. 59 implementation(project(":camera:camera-testing")) { 60 // Ensure camera-testing does not pull in androidx.test dependencies. 61 exclude(group:"androidx.test") 62 } 63 64 // Align dependencies in debugRuntimeClasspath and debugAndroidTestRuntimeClasspath. 65 androidTestImplementation("androidx.annotation:annotation-experimental:1.4.1") 66 androidTestImplementation("androidx.annotation:annotation:1.4.0") 67 androidTestImplementation("androidx.lifecycle:lifecycle-common:2.8.3") 68 69 // Testing framework 70 testImplementation(libs.kotlinCoroutinesTest) 71 testImplementation(libs.junit) 72 testImplementation(libs.truth) 73 androidTestImplementation(project(":concurrent:concurrent-futures")) 74 androidTestImplementation(project(":concurrent:concurrent-futures-ktx")) 75 androidTestImplementation("androidx.lifecycle:lifecycle-viewmodel:2.6.1") 76 androidTestImplementation(libs.kotlinCoroutinesTest) 77 androidTestImplementation(libs.testExtJunit) 78 androidTestImplementation(libs.testRules) 79 androidTestImplementation(libs.testRunner) 80 androidTestImplementation(libs.truth) 81} 82