Trevor McGuire | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2020 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 | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 25 | |
Trevor McGuire | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 26 | plugins { |
| 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
| 29 | id("kotlin-android") |
Aurimas Liutikas | f95ab4d | 2024-04-24 23:19:40 +0000 | [diff] [blame] | 30 | id("com.google.devtools.ksp") |
Trevor McGuire | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 31 | } |
| 32 | |
Trevor McGuire | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 33 | dependencies { |
husaynhakeem | 3e6596c | 2021-04-30 10:48:01 -0700 | [diff] [blame] | 34 | implementation("androidx.core:core:1.3.2") |
Aurimas Liutikas | 7ce1fa5 | 2020-10-26 16:05:03 -0700 | [diff] [blame] | 35 | |
Paul Rohde | b6a86f7 | 2020-11-05 15:29:52 -0800 | [diff] [blame] | 36 | // Classes and types that are needed at compile & runtime |
Aurimas Liutikas | 96f0b30 | 2024-07-25 15:49:23 -0700 | [diff] [blame] | 37 | api("androidx.annotation:annotation:1.8.1") |
Trevor McGuire | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 38 | api(project(":camera:camera-core")) |
Paul Rohde | b6a86f7 | 2020-11-05 15:29:52 -0800 | [diff] [blame] | 39 | |
| 40 | // Classes and types that are only needed at runtime |
Ian Lake | 6b6bf16 | 2021-08-25 22:23:04 -0700 | [diff] [blame] | 41 | implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.3.1") |
Jasmine Chen | 1cbb710 | 2023-05-24 15:37:51 -0700 | [diff] [blame] | 42 | implementation(libs.atomicFu) |
| 43 | implementation(libs.dagger) |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 44 | implementation(libs.kotlinStdlib) |
Jasmine Chen | 1cbb710 | 2023-05-24 15:37:51 -0700 | [diff] [blame] | 45 | implementation(libs.kotlinCoroutinesAndroid) |
| 46 | implementation(project(":camera:camera-camera2-pipe")) |
WenHung_Teng | d0dfaa5 | 2022-06-02 21:41:11 +0800 | [diff] [blame] | 47 | implementation(project(":concurrent:concurrent-futures-ktx")) |
Trevor McGuire | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 48 | |
Aurimas Liutikas | f95ab4d | 2024-04-24 23:19:40 +0000 | [diff] [blame] | 49 | ksp(libs.daggerCompiler) |
Paul Rohde | b6a86f7 | 2020-11-05 15:29:52 -0800 | [diff] [blame] | 50 | |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 51 | testImplementation(libs.testCore) |
| 52 | testImplementation(libs.testRunner) |
| 53 | testImplementation(libs.junit) |
| 54 | testImplementation(libs.truth) |
Aurimas Liutikas | 759f968 | 2022-10-05 07:01:37 -0700 | [diff] [blame] | 55 | testImplementation(libs.mockitoCore4) |
Paul Rohde | 51d7c40 | 2023-01-13 16:30:15 -0800 | [diff] [blame] | 56 | testImplementation(libs.mockitoKotlin4) |
Aurimas Liutikas | 4e41da2 | 2023-12-13 15:38:28 -0800 | [diff] [blame] | 57 | testImplementation(libs.byteBuddy) |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 58 | testImplementation(libs.robolectric) |
| 59 | testImplementation(libs.kotlinCoroutinesTest) |
Tahsin Masrur | 8c23de1 | 2023-06-08 11:38:22 +0800 | [diff] [blame] | 60 | testImplementation(libs.kotlinTestJunit) |
Sushil Nath | 65f1fab | 2021-04-06 12:49:03 -0700 | [diff] [blame] | 61 | testImplementation(project(":camera:camera-camera2-pipe-testing")) |
WenHung_Teng | 32533ab | 2021-05-21 17:59:26 +0800 | [diff] [blame] | 62 | testImplementation(project(":camera:camera-testing")) |
| 63 | testImplementation(project(":internal-testutils-ktx")) |
Sushil Nath | 65f1fab | 2021-04-06 12:49:03 -0700 | [diff] [blame] | 64 | testImplementation(project(":internal-testutils-truth")) |
WenHung_Teng | 8fd4f19 | 2022-12-01 19:01:38 +0800 | [diff] [blame] | 65 | testImplementation("androidx.exifinterface:exifinterface:1.0.0") |
WenHung_Teng | d87b8b1 | 2021-12-03 16:12:13 +0800 | [diff] [blame] | 66 | testImplementation("androidx.lifecycle:lifecycle-runtime-testing:2.3.1") |
David Jia | f699e44 | 2022-09-13 15:11:27 -0700 | [diff] [blame] | 67 | testImplementation(project(":camera:camera-video")) |
Sushil Nath | 65f1fab | 2021-04-06 12:49:03 -0700 | [diff] [blame] | 68 | |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 69 | androidTestImplementation(libs.testExtJunit) |
Tahsin Masrur | 068199ff | 2023-06-01 12:20:32 +0800 | [diff] [blame] | 70 | androidTestImplementation(libs.testRules) |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 71 | androidTestImplementation(libs.testRunner) |
| 72 | androidTestImplementation(libs.kotlinCoroutinesAndroid) |
| 73 | androidTestImplementation(libs.kotlinStdlib) |
| 74 | androidTestImplementation(libs.truth) |
Jinseong Jeon | 89e0533 | 2024-07-04 18:35:02 -0700 | [diff] [blame] | 75 | androidTestImplementation("androidx.annotation:annotation-experimental:1.4.1") |
Trevor McGuire | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 76 | androidTestImplementation(project(":camera:camera-lifecycle")) |
Tahsin Masrur | 068199ff | 2023-06-01 12:20:32 +0800 | [diff] [blame] | 77 | androidTestImplementation(project(":camera:camera-testing")) { |
| 78 | // Ensure camera-testing does not pull in androidx.test dependencies |
| 79 | exclude(group:"androidx.test") |
| 80 | } |
WenHung_Teng | ab9be6f | 2023-01-18 14:49:46 +0800 | [diff] [blame] | 81 | androidTestImplementation(project(":camera:camera-video")) |
Trevor McGuire | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 82 | androidTestImplementation(project(":concurrent:concurrent-futures-ktx")) |
WenHung_Teng | e83e778 | 2021-08-09 11:28:24 +0800 | [diff] [blame] | 83 | androidTestImplementation(project(":internal-testutils-truth")) |
WenHung_Teng | bccb4a7 | 2022-08-29 21:14:32 +0800 | [diff] [blame] | 84 | androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0") |
Trevor McGuire | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 85 | } |
| 86 | |
| 87 | android { |
Aurimas Liutikas | 04bd506 | 2025-01-07 13:40:09 -0800 | [diff] [blame] | 88 | compileSdk = 35 |
CharcoalChen | af13cf57 | 2024-12-23 17:07:32 +0800 | [diff] [blame] | 89 | |
System Administrator | c4ab0a1 | 2022-04-13 12:05:20 -0700 | [diff] [blame] | 90 | lintOptions { |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 91 | enable("CameraXQuirksClassDetector") |
System Administrator | c4ab0a1 | 2022-04-13 12:05:20 -0700 | [diff] [blame] | 92 | } |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 93 | namespace = "androidx.camera.camera2.pipe.integration" |
Trevor McGuire | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 94 | } |
| 95 | |
Aurimas Liutikas | 634a5bb | 2023-05-26 13:41:02 -0700 | [diff] [blame] | 96 | tasks.withType(Test).configureEach { test -> |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 97 | test.maxParallelForks = 2 |
Aurimas Liutikas | 634a5bb | 2023-05-26 13:41:02 -0700 | [diff] [blame] | 98 | } |
| 99 | |
Aurimas Liutikas | f95ab4d | 2024-04-24 23:19:40 +0000 | [diff] [blame] | 100 | ksp { |
| 101 | arg("dagger.fastInit", "enabled") |
| 102 | arg("dagger.fullBindingGraphValidation", "ERROR") |
Paul Rohde | b6a86f7 | 2020-11-05 15:29:52 -0800 | [diff] [blame] | 103 | } |
| 104 | |
Trevor McGuire | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 105 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 106 | name = "Camera2 Pipe Integration" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 107 | type = LibraryType.PUBLISHED_LIBRARY |
Trevor McGuire | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 108 | inceptionYear = "2020" |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 109 | description = "A Camera2 Pipe implementation of CameraX, a library providing a consistent " + |
| 110 | "and reliable camera foundation that enables great camera driven experiences across " + |
| 111 | "all of Android." |
Julia McClellan | f37eb98 | 2024-02-02 10:43:51 -0500 | [diff] [blame] | 112 | doNotDocumentReason = "Not shipped externally" |
Trevor McGuire | 4f33bce | 2020-05-05 16:15:20 -0700 | [diff] [blame] | 113 | } |