Xi Zhang | 79e7fa1 | 2024-04-29 09:41:52 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2024 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 | */ |
Xi Zhang | c42b053 | 2024-09-22 06:37:44 -0700 | [diff] [blame] | 16 | |
| 17 | import androidx.build.LibraryType |
Xi Zhang | 79e7fa1 | 2024-04-29 09:41:52 -0700 | [diff] [blame] | 18 | |
| 19 | plugins { |
| 20 | id("AndroidXPlugin") |
| 21 | id("com.android.library") |
| 22 | id("kotlin-android") |
| 23 | } |
| 24 | |
| 25 | dependencies { |
Julia McClellan | ba7b6b9 | 2024-12-06 13:47:16 -0500 | [diff] [blame] | 26 | api(libs.jspecify) |
Xi Zhang | 79e7fa1 | 2024-04-29 09:41:52 -0700 | [diff] [blame] | 27 | api(libs.androidx.annotation) |
Xi Zhang | c57edc5 | 2024-05-15 16:17:50 -0700 | [diff] [blame] | 28 | implementation(libs.autoValueAnnotations) |
Xi Zhang | 79e7fa1 | 2024-04-29 09:41:52 -0700 | [diff] [blame] | 29 | |
| 30 | testImplementation(libs.testRunner) |
| 31 | testImplementation(libs.robolectric) |
| 32 | testImplementation(libs.kotlinStdlib) |
| 33 | testImplementation(libs.truth) |
| 34 | testImplementation(libs.testRules) |
| 35 | testImplementation(libs.testCore) |
Xi Zhang | c57edc5 | 2024-05-15 16:17:50 -0700 | [diff] [blame] | 36 | |
| 37 | annotationProcessor(libs.autoValue) |
Xi Zhang | 79e7fa1 | 2024-04-29 09:41:52 -0700 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | android { |
Xi Zhang | 79e7fa1 | 2024-04-29 09:41:52 -0700 | [diff] [blame] | 41 | lintOptions { |
| 42 | enable 'CameraXQuirksClassDetector' |
| 43 | } |
| 44 | |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 45 | compileSdk = 35 |
Xi Zhang | 79e7fa1 | 2024-04-29 09:41:52 -0700 | [diff] [blame] | 46 | testOptions.unitTests.includeAndroidResources = true |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 47 | namespace = "androidx.camera.featurecombinationquery" |
Xi Zhang | 79e7fa1 | 2024-04-29 09:41:52 -0700 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | androidx { |
Xi Zhang | c42b053 | 2024-09-22 06:37:44 -0700 | [diff] [blame] | 51 | name = "Camera Feature Combination Query" |
| 52 | type = LibraryType.PUBLISHED_LIBRARY |
Xi Zhang | 79e7fa1 | 2024-04-29 09:41:52 -0700 | [diff] [blame] | 53 | inceptionYear = "2024" |
Xi Zhang | c42b053 | 2024-09-22 06:37:44 -0700 | [diff] [blame] | 54 | description = "Camera feature combination components for the Camera Library, a library " + |
Xi Zhang | 79e7fa1 | 2024-04-29 09:41:52 -0700 | [diff] [blame] | 55 | "providing a seamless experience for querying camera features across all of Android." |
Julia McClellan | 81a46bc | 2024-12-03 14:42:36 -0500 | [diff] [blame] | 56 | } |