blob: 4339da8af64eec6a0508fbb1f6f02898e33ebcc1 [file] [log] [blame]
Trevor McGuire89ca96a2019-02-19 11:38:44 -08001/*
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 Chang15ef1c22020-11-20 15:48:43 +080017
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070018import androidx.build.Publish
Trevor McGuire89ca96a2019-02-19 11:38:44 -080019
20plugins {
Wenhung Teng73b1dbd2019-04-08 09:11:18 -070021 id("AndroidXPlugin")
22 id("com.android.library")
Scott Nien776f4992020-05-12 14:20:09 +080023 id("kotlin-android")
Trevor McGuire89ca96a2019-02-19 11:38:44 -080024}
25
26dependencies {
Aurimas Liutikas827a1f22019-07-12 16:29:28 -070027 api("androidx.lifecycle:lifecycle-common:2.0.0")
leo huang39b73142021-05-18 15:14:24 +080028 api("androidx.annotation:annotation:1.2.0")
Charcoal Chenc1fc6ed2022-01-04 10:22:37 +080029 api(project(":camera:camera-core"))
30 implementation(project(":camera:camera-lifecycle"))
TY Chang15ef1c22020-11-20 15:48:43 +080031 implementation("androidx.annotation:annotation-experimental:1.1.0-rc01")
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070032 implementation(libs.guavaListenableFuture)
husaynhakeem79dfb2c2021-05-07 09:49:18 -070033 implementation("androidx.core:core:1.3.2")
Xi Zhange0a6f682019-09-17 15:56:24 +080034 implementation("androidx.concurrent:concurrent-futures:1.0.0")
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070035 implementation(libs.autoValueAnnotations)
TY Chang15ef1c22020-11-20 15:48:43 +080036 implementation("androidx.appcompat:appcompat:1.1.0")
37 // Added for annotation-experimental
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070038 compileOnly(libs.kotlinStdlib)
TY Chang15ef1c22020-11-20 15:48:43 +080039
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070040 annotationProcessor(libs.autoValue)
Trevor McGuire89ca96a2019-02-19 11:38:44 -080041
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070042 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 Chenc1fc6ed2022-01-04 10:22:37 +080049 testImplementation(project(":camera:camera-camera2"))
50 testImplementation(project(":camera:camera-testing"))
husaynhakeemb3b0e532020-02-06 12:46:33 -080051
Trevor McGuiree40e90b2021-09-22 17:07:30 -070052 androidTestImplementation(libs.multidex)
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070053 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 Chenc1fc6ed2022-01-04 10:22:37 +080062 androidTestImplementation(project(":camera:camera-camera2"))
63 androidTestImplementation(project(":camera:camera-testing"))
Aurimas Liutikase26aaba2021-05-24 16:38:00 -070064 androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) // DexMaker has it's own MockMaker
65 androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) // DexMaker has it's own MockMaker
Trevor McGuire89ca96a2019-02-19 11:38:44 -080066}
67android {
Trevor McGuire89ca96a2019-02-19 11:38:44 -080068 defaultConfig {
Trevor McGuiree40e90b2021-09-22 17:07:30 -070069 multiDexEnabled = true
Trevor McGuire89ca96a2019-02-19 11:38:44 -080070 }
Trevor McGuiree40e90b2021-09-22 17:07:30 -070071
System Administratorc4ab0a12022-04-13 12:05:20 -070072 lintOptions {
73 enable 'CameraXQuirksClassDetector'
74 }
75
husaynhakeem3dafad22020-02-06 12:52:11 -080076 testOptions.unitTests.includeAndroidResources = true
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070077 namespace "androidx.camera.view"
Trevor McGuire89ca96a2019-02-19 11:38:44 -080078}
David M. Chen389eda02019-04-01 16:32:06 -070079androidx {
Trevor McGuire89ca96a2019-02-19 11:38:44 -080080 name = "Jetpack Camera View Library"
Eric Ng8289a722019-07-15 14:51:16 -070081 publish = Publish.SNAPSHOT_AND_RELEASE
Julie Wud8e46f52022-01-03 10:36:18 +000082
Trevor McGuire80458192019-04-08 14:49:13 -070083 mavenGroup = LibraryGroups.CAMERA
Trevor McGuire89ca96a2019-02-19 11:38:44 -080084 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}