| /* |
| * 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.1.1" |
| implementation("androidx.activity:activity-compose:1.5.0-alpha03") |
| implementation("androidx.compose.material:material:$compose_version") |
| implementation("androidx.compose.ui:ui:$compose_version") |
| implementation("androidx.compose.ui:ui-tooling-preview:$compose_version") |
| implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.4.1") |
| |
| compileOnly(libs.kotlinCompiler) |
| |
| // Testing framework |
| testImplementation(libs.kotlinCoroutinesTest) |
| testImplementation(libs.junit) |
| testImplementation(libs.truth) |
| androidTestImplementation(project(":camera:camera-testing")) |
| androidTestImplementation(libs.kotlinCoroutinesTest) |
| androidTestImplementation(libs.testExtJunit) |
| androidTestImplementation(libs.testRules) |
| androidTestImplementation(libs.testRunner) |
| androidTestImplementation(libs.truth) |
| } |