blob: d9ec12114ac96d28f8fa2b89b7fac4f8893c3d3e [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
17import static androidx.build.dependencies.DependenciesKt.*
Trevor McGuire80458192019-04-08 14:49:13 -070018import androidx.build.LibraryVersions
19import androidx.build.LibraryGroups
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070020import androidx.build.Publish
Trevor McGuire89ca96a2019-02-19 11:38:44 -080021
22plugins {
Wenhung Teng73b1dbd2019-04-08 09:11:18 -070023 id("AndroidXPlugin")
24 id("com.android.library")
Trevor McGuire89ca96a2019-02-19 11:38:44 -080025}
26
27dependencies {
husaynhakeem5b480152019-11-27 14:40:10 -080028 implementation("androidx.appcompat:appcompat:1.1.0")
Aurimas Liutikas827a1f22019-07-12 16:29:28 -070029 api("androidx.lifecycle:lifecycle-common:2.0.0")
Trevor McGuiref2a5b602019-11-21 15:29:20 -080030 api(project(":camera:camera-core"))
31 implementation project(path: ':camera:camera-lifecycle')
Nick Anthonya3567762019-12-13 14:33:50 -050032 api("androidx.annotation:annotation:1.0.0")
Xi Zhange0a6f682019-09-17 15:56:24 +080033 implementation(GUAVA_LISTENABLE_FUTURE)
Nick Anthonybf92cbc2020-02-10 21:11:51 +000034 implementation("androidx.core:core:1.1.0")
Xi Zhange0a6f682019-09-17 15:56:24 +080035 implementation("androidx.concurrent:concurrent-futures:1.0.0")
Trevor McGuire89ca96a2019-02-19 11:38:44 -080036
husaynhakeemb3b0e532020-02-06 12:46:33 -080037 testImplementation(ANDROIDX_TEST_RUNNER)
38 testImplementation(MOCKITO_CORE)
39 testImplementation(ROBOLECTRIC)
40 testImplementation(TRUTH)
Scott Nien4c33c4e2020-02-27 01:33:13 +080041 testImplementation(ANDROIDX_TEST_CORE)
42 testImplementation project(":camera:camera-testing")
husaynhakeemb3b0e532020-02-06 12:46:33 -080043
Scott Nien84d12002019-07-22 21:53:30 +080044 androidTestImplementation(project(":camera:camera-testing"))
45 androidTestImplementation(MOCKITO_CORE)
46 androidTestImplementation(ESPRESSO_CORE)
47 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
48 androidTestImplementation(ANDROIDX_TEST_CORE)
49 androidTestImplementation(ANDROIDX_TEST_RUNNER)
50 androidTestImplementation(ANDROIDX_TEST_RULES)
51 androidTestImplementation(TRUTH)
52 androidTestImplementation(project(":camera:camera-camera2"))
Franklin Wu957ff5c2019-11-21 11:02:48 -080053 androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it's own MockMaker
54 androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it's own MockMaker
Trevor McGuire89ca96a2019-02-19 11:38:44 -080055}
56android {
Trevor McGuire89ca96a2019-02-19 11:38:44 -080057 defaultConfig {
Trevor McGuire6bf813c2019-02-26 10:26:12 -080058 minSdkVersion 21
Trevor McGuire89ca96a2019-02-19 11:38:44 -080059 }
husaynhakeem3dafad22020-02-06 12:52:11 -080060 testOptions.unitTests.includeAndroidResources = true
Trevor McGuire89ca96a2019-02-19 11:38:44 -080061}
David M. Chen389eda02019-04-01 16:32:06 -070062androidx {
Trevor McGuire89ca96a2019-02-19 11:38:44 -080063 name = "Jetpack Camera View Library"
Eric Ng8289a722019-07-15 14:51:16 -070064 publish = Publish.SNAPSHOT_AND_RELEASE
65 mavenVersion = LibraryVersions.CAMERA_VIEW
Trevor McGuire80458192019-04-08 14:49:13 -070066 mavenGroup = LibraryGroups.CAMERA
Trevor McGuire89ca96a2019-02-19 11:38:44 -080067 inceptionYear = "2019"
68 description = "UI tools for the Jetpack Camera Library, a library providing a consistent and " +
69 "reliable camera foundation that enables great camera driven experiences across all " +
70 "of Android."
71}