blob: 515d2dae8b791554cb550821b4f3257c130b427c [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 */
Franklin Wu0c88a3f2019-10-23 15:37:05 -070024import androidx.build.Publish
25
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 {
Franklin Wu4d89be12019-10-23 15:38:43 -070033 api("androidx.lifecycle:lifecycle-common:2.1.0")
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070034 api(libs.guavaListenableFuture)
Trevor McGuire06e54fd2019-12-27 15:43:10 -080035 api(project(":camera:camera-core"))
Nick Anthonybf92cbc2020-02-10 21:11:51 +000036 implementation("androidx.core:core:1.1.0")
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070037 implementation(libs.autoValueAnnotations)
Charcoal Chena6b07762021-09-09 11:26:35 +080038 implementation("androidx.concurrent:concurrent-futures:1.0.0")
TY Chang15ef1c22020-11-20 15:48:43 +080039
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070040 annotationProcessor(libs.autoValue)
Trevor McGuirecf8e22b2019-11-14 22:12:36 -080041
Trevor McGuire836dc2a2021-09-22 16:46:22 -070042 androidTestImplementation(libs.multidex)
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070043 androidTestImplementation(libs.testExtJunit)
44 androidTestImplementation(libs.testCore)
45 androidTestImplementation(libs.testRunner)
46 androidTestImplementation(libs.testRules)
47 androidTestImplementation(libs.truth)
Tahsin Masrur068199ff2023-06-01 12:20:32 +080048 androidTestImplementation(project(":camera:camera-testing")) {
49 // Ensure camera-testing does not pull in androidx.test dependencies
50 exclude(group:"androidx.test")
51 }
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070052 androidTestImplementation(libs.kotlinStdlib)
53 androidTestImplementation(libs.kotlinCoroutinesAndroid)
natnaelbelaya817dd92024-01-17 10:30:59 -050054 androidTestImplementation("androidx.annotation:annotation-experimental:1.4.0")
Scott Nienbdcefbc2021-04-23 17:23:06 +080055 androidTestImplementation("androidx.concurrent:concurrent-futures-ktx:1.1.0")
Trevor McGuirecf8e22b2019-11-14 22:12:36 -080056 androidTestImplementation(project(":internal-testutils-truth"))
Trevor McGuire04438ba2020-12-14 23:40:02 +000057 androidTestImplementation("org.jetbrains.kotlinx:atomicfu:0.13.1")
Franklin Wu0c88a3f2019-10-23 15:37:05 -070058}
59
60android {
61 defaultConfig {
Trevor McGuire836dc2a2021-09-22 16:46:22 -070062 multiDexEnabled = true
Franklin Wu0c88a3f2019-10-23 15:37:05 -070063 }
System Administratorc4ab0a12022-04-13 12:05:20 -070064 lintOptions {
65 enable 'CameraXQuirksClassDetector'
66 }
Franklin Wu0c88a3f2019-10-23 15:37:05 -070067 // Use Robolectric 4.+
68 testOptions.unitTests.includeAndroidResources = true
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070069 namespace "androidx.camera.lifecycle"
Franklin Wu0c88a3f2019-10-23 15:37:05 -070070}
71
72androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040073 name = "Camera Lifecycle"
Eric Ng956c158a2019-11-06 13:14:55 -080074 publish = Publish.SNAPSHOT_AND_RELEASE
Franklin Wu0c88a3f2019-10-23 15:37:05 -070075 inceptionYear = "2019"
76 description = "Lifecycle components for the Jetpack Camera Library, a library providing a " +
77 "consistent and reliable camera foundation that enables great camera driven " +
78 "experiences across all of Android."
Jinseong Jeon999075e2023-08-22 00:40:11 -070079 metalavaK2UastEnabled = true
Franklin Wu0c88a3f2019-10-23 15:37:05 -070080}