Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 1 | /* |
| 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 | |
TY Chang | 15ef1c2 | 2020-11-20 15:48:43 +0800 | [diff] [blame] | 17 | |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 18 | import androidx.build.Publish |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 19 | |
| 20 | plugins { |
Wenhung Teng | 73b1dbd | 2019-04-08 09:11:18 -0700 | [diff] [blame] | 21 | id("AndroidXPlugin") |
| 22 | id("com.android.library") |
Scott Nien | 776f499 | 2020-05-12 14:20:09 +0800 | [diff] [blame] | 23 | id("kotlin-android") |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | dependencies { |
Aurimas Liutikas | 827a1f2 | 2019-07-12 16:29:28 -0700 | [diff] [blame] | 27 | api("androidx.lifecycle:lifecycle-common:2.0.0") |
leo huang | 39b7314 | 2021-05-18 15:14:24 +0800 | [diff] [blame] | 28 | api("androidx.annotation:annotation:1.2.0") |
Charcoal Chen | c1fc6ed | 2022-01-04 10:22:37 +0800 | [diff] [blame] | 29 | api(project(":camera:camera-core")) |
| 30 | implementation(project(":camera:camera-lifecycle")) |
TY Chang | 15ef1c2 | 2020-11-20 15:48:43 +0800 | [diff] [blame] | 31 | implementation("androidx.annotation:annotation-experimental:1.1.0-rc01") |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 32 | implementation(libs.guavaListenableFuture) |
husaynhakeem | 79dfb2c | 2021-05-07 09:49:18 -0700 | [diff] [blame] | 33 | implementation("androidx.core:core:1.3.2") |
Xi Zhang | e0a6f68 | 2019-09-17 15:56:24 +0800 | [diff] [blame] | 34 | implementation("androidx.concurrent:concurrent-futures:1.0.0") |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 35 | implementation(libs.autoValueAnnotations) |
TY Chang | 15ef1c2 | 2020-11-20 15:48:43 +0800 | [diff] [blame] | 36 | implementation("androidx.appcompat:appcompat:1.1.0") |
| 37 | // Added for annotation-experimental |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 38 | compileOnly(libs.kotlinStdlib) |
TY Chang | 15ef1c2 | 2020-11-20 15:48:43 +0800 | [diff] [blame] | 39 | |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 40 | annotationProcessor(libs.autoValue) |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 41 | |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 42 | testImplementation(libs.testRunner) |
| 43 | testImplementation(libs.mockitoCore) |
| 44 | testImplementation(libs.robolectric) |
| 45 | testImplementation(libs.kotlinStdlib) |
| 46 | testImplementation(libs.truth) |
| 47 | testImplementation(libs.testRules) |
| 48 | testImplementation(libs.testCore) |
Charcoal Chen | c1fc6ed | 2022-01-04 10:22:37 +0800 | [diff] [blame] | 49 | testImplementation(project(":camera:camera-camera2")) |
| 50 | testImplementation(project(":camera:camera-testing")) |
husaynhakeem | b3b0e53 | 2020-02-06 12:46:33 -0800 | [diff] [blame] | 51 | |
Trevor McGuire | e40e90b | 2021-09-22 17:07:30 -0700 | [diff] [blame] | 52 | androidTestImplementation(libs.multidex) |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 53 | androidTestImplementation(libs.mockitoCore) |
| 54 | androidTestImplementation(libs.espressoCore) |
| 55 | androidTestImplementation(libs.testExtJunit) |
| 56 | androidTestImplementation(libs.testCore) |
| 57 | androidTestImplementation(libs.testRunner) |
| 58 | androidTestImplementation(libs.testRules) |
| 59 | androidTestImplementation(libs.testUiautomator) |
| 60 | androidTestImplementation(libs.kotlinStdlib) |
| 61 | androidTestImplementation(libs.truth) |
Charcoal Chen | c1fc6ed | 2022-01-04 10:22:37 +0800 | [diff] [blame] | 62 | androidTestImplementation(project(":camera:camera-camera2")) |
| 63 | androidTestImplementation(project(":camera:camera-testing")) |
Aurimas Liutikas | e26aaba | 2021-05-24 16:38:00 -0700 | [diff] [blame] | 64 | androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) // DexMaker has it's own MockMaker |
| 65 | androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) // DexMaker has it's own MockMaker |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 66 | } |
| 67 | android { |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 68 | defaultConfig { |
Trevor McGuire | e40e90b | 2021-09-22 17:07:30 -0700 | [diff] [blame] | 69 | multiDexEnabled = true |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 70 | } |
Trevor McGuire | e40e90b | 2021-09-22 17:07:30 -0700 | [diff] [blame] | 71 | |
System Administrator | c4ab0a1 | 2022-04-13 12:05:20 -0700 | [diff] [blame] | 72 | lintOptions { |
| 73 | enable 'CameraXQuirksClassDetector' |
| 74 | } |
| 75 | |
husaynhakeem | 3dafad2 | 2020-02-06 12:52:11 -0800 | [diff] [blame] | 76 | testOptions.unitTests.includeAndroidResources = true |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 77 | namespace "androidx.camera.view" |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 78 | } |
David M. Chen | 389eda0 | 2019-04-01 16:32:06 -0700 | [diff] [blame] | 79 | androidx { |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 80 | name = "Jetpack Camera View Library" |
Eric Ng | 8289a72 | 2019-07-15 14:51:16 -0700 | [diff] [blame] | 81 | publish = Publish.SNAPSHOT_AND_RELEASE |
Julie Wu | d8e46f5 | 2022-01-03 10:36:18 +0000 | [diff] [blame] | 82 | |
Trevor McGuire | 8045819 | 2019-04-08 14:49:13 -0700 | [diff] [blame] | 83 | mavenGroup = LibraryGroups.CAMERA |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 84 | inceptionYear = "2019" |
| 85 | description = "UI tools for the Jetpack Camera Library, a library providing a consistent and " + |
| 86 | "reliable camera foundation that enables great camera driven experiences across all " + |
| 87 | "of Android." |
| 88 | } |