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 | */ |
| 16 | import androidx.build.Publish |
| 17 | import androidx.build.RunApiTasks |
| 18 | |
| 19 | plugins { |
| 20 | id("AndroidXPlugin") |
| 21 | id("com.android.library") |
| 22 | id("kotlin-android") |
| 23 | } |
| 24 | |
| 25 | dependencies { |
| 26 | api(libs.androidx.annotation) |
| 27 | |
| 28 | testImplementation(libs.testRunner) |
| 29 | testImplementation(libs.robolectric) |
| 30 | testImplementation(libs.kotlinStdlib) |
| 31 | testImplementation(libs.truth) |
| 32 | testImplementation(libs.testRules) |
| 33 | testImplementation(libs.testCore) |
| 34 | } |
| 35 | |
| 36 | android { |
Xi Zhang | 79e7fa1 | 2024-04-29 09:41:52 -0700 | [diff] [blame] | 37 | lintOptions { |
| 38 | enable 'CameraXQuirksClassDetector' |
| 39 | } |
| 40 | |
| 41 | testOptions.unitTests.includeAndroidResources = true |
| 42 | namespace "androidx.camera.featurecombinationquery" |
| 43 | } |
| 44 | |
| 45 | androidx { |
| 46 | name = "Jetpack Camera Feature Combination Library" |
| 47 | publish = Publish.NONE |
| 48 | inceptionYear = "2024" |
| 49 | runApiTasks = new RunApiTasks.Yes() |
| 50 | description = "Camera feature combination components for the Jetpack Camera Library, a library " + |
| 51 | "providing a seamless experience for querying camera features across all of Android." |
| 52 | metalavaK2UastEnabled = true |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame] | 53 | legacyDisableKotlinStrictApiMode = true |
Xi Zhang | 79e7fa1 | 2024-04-29 09:41:52 -0700 | [diff] [blame] | 54 | } |