blob: 389bf37ae136f36d1d54a0c624d551223ec5e634 [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 {
28 api(project(":camera:camera-core"))
Alan Viverettec2ea01c2019-05-22 15:39:53 -040029
Nick Anthonyf9dabf92019-08-16 10:38:30 -040030 implementation("androidx.core:core:1.1.0")
Trevor McGuire89ca96a2019-02-19 11:38:44 -080031 implementation("androidx.annotation:annotation:1.0.0")
Ian Lake0e0059152019-09-27 14:43:23 -070032 implementation("androidx.concurrent:concurrent-futures:1.0.0")
Alan Viverette12a0a4e2019-05-22 15:39:53 -040033 implementation(GUAVA_LISTENABLE_FUTURE)
Trevor McGuire89ca96a2019-02-19 11:38:44 -080034
35 annotationProcessor(AUTO_VALUE)
36
David M. Chendf6a4842019-04-10 08:25:57 -070037 testImplementation(ANDROIDX_TEST_CORE)
38 testImplementation(ANDROIDX_TEST_RUNNER)
Trevor McGuire89ca96a2019-02-19 11:38:44 -080039 testImplementation(JUNIT)
Trevor McGuire89ca96a2019-02-19 11:38:44 -080040 testImplementation(TRUTH)
41 testImplementation(ROBOLECTRIC)
42 testImplementation(MOCKITO_CORE)
43 testImplementation(project(":camera:camera-testing"))
44
David M. Chendf6a4842019-04-10 08:25:57 -070045 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
46 androidTestImplementation(ANDROIDX_TEST_CORE)
47 androidTestImplementation(ANDROIDX_TEST_RUNNER)
48 androidTestImplementation(ANDROIDX_TEST_RULES)
Trevor McGuire89ca96a2019-02-19 11:38:44 -080049 androidTestImplementation(TRUTH)
WenHung_Teng7ed07782019-08-29 13:59:12 +080050 androidTestImplementation(ANDROIDX_TEST_UIAUTOMATOR)
51 androidTestImplementation(ESPRESSO_CORE)
Trevor McGuire89ca96a2019-02-19 11:38:44 -080052 androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it's own MockMaker
53 androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it's own MockMaker
WenHung_Teng7ed07782019-08-29 13:59:12 +080054 androidTestImplementation(project(":appcompat"))
Trevor McGuire89ca96a2019-02-19 11:38:44 -080055 androidTestImplementation(project(":camera:camera-testing"))
56}
57android {
Trevor McGuire89ca96a2019-02-19 11:38:44 -080058 defaultConfig {
Trevor McGuire6bf813c2019-02-26 10:26:12 -080059 minSdkVersion 21
Trevor McGuire89ca96a2019-02-19 11:38:44 -080060 }
61
62 // Use Robolectric 4.+
63 testOptions.unitTests.includeAndroidResources = true
64}
David M. Chen389eda02019-04-01 16:32:06 -070065
66androidx {
Trevor McGuire89ca96a2019-02-19 11:38:44 -080067 name = "Jetpack Camera Library Camera2 Implementation/Extensions"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070068 publish = Publish.SNAPSHOT_AND_RELEASE
Trevor McGuire80458192019-04-08 14:49:13 -070069 mavenVersion = LibraryVersions.CAMERA
70 mavenGroup = LibraryGroups.CAMERA
Trevor McGuire89ca96a2019-02-19 11:38:44 -080071 inceptionYear = "2019"
72 description = "Camera2 implementation and extensions for the Jetpack Camera Library, a " +
73 "library providing a consistent and reliable camera foundation that enables great " +
74 "camera driven experiences across all of Android."
75}