kailianc | 987074a | 2022-01-06 21:06:49 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 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 |
kailianc | 987074a | 2022-01-06 21:06:49 -0800 | [diff] [blame] | 25 | |
| 26 | plugins { |
| 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
| 29 | id("kotlin-android") |
| 30 | } |
| 31 | |
| 32 | dependencies { |
| 33 | api("androidx.annotation:annotation:1.2.0") |
Kailiang Chen | 566c58d | 2023-12-10 16:35:00 -0800 | [diff] [blame] | 34 | api(project(':camera:camera-viewfinder-core')) |
natnaelbelay | a817dd9 | 2024-01-17 10:30:59 -0500 | [diff] [blame] | 35 | implementation("androidx.annotation:annotation-experimental:1.4.0") |
kailianc | 987074a | 2022-01-06 21:06:49 -0800 | [diff] [blame] | 36 | implementation(libs.guavaListenableFuture) |
Julie Wu | 5f3c6c6 | 2023-03-15 14:14:41 +0000 | [diff] [blame] | 37 | implementation("androidx.core:core:1.7.0") |
| 38 | implementation("androidx.concurrent:concurrent-futures:1.1.0") |
Tahsin Masrur | 068199ff | 2023-06-01 12:20:32 +0800 | [diff] [blame] | 39 | implementation("androidx.concurrent:concurrent-futures-ktx:1.1.0") |
kailianc | 987074a | 2022-01-06 21:06:49 -0800 | [diff] [blame] | 40 | implementation(libs.autoValueAnnotations) |
| 41 | implementation("androidx.appcompat:appcompat:1.1.0") |
kailianc | 52f9121 | 2022-01-17 23:10:00 -0800 | [diff] [blame] | 42 | implementation("androidx.test.espresso:espresso-idling-resource:3.1.0") |
Julie Wu | 5f3c6c6 | 2023-03-15 14:14:41 +0000 | [diff] [blame] | 43 | implementation(libs.kotlinCoroutinesCore) |
| 44 | implementation(libs.kotlinCoroutinesAndroid) |
kailianc | 52f9121 | 2022-01-17 23:10:00 -0800 | [diff] [blame] | 45 | |
kailianc | 987074a | 2022-01-06 21:06:49 -0800 | [diff] [blame] | 46 | annotationProcessor(libs.autoValue) |
kailianc | 52f9121 | 2022-01-17 23:10:00 -0800 | [diff] [blame] | 47 | |
| 48 | testImplementation(libs.testRunner) |
Aurimas Liutikas | 759f968 | 2022-10-05 07:01:37 -0700 | [diff] [blame] | 49 | testImplementation(libs.mockitoCore4) |
kailianc | 52f9121 | 2022-01-17 23:10:00 -0800 | [diff] [blame] | 50 | testImplementation(libs.robolectric) |
| 51 | testImplementation(libs.kotlinStdlib) |
| 52 | testImplementation(libs.truth) |
| 53 | testImplementation(libs.testRules) |
| 54 | testImplementation(libs.testCore) |
| 55 | |
Charcoal Chen | 704df96 | 2022-09-30 08:44:46 +0000 | [diff] [blame] | 56 | androidTestImplementation(libs.mockitoCore) |
kailianc | 52f9121 | 2022-01-17 23:10:00 -0800 | [diff] [blame] | 57 | androidTestImplementation(libs.espressoCore) |
| 58 | androidTestImplementation(libs.testExtJunit) |
| 59 | androidTestImplementation(libs.testCore) |
| 60 | androidTestImplementation(libs.testRunner) |
| 61 | androidTestImplementation(libs.testRules) |
| 62 | androidTestImplementation(libs.testUiautomator) |
| 63 | androidTestImplementation(libs.kotlinStdlib) |
| 64 | androidTestImplementation(libs.truth) |
Charcoal Chen | 704df96 | 2022-09-30 08:44:46 +0000 | [diff] [blame] | 65 | androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) // DexMaker has it's own MockMaker |
kailianc | 52f9121 | 2022-01-17 23:10:00 -0800 | [diff] [blame] | 66 | androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) // DexMaker has it's own MockMaker |
kailianc | 987074a | 2022-01-06 21:06:49 -0800 | [diff] [blame] | 67 | } |
| 68 | |
| 69 | android { |
System Administrator | c4ab0a1 | 2022-04-13 12:05:20 -0700 | [diff] [blame] | 70 | lintOptions { |
| 71 | enable 'CameraXQuirksClassDetector' |
| 72 | } |
| 73 | |
kailianc | 987074a | 2022-01-06 21:06:49 -0800 | [diff] [blame] | 74 | testOptions.unitTests.includeAndroidResources = true |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 75 | namespace "androidx.camera.viewfinder" |
kailianc | 1eb6c52 | 2022-03-14 11:19:50 -0700 | [diff] [blame] | 76 | lintOptions { |
| 77 | enable 'CameraXQuirksClassDetector' |
| 78 | } |
kailianc | 987074a | 2022-01-06 21:06:49 -0800 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 82 | name = "Camera ViewFinder" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 83 | type = LibraryType.PUBLISHED_LIBRARY |
kailianc | 987074a | 2022-01-06 21:06:49 -0800 | [diff] [blame] | 84 | inceptionYear = "2022" |
kailianc | b222682 | 2022-03-04 13:46:31 -0800 | [diff] [blame] | 85 | description = "Standalone Viewfinder for Camera2 and CameraX" |
Jinseong Jeon | 999075e | 2023-08-22 00:40:11 -0700 | [diff] [blame] | 86 | metalavaK2UastEnabled = true |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame] | 87 | legacyDisableKotlinStrictApiMode = true |
kailianc | 987074a | 2022-01-06 21:06:49 -0800 | [diff] [blame] | 88 | } |