[go: nahoru, domu]

blob: 2f09630753c7b9d589ab5ba8d6f88acf45330d43 [file] [log] [blame]
charcoalchen59ea07d2019-03-06 18:00:24 +08001/*
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 Songee0da742024-01-03 14:08:46 -080017/**
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 Ismail86e66062024-05-03 16:10:50 +010024import androidx.build.LibraryType
charcoalchen59ea07d2019-03-06 18:00:24 +080025
26plugins {
Wenhung Teng73b1dbd2019-04-08 09:11:18 -070027 id("AndroidXPlugin")
28 id("com.android.library")
Franklin Wu4c8aa952020-07-22 18:12:07 -070029 id("kotlin-android")
charcoalchen59ea07d2019-03-06 18:00:24 +080030}
31
charcoalchen1f0c4ca2019-02-27 22:19:29 +080032dependencies {
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070033 api(libs.guavaListenableFuture)
charcoalchen1f0c4ca2019-02-27 22:19:29 +080034 api(project(":camera:camera-core"))
charcoalchen1f0c4ca2019-02-27 22:19:29 +080035 implementation("androidx.core:core:1.0.0")
Ian Lake0e0059152019-09-27 14:43:23 -070036 implementation("androidx.concurrent:concurrent-futures:1.0.0")
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070037 implementation(libs.autoValueAnnotations)
38 annotationProcessor(libs.autoValue)
Franklin Wu30c76f62019-04-15 16:03:23 -070039
Alan Viverettec2ea01c2019-05-22 15:39:53 -040040 compileOnly(project(":camera:camera-extensions-stub"))
WenHung_Tenge7fca752019-05-28 11:03:23 +080041
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070042 testImplementation(libs.junit)
Aurimas Liutikas759f9682022-10-05 07:01:37 -070043 testImplementation(libs.mockitoCore4)
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070044 testImplementation(libs.robolectric)
45 testImplementation(libs.truth)
Jim Sproch9e38b4f2021-01-06 14:21:06 -080046 testImplementation(project(":camera:camera-testing"))
WenHung_Teng1e28d762019-05-31 21:48:21 +080047 testImplementation(project(":camera:camera-extensions-stub"))
Scott Nien4ea337b2022-11-09 22:57:43 +080048 testImplementation(libs.testCore)
Tahsin Masrur1d71e392023-05-23 17:03:33 +080049 testImplementation(libs.testRunner)
Scott Nienebd661d2023-12-29 11:10:11 +080050 testImplementation(libs.truth)
WenHung_Tengc55475c2019-06-07 00:10:20 +080051
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070052 androidTestImplementation(libs.testExtJunit)
53 androidTestImplementation(libs.testRunner)
54 androidTestImplementation(libs.testCore)
55 androidTestImplementation(libs.testRules)
56 androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) // DexMaker has its own MockMaker
Charcoal Chen14ef7192021-07-07 11:42:53 +080057 androidTestImplementation(libs.kotlinCoroutinesAndroid)
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070058 androidTestImplementation(libs.kotlinStdlib)
Charcoal Chen704df962022-09-30 08:44:46 +000059 androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) // DexMaker has its own MockMaker
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070060 androidTestImplementation(libs.truth)
Scott Nien97378a1f2023-12-08 18:58:40 +080061 androidTestImplementation(project(":camera:camera-camera2"))
Jasmine Chenc4639472023-12-19 16:49:30 -080062 androidTestImplementation(project(":camera:camera-camera2-pipe-integration"))
Charcoal Chen80e42c92021-04-29 15:45:05 +080063 androidTestImplementation(project(":camera:camera-lifecycle"))
Tahsin Masrur068199ff2023-06-01 12:20:32 +080064 androidTestImplementation(project(":camera:camera-testing")) {
65 // Ensure camera-testing does not pull in androidx.test dependencies
66 exclude(group:"androidx.test")
67 }
Charcoal Chenf5e6ce22021-11-12 09:46:44 +080068 androidTestImplementation(project(":camera:camera-video"))
Franklin Wu4c8aa952020-07-22 18:12:07 -070069 androidTestImplementation(project(":internal-testutils-truth"))
Alan Viverette7091d832021-07-14 17:04:06 -040070 androidTestImplementation(project(":camera:camera-testlib-extensions"))
Trevor McGuireb3841da2022-09-02 18:13:30 +000071 androidTestImplementation("androidx.concurrent:concurrent-futures-ktx:1.1.0")
WenHung_Tengc55475c2019-06-07 00:10:20 +080072 // To use the testlib to have the implementation of the extensions-stub interface.
charcoalchen1f0c4ca2019-02-27 22:19:29 +080073}
74
charcoalchen59ea07d2019-03-06 18:00:24 +080075android {
Omar Ismail72444772024-05-14 14:55:28 +010076 buildTypes.configureEach {
Charcoal Chenb0ebb202021-09-29 14:32:40 +080077 consumerProguardFiles "proguard-rules.pro"
78 }
79
System Administratorc4ab0a12022-04-13 12:05:20 -070080 lintOptions {
81 enable 'CameraXQuirksClassDetector'
82 }
83
Franklin Wu52e8d412019-08-28 12:16:11 -070084 // Use Robolectric 4.+
85 testOptions.unitTests.includeAndroidResources = true
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070086 namespace "androidx.camera.extensions"
WenHung_Tenge7fca752019-05-28 11:03:23 +080087}
88
David M. Chen389eda02019-04-01 16:32:06 -070089androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040090 name = "Camera Extensions"
Omar Ismail86e66062024-05-03 16:10:50 +010091 type = LibraryType.PUBLISHED_LIBRARY
charcoalchen59ea07d2019-03-06 18:00:24 +080092 inceptionYear = "2019"
93 description = "OEM Extensions for the Jetpack Camera Library, a library providing interfaces" +
94 " to integrate with OEM specific camera features."
Jinseong Jeon999075e2023-08-22 00:40:11 -070095 metalavaK2UastEnabled = true
Aurimas Liutikas5c5419a2024-05-29 15:26:58 -070096 legacyDisableKotlinStrictApiMode = true
charcoalchen59ea07d2019-03-06 18:00:24 +080097}