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 { |
| 37 | defaultConfig { |
| 38 | multiDexEnabled = true |
| 39 | } |
| 40 | |
| 41 | lintOptions { |
| 42 | enable 'CameraXQuirksClassDetector' |
| 43 | } |
| 44 | |
| 45 | testOptions.unitTests.includeAndroidResources = true |
| 46 | namespace "androidx.camera.featurecombinationquery" |
| 47 | } |
| 48 | |
| 49 | androidx { |
| 50 | name = "Jetpack Camera Feature Combination Library" |
| 51 | publish = Publish.NONE |
| 52 | inceptionYear = "2024" |
| 53 | runApiTasks = new RunApiTasks.Yes() |
| 54 | description = "Camera feature combination components for the Jetpack Camera Library, a library " + |
| 55 | "providing a seamless experience for querying camera features across all of Android." |
| 56 | metalavaK2UastEnabled = true |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame^] | 57 | legacyDisableKotlinStrictApiMode = true |
Xi Zhang | 79e7fa1 | 2024-04-29 09:41:52 -0700 | [diff] [blame] | 58 | } |