1/* 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 */ 16import androidx.build.SoftwareType 17 18plugins { 19 id("AndroidXPlugin") 20 id("com.android.library") 21 id("org.jetbrains.kotlin.android") 22} 23 24dependencies { 25 api(libs.jspecify) 26 api(project(":camera:camera-core")) 27 api(project(":camera:camera-view")) 28 api("androidx.annotation:annotation:1.8.1") 29 api("com.google.mlkit:vision-interfaces:16.0.0") { 30 version { 31 prefer '16.0.0' 32 } 33 } 34 35 testImplementation(libs.mockitoCore4) 36 testImplementation(libs.testRunner) 37 testImplementation(libs.robolectric) 38 testImplementation(libs.kotlinStdlib) 39 testImplementation(libs.truth) 40 testImplementation(libs.testRules) 41 testImplementation(libs.testCore) 42 testImplementation(project(":camera:camera-core")) 43 testImplementation(project(":camera:camera-view")) 44 testImplementation(project(":camera:camera-testing")) 45} 46 47android { 48 compileSdk = 35 49 50 lint { 51 enable.add("CameraXQuirksClassDetector") 52 } 53 54 testOptions.unitTests.includeAndroidResources = true 55 namespace = "androidx.camera.mlkit.vision" 56} 57 58androidx { 59 name = "Camera MLKit Vision" 60 type = SoftwareType.PUBLISHED_LIBRARY 61 inceptionYear = "2022" 62 description = "MLKit vision components for the Jetpack Camera Library, a library providing a " + 63 "seamless integration that enables camera driven computer vision features " + 64 "across all of Android." 65} 66