blob: 4996ee8d8dde17528062ca1385272218bcf098f8 [file] [log] [blame]
Trevor McGuire89ca96a2019-02-19 11:38:44 -08001/*
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
Trevor McGuire89ca96a2019-02-19 11:38:44 -080025
26plugins {
Wenhung Teng73b1dbd2019-04-08 09:11:18 -070027 id("AndroidXPlugin")
28 id("com.android.library")
Scott Nien776f4992020-05-12 14:20:09 +080029 id("kotlin-android")
Trevor McGuire89ca96a2019-02-19 11:38:44 -080030}
31
32dependencies {
Julia McClellana62b2ac2024-12-07 11:57:25 -050033 api(libs.jspecify)
Aurimas Liutikas827a1f22019-07-12 16:29:28 -070034 api("androidx.lifecycle:lifecycle-common:2.0.0")
Aurimas Liutikas96f0b302024-07-25 15:49:23 -070035 api("androidx.annotation:annotation:1.8.1")
Charcoal Chenc1fc6ed2022-01-04 10:22:37 +080036 api(project(":camera:camera-core"))
mingdatsaiecb22232022-03-03 12:11:13 +080037 api(project(":camera:camera-video"))
Omar Ismail86e66062024-05-03 16:10:50 +010038
Charcoal Chenc1fc6ed2022-01-04 10:22:37 +080039 implementation(project(":camera:camera-lifecycle"))
Jinseong Jeon89e05332024-07-04 18:35:02 -070040 implementation("androidx.annotation:annotation-experimental:1.4.1")
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070041 implementation(libs.guavaListenableFuture)
husaynhakeem79dfb2c2021-05-07 09:49:18 -070042 implementation("androidx.core:core:1.3.2")
Xi Zhange0a6f682019-09-17 15:56:24 +080043 implementation("androidx.concurrent:concurrent-futures:1.0.0")
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070044 implementation(libs.autoValueAnnotations)
TY Chang15ef1c22020-11-20 15:48:43 +080045 implementation("androidx.appcompat:appcompat:1.1.0")
TY Chang15ef1c22020-11-20 15:48:43 +080046
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070047 annotationProcessor(libs.autoValue)
Trevor McGuire89ca96a2019-02-19 11:38:44 -080048
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070049 testImplementation(libs.testRunner)
Aurimas Liutikas759f9682022-10-05 07:01:37 -070050 testImplementation(libs.mockitoCore4)
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070051 testImplementation(libs.robolectric)
52 testImplementation(libs.kotlinStdlib)
53 testImplementation(libs.truth)
54 testImplementation(libs.testRules)
55 testImplementation(libs.testCore)
Charcoal Chenc1fc6ed2022-01-04 10:22:37 +080056 testImplementation(project(":camera:camera-camera2"))
57 testImplementation(project(":camera:camera-testing"))
husaynhakeemb3b0e532020-02-06 12:46:33 -080058
Charcoal Chen704df962022-09-30 08:44:46 +000059 androidTestImplementation(libs.mockitoCore)
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070060 androidTestImplementation(libs.testExtJunit)
61 androidTestImplementation(libs.testCore)
62 androidTestImplementation(libs.testRunner)
63 androidTestImplementation(libs.testRules)
64 androidTestImplementation(libs.testUiautomator)
65 androidTestImplementation(libs.kotlinStdlib)
66 androidTestImplementation(libs.truth)
Charcoal Chenc1fc6ed2022-01-04 10:22:37 +080067 androidTestImplementation(project(":camera:camera-camera2"))
Tahsin Masrur068199ff2023-06-01 12:20:32 +080068 androidTestImplementation(project(":camera:camera-testing")) {
69 // Ensure camera-testing does not pull in androidx.test dependencies
70 exclude(group:"androidx.test")
71 }
David Jia1cd01292022-08-16 13:06:28 -070072 androidTestImplementation(project(":camera:camera-camera2-pipe-integration"))
mingdatsaiecb22232022-03-03 12:11:13 +080073 androidTestImplementation(project(":internal-testutils-truth"))
Aurimas Liutikas1a31ba62024-08-30 12:49:00 -070074 androidTestImplementation(libs.mockitoCore)
75 androidTestImplementation(libs.dexmakerMockito)
WenHung_Tengb72a4e02022-08-10 16:48:06 +080076 androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0")
Trevor McGuire89ca96a2019-02-19 11:38:44 -080077}
78android {
Aurimas Liutikas04bd5062025-01-07 13:40:09 -080079 compileSdk = 35
CharcoalChenaf13cf572024-12-23 17:07:32 +080080
System Administratorc4ab0a12022-04-13 12:05:20 -070081 lintOptions {
82 enable 'CameraXQuirksClassDetector'
83 }
84
husaynhakeem3dafad22020-02-06 12:52:11 -080085 testOptions.unitTests.includeAndroidResources = true
Aurimas Liutikas77952822024-12-04 18:00:17 -080086 namespace = "androidx.camera.view"
Trevor McGuire89ca96a2019-02-19 11:38:44 -080087}
David M. Chen389eda02019-04-01 16:32:06 -070088androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040089 name = "Camera View"
Omar Ismail86e66062024-05-03 16:10:50 +010090 type = LibraryType.PUBLISHED_LIBRARY
Trevor McGuire89ca96a2019-02-19 11:38:44 -080091 inceptionYear = "2019"
92 description = "UI tools for the Jetpack Camera Library, a library providing a consistent and " +
93 "reliable camera foundation that enables great camera driven experiences across all " +
94 "of Android."
Trevor McGuire89ca96a2019-02-19 11:38:44 -080095}