[go: nahoru, domu]

blob: 5eae11a08363545141829040a92d4a4523f61835 [file] [log] [blame]
Xi Zhang10e2bb72022-05-21 16:03:14 -07001/*
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 Ismail86e66062024-05-03 16:10:50 +010016import androidx.build.LibraryType
Xi Zhang10e2bb72022-05-21 16:03:14 -070017
18plugins {
19 id("AndroidXPlugin")
20 id("com.android.library")
21 id("kotlin-android")
22}
23dependencies {
24 api(project(":camera:camera-core"))
Xi Zhang734e9352023-08-11 09:48:00 -070025 implementation(libs.autoValueAnnotations)
Xi Zhang0e560c02023-09-05 09:53:55 -070026 implementation("androidx.concurrent:concurrent-futures:1.0.0")
Xi Zhang734e9352023-08-11 09:48:00 -070027
28 annotationProcessor(libs.autoValue)
Xi Zhang158789d2023-08-15 12:55:44 -070029
Xi Zhangd14ec1d2023-08-22 13:49:25 -070030 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 Zhang158789d2023-08-15 12:55:44 -070037 androidTestImplementation(libs.testExtJunit)
38 androidTestImplementation(libs.testCore)
39 androidTestImplementation(libs.testRunner)
40 androidTestImplementation(libs.testRules)
41 androidTestImplementation(libs.truth)
Xi Zhangbf151032023-08-23 20:37:49 +000042 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 Zhang10e2bb72022-05-21 16:03:14 -070049}
50android {
Xi Zhang10e2bb72022-05-21 16:03:14 -070051 testOptions.unitTests.includeAndroidResources = true
Aurimas Liutikasc2e42f32022-06-10 15:56:37 -070052 namespace "androidx.camera.effects"
Xi Zhang10e2bb72022-05-21 16:03:14 -070053}
54androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040055 name = "Camera Effects"
Omar Ismail86e66062024-05-03 16:10:50 +010056 type = LibraryType.PUBLISHED_LIBRARY
Xi Zhangad443222023-12-01 12:44:51 -080057 inceptionYear = "2023"
Xi Zhang10e2bb72022-05-21 16:03:14 -070058 description = "Camera effects components for the Jetpack Camera Library, a library providing " +
Xi Zhangad443222023-12-01 12:44:51 -080059 "camera post-processing features such as drawing overlay with the CameraX library."
Jinseong Jeon999075e2023-08-22 00:40:11 -070060 metalavaK2UastEnabled = true
Aurimas Liutikas5c5419a2024-05-29 15:26:58 -070061 legacyDisableKotlinStrictApiMode = true
Xi Zhang10e2bb72022-05-21 16:03:14 -070062}