blob: 56274496a59b7a8f84009e1d9eff5460ac304492 [file] [log] [blame]
Franklin Wu0c88a3f2019-10-23 15:37:05 -07001/*
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 Songee0da742024-01-03 14:08:46 -080017/**
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 Ismail86e66062024-05-03 16:10:50 +010024import androidx.build.LibraryType
Franklin Wu0c88a3f2019-10-23 15:37:05 -070025
26plugins {
27 id("AndroidXPlugin")
28 id("com.android.library")
Trevor McGuirecf8e22b2019-11-14 22:12:36 -080029 id("kotlin-android")
Franklin Wu0c88a3f2019-10-23 15:37:05 -070030}
31
32dependencies {
Julia McClellana62b2ac2024-12-07 11:57:25 -050033 api(libs.jspecify)
Franklin Wu4d89be12019-10-23 15:38:43 -070034 api("androidx.lifecycle:lifecycle-common:2.1.0")
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070035 api(libs.guavaListenableFuture)
Trevor McGuire06e54fd2019-12-27 15:43:10 -080036 api(project(":camera:camera-core"))
Nick Anthonybf92cbc2020-02-10 21:11:51 +000037 implementation("androidx.core:core:1.1.0")
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070038 implementation(libs.autoValueAnnotations)
TY Changdac1c2b2024-04-01 18:40:04 +080039 implementation(libs.kotlinCoroutinesAndroid)
40 implementation("androidx.concurrent:concurrent-futures:1.1.0")
41 implementation("androidx.concurrent:concurrent-futures-ktx:1.1.0")
Trevor McGuire1620bdd2024-07-01 22:15:24 -070042 implementation("androidx.tracing:tracing-ktx:1.2.0")
TY Chang15ef1c22020-11-20 15:48:43 +080043
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070044 annotationProcessor(libs.autoValue)
Trevor McGuirecf8e22b2019-11-14 22:12:36 -080045
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070046 androidTestImplementation(libs.testExtJunit)
47 androidTestImplementation(libs.testCore)
48 androidTestImplementation(libs.testRunner)
49 androidTestImplementation(libs.testRules)
50 androidTestImplementation(libs.truth)
Tahsin Masrur068199ff2023-06-01 12:20:32 +080051 androidTestImplementation(project(":camera:camera-testing")) {
52 // Ensure camera-testing does not pull in androidx.test dependencies
53 exclude(group:"androidx.test")
54 }
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070055 androidTestImplementation(libs.kotlinStdlib)
56 androidTestImplementation(libs.kotlinCoroutinesAndroid)
Jinseong Jeon89e05332024-07-04 18:35:02 -070057 androidTestImplementation("androidx.annotation:annotation-experimental:1.4.1")
Scott Nienbdcefbc2021-04-23 17:23:06 +080058 androidTestImplementation("androidx.concurrent:concurrent-futures-ktx:1.1.0")
Trevor McGuirecf8e22b2019-11-14 22:12:36 -080059 androidTestImplementation(project(":internal-testutils-truth"))
Trevor McGuire04438ba2020-12-14 23:40:02 +000060 androidTestImplementation("org.jetbrains.kotlinx:atomicfu:0.13.1")
Franklin Wu0c88a3f2019-10-23 15:37:05 -070061}
62
63android {
Aurimas Liutikas04bd5062025-01-07 13:40:09 -080064 compileSdk = 35
CharcoalChenaf13cf572024-12-23 17:07:32 +080065
System Administratorc4ab0a12022-04-13 12:05:20 -070066 lintOptions {
67 enable 'CameraXQuirksClassDetector'
68 }
Franklin Wu0c88a3f2019-10-23 15:37:05 -070069 // Use Robolectric 4.+
70 testOptions.unitTests.includeAndroidResources = true
Aurimas Liutikas77952822024-12-04 18:00:17 -080071 namespace = "androidx.camera.lifecycle"
Franklin Wu0c88a3f2019-10-23 15:37:05 -070072}
73
74androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040075 name = "Camera Lifecycle"
Omar Ismail86e66062024-05-03 16:10:50 +010076 type = LibraryType.PUBLISHED_LIBRARY
Natnael Belay3f649072024-11-08 18:49:11 +000077 samples(project(":camera:camera-lifecycle:camera-lifecycle-samples"))
Franklin Wu0c88a3f2019-10-23 15:37:05 -070078 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 Changd6ab9222024-04-01 20:56:56 +080082 samples(project(":camera:camera-lifecycle:camera-lifecycle-samples"))
Franklin Wu0c88a3f2019-10-23 15:37:05 -070083}