Xi Zhang | 10e2bb7 | 2022-05-21 16:03:14 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 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 | */ |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 16 | import androidx.build.LibraryType |
Xi Zhang | 10e2bb7 | 2022-05-21 16:03:14 -0700 | [diff] [blame] | 17 | |
| 18 | plugins { |
| 19 | id("AndroidXPlugin") |
| 20 | id("com.android.library") |
| 21 | id("kotlin-android") |
| 22 | } |
| 23 | dependencies { |
| 24 | api(project(":camera:camera-core")) |
Xi Zhang | 734e935 | 2023-08-11 09:48:00 -0700 | [diff] [blame] | 25 | implementation(libs.autoValueAnnotations) |
Xi Zhang | 0e560c0 | 2023-09-05 09:53:55 -0700 | [diff] [blame] | 26 | implementation("androidx.concurrent:concurrent-futures:1.0.0") |
Xi Zhang | 734e935 | 2023-08-11 09:48:00 -0700 | [diff] [blame] | 27 | |
| 28 | annotationProcessor(libs.autoValue) |
Xi Zhang | 158789d | 2023-08-15 12:55:44 -0700 | [diff] [blame] | 29 | |
Xi Zhang | d14ec1d | 2023-08-22 13:49:25 -0700 | [diff] [blame] | 30 | testImplementation(libs.robolectric) |
| 31 | testImplementation(libs.testRunner) |
| 32 | testImplementation(libs.kotlinStdlib) |
| 33 | testImplementation(libs.truth) |
| 34 | testImplementation(libs.testRules) |
| 35 | testImplementation(libs.testCore) |
| 36 | |
Xi Zhang | 158789d | 2023-08-15 12:55:44 -0700 | [diff] [blame] | 37 | androidTestImplementation(libs.testExtJunit) |
| 38 | androidTestImplementation(libs.testCore) |
| 39 | androidTestImplementation(libs.testRunner) |
| 40 | androidTestImplementation(libs.testRules) |
| 41 | androidTestImplementation(libs.truth) |
Xi Zhang | bf15103 | 2023-08-23 20:37:49 +0000 | [diff] [blame] | 42 | androidTestImplementation(project(":camera:camera-testing")) { |
| 43 | // Ensure camera-testing does not pull in androidx.test dependencies |
| 44 | exclude(group:"androidx.test") |
| 45 | } |
| 46 | androidTestImplementation(libs.kotlinStdlib) |
| 47 | androidTestImplementation(libs.kotlinCoroutinesAndroid) |
| 48 | androidTestImplementation("androidx.concurrent:concurrent-futures-ktx:1.1.0") |
Xi Zhang | 10e2bb7 | 2022-05-21 16:03:14 -0700 | [diff] [blame] | 49 | } |
| 50 | android { |
Xi Zhang | 10e2bb7 | 2022-05-21 16:03:14 -0700 | [diff] [blame] | 51 | testOptions.unitTests.includeAndroidResources = true |
Aurimas Liutikas | c2e42f3 | 2022-06-10 15:56:37 -0700 | [diff] [blame] | 52 | namespace "androidx.camera.effects" |
Xi Zhang | 10e2bb7 | 2022-05-21 16:03:14 -0700 | [diff] [blame] | 53 | } |
| 54 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 55 | name = "Camera Effects" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 56 | type = LibraryType.PUBLISHED_LIBRARY |
Xi Zhang | ad44322 | 2023-12-01 12:44:51 -0800 | [diff] [blame] | 57 | inceptionYear = "2023" |
Xi Zhang | 10e2bb7 | 2022-05-21 16:03:14 -0700 | [diff] [blame] | 58 | description = "Camera effects components for the Jetpack Camera Library, a library providing " + |
Xi Zhang | ad44322 | 2023-12-01 12:44:51 -0800 | [diff] [blame] | 59 | "camera post-processing features such as drawing overlay with the CameraX library." |
Jinseong Jeon | 999075e | 2023-08-22 00:40:11 -0700 | [diff] [blame] | 60 | metalavaK2UastEnabled = true |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame] | 61 | legacyDisableKotlinStrictApiMode = true |
Xi Zhang | 10e2bb7 | 2022-05-21 16:03:14 -0700 | [diff] [blame] | 62 | } |