Franklin Wu | 0c88a3f | 2019-10-23 15:37:05 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2019 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 | |
Tiem Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 17 | /** |
| 18 | * This file was created using the `create_project.py` script located in the |
| 19 | * `<AndroidX root>/development/project-creator` directory. |
| 20 | * |
| 21 | * Please use that script when creating a new project, rather than copying an existing project and |
| 22 | * modifying its settings. |
| 23 | */ |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 24 | import androidx.build.LibraryType |
Franklin Wu | 0c88a3f | 2019-10-23 15:37:05 -0700 | [diff] [blame] | 25 | |
| 26 | plugins { |
| 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
Trevor McGuire | cf8e22b | 2019-11-14 22:12:36 -0800 | [diff] [blame] | 29 | id("kotlin-android") |
Franklin Wu | 0c88a3f | 2019-10-23 15:37:05 -0700 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | dependencies { |
Julia McClellan | a62b2ac | 2024-12-07 11:57:25 -0500 | [diff] [blame] | 33 | api(libs.jspecify) |
Franklin Wu | 4d89be1 | 2019-10-23 15:38:43 -0700 | [diff] [blame] | 34 | api("androidx.lifecycle:lifecycle-common:2.1.0") |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 35 | api(libs.guavaListenableFuture) |
Trevor McGuire | 06e54fd | 2019-12-27 15:43:10 -0800 | [diff] [blame] | 36 | api(project(":camera:camera-core")) |
Nick Anthony | bf92cbc | 2020-02-10 21:11:51 +0000 | [diff] [blame] | 37 | implementation("androidx.core:core:1.1.0") |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 38 | implementation(libs.autoValueAnnotations) |
TY Chang | dac1c2b | 2024-04-01 18:40:04 +0800 | [diff] [blame] | 39 | implementation(libs.kotlinCoroutinesAndroid) |
| 40 | implementation("androidx.concurrent:concurrent-futures:1.1.0") |
| 41 | implementation("androidx.concurrent:concurrent-futures-ktx:1.1.0") |
Trevor McGuire | 1620bdd | 2024-07-01 22:15:24 -0700 | [diff] [blame] | 42 | implementation("androidx.tracing:tracing-ktx:1.2.0") |
TY Chang | 15ef1c2 | 2020-11-20 15:48:43 +0800 | [diff] [blame] | 43 | |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 44 | annotationProcessor(libs.autoValue) |
Trevor McGuire | cf8e22b | 2019-11-14 22:12:36 -0800 | [diff] [blame] | 45 | |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 46 | androidTestImplementation(libs.testExtJunit) |
| 47 | androidTestImplementation(libs.testCore) |
| 48 | androidTestImplementation(libs.testRunner) |
| 49 | androidTestImplementation(libs.testRules) |
| 50 | androidTestImplementation(libs.truth) |
Tahsin Masrur | 068199ff | 2023-06-01 12:20:32 +0800 | [diff] [blame] | 51 | androidTestImplementation(project(":camera:camera-testing")) { |
| 52 | // Ensure camera-testing does not pull in androidx.test dependencies |
| 53 | exclude(group:"androidx.test") |
| 54 | } |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 55 | androidTestImplementation(libs.kotlinStdlib) |
| 56 | androidTestImplementation(libs.kotlinCoroutinesAndroid) |
Jinseong Jeon | 89e0533 | 2024-07-04 18:35:02 -0700 | [diff] [blame] | 57 | androidTestImplementation("androidx.annotation:annotation-experimental:1.4.1") |
Scott Nien | bdcefbc | 2021-04-23 17:23:06 +0800 | [diff] [blame] | 58 | androidTestImplementation("androidx.concurrent:concurrent-futures-ktx:1.1.0") |
Trevor McGuire | cf8e22b | 2019-11-14 22:12:36 -0800 | [diff] [blame] | 59 | androidTestImplementation(project(":internal-testutils-truth")) |
Trevor McGuire | 04438ba | 2020-12-14 23:40:02 +0000 | [diff] [blame] | 60 | androidTestImplementation("org.jetbrains.kotlinx:atomicfu:0.13.1") |
Franklin Wu | 0c88a3f | 2019-10-23 15:37:05 -0700 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | android { |
Aurimas Liutikas | 04bd506 | 2025-01-07 13:40:09 -0800 | [diff] [blame] | 64 | compileSdk = 35 |
CharcoalChen | af13cf57 | 2024-12-23 17:07:32 +0800 | [diff] [blame] | 65 | |
System Administrator | c4ab0a1 | 2022-04-13 12:05:20 -0700 | [diff] [blame] | 66 | lintOptions { |
| 67 | enable 'CameraXQuirksClassDetector' |
| 68 | } |
Franklin Wu | 0c88a3f | 2019-10-23 15:37:05 -0700 | [diff] [blame] | 69 | // Use Robolectric 4.+ |
| 70 | testOptions.unitTests.includeAndroidResources = true |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 71 | namespace = "androidx.camera.lifecycle" |
Franklin Wu | 0c88a3f | 2019-10-23 15:37:05 -0700 | [diff] [blame] | 72 | } |
| 73 | |
| 74 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 75 | name = "Camera Lifecycle" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 76 | type = LibraryType.PUBLISHED_LIBRARY |
Natnael Belay | 3f64907 | 2024-11-08 18:49:11 +0000 | [diff] [blame] | 77 | samples(project(":camera:camera-lifecycle:camera-lifecycle-samples")) |
Franklin Wu | 0c88a3f | 2019-10-23 15:37:05 -0700 | [diff] [blame] | 78 | inceptionYear = "2019" |
| 79 | description = "Lifecycle components for the Jetpack Camera Library, a library providing a " + |
| 80 | "consistent and reliable camera foundation that enables great camera driven " + |
| 81 | "experiences across all of Android." |
TY Chang | d6ab922 | 2024-04-01 20:56:56 +0800 | [diff] [blame] | 82 | samples(project(":camera:camera-lifecycle:camera-lifecycle-samples")) |
Franklin Wu | 0c88a3f | 2019-10-23 15:37:05 -0700 | [diff] [blame] | 83 | } |