Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [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 |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 25 | |
| 26 | plugins { |
Wenhung Teng | 73b1dbd | 2019-04-08 09:11:18 -0700 | [diff] [blame] | 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
Scott Nien | 776f499 | 2020-05-12 14:20:09 +0800 | [diff] [blame] | 29 | id("kotlin-android") |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | dependencies { |
Julia McClellan | a62b2ac | 2024-12-07 11:57:25 -0500 | [diff] [blame] | 33 | api(libs.jspecify) |
Aurimas Liutikas | 827a1f2 | 2019-07-12 16:29:28 -0700 | [diff] [blame] | 34 | api("androidx.lifecycle:lifecycle-common:2.0.0") |
Aurimas Liutikas | 96f0b30 | 2024-07-25 15:49:23 -0700 | [diff] [blame] | 35 | api("androidx.annotation:annotation:1.8.1") |
Charcoal Chen | c1fc6ed | 2022-01-04 10:22:37 +0800 | [diff] [blame] | 36 | api(project(":camera:camera-core")) |
mingdatsai | ecb2223 | 2022-03-03 12:11:13 +0800 | [diff] [blame] | 37 | api(project(":camera:camera-video")) |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 38 | |
Charcoal Chen | c1fc6ed | 2022-01-04 10:22:37 +0800 | [diff] [blame] | 39 | implementation(project(":camera:camera-lifecycle")) |
Jinseong Jeon | 89e0533 | 2024-07-04 18:35:02 -0700 | [diff] [blame] | 40 | implementation("androidx.annotation:annotation-experimental:1.4.1") |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 41 | implementation(libs.guavaListenableFuture) |
husaynhakeem | 79dfb2c | 2021-05-07 09:49:18 -0700 | [diff] [blame] | 42 | implementation("androidx.core:core:1.3.2") |
Xi Zhang | e0a6f68 | 2019-09-17 15:56:24 +0800 | [diff] [blame] | 43 | implementation("androidx.concurrent:concurrent-futures:1.0.0") |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 44 | implementation(libs.autoValueAnnotations) |
TY Chang | 15ef1c2 | 2020-11-20 15:48:43 +0800 | [diff] [blame] | 45 | implementation("androidx.appcompat:appcompat:1.1.0") |
TY Chang | 15ef1c2 | 2020-11-20 15:48:43 +0800 | [diff] [blame] | 46 | |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 47 | annotationProcessor(libs.autoValue) |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 48 | |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 49 | testImplementation(libs.testRunner) |
Aurimas Liutikas | 759f968 | 2022-10-05 07:01:37 -0700 | [diff] [blame] | 50 | testImplementation(libs.mockitoCore4) |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 51 | testImplementation(libs.robolectric) |
| 52 | testImplementation(libs.kotlinStdlib) |
| 53 | testImplementation(libs.truth) |
| 54 | testImplementation(libs.testRules) |
| 55 | testImplementation(libs.testCore) |
Charcoal Chen | c1fc6ed | 2022-01-04 10:22:37 +0800 | [diff] [blame] | 56 | testImplementation(project(":camera:camera-camera2")) |
| 57 | testImplementation(project(":camera:camera-testing")) |
husaynhakeem | b3b0e53 | 2020-02-06 12:46:33 -0800 | [diff] [blame] | 58 | |
Charcoal Chen | 704df96 | 2022-09-30 08:44:46 +0000 | [diff] [blame] | 59 | androidTestImplementation(libs.mockitoCore) |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 60 | 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 Chen | c1fc6ed | 2022-01-04 10:22:37 +0800 | [diff] [blame] | 67 | androidTestImplementation(project(":camera:camera-camera2")) |
Tahsin Masrur | 068199ff | 2023-06-01 12:20:32 +0800 | [diff] [blame] | 68 | androidTestImplementation(project(":camera:camera-testing")) { |
| 69 | // Ensure camera-testing does not pull in androidx.test dependencies |
| 70 | exclude(group:"androidx.test") |
| 71 | } |
David Jia | 1cd0129 | 2022-08-16 13:06:28 -0700 | [diff] [blame] | 72 | androidTestImplementation(project(":camera:camera-camera2-pipe-integration")) |
mingdatsai | ecb2223 | 2022-03-03 12:11:13 +0800 | [diff] [blame] | 73 | androidTestImplementation(project(":internal-testutils-truth")) |
Aurimas Liutikas | 1a31ba6 | 2024-08-30 12:49:00 -0700 | [diff] [blame] | 74 | androidTestImplementation(libs.mockitoCore) |
| 75 | androidTestImplementation(libs.dexmakerMockito) |
WenHung_Teng | b72a4e0 | 2022-08-10 16:48:06 +0800 | [diff] [blame] | 76 | androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0") |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 77 | } |
| 78 | android { |
Aurimas Liutikas | 04bd506 | 2025-01-07 13:40:09 -0800 | [diff] [blame] | 79 | compileSdk = 35 |
CharcoalChen | af13cf57 | 2024-12-23 17:07:32 +0800 | [diff] [blame] | 80 | |
System Administrator | c4ab0a1 | 2022-04-13 12:05:20 -0700 | [diff] [blame] | 81 | lintOptions { |
| 82 | enable 'CameraXQuirksClassDetector' |
| 83 | } |
| 84 | |
husaynhakeem | 3dafad2 | 2020-02-06 12:52:11 -0800 | [diff] [blame] | 85 | testOptions.unitTests.includeAndroidResources = true |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 86 | namespace = "androidx.camera.view" |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 87 | } |
David M. Chen | 389eda0 | 2019-04-01 16:32:06 -0700 | [diff] [blame] | 88 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 89 | name = "Camera View" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 90 | type = LibraryType.PUBLISHED_LIBRARY |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 91 | 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 McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 95 | } |