blob: 3a1620a7f57ece42c861ae98a49eada5a0cf4a73 [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 {
Aurimas Liutikas506ab64d2020-06-02 14:37:26 -070028 implementation("androidx.test:core:1.2.0")
WenHung_Teng32f98ef2020-06-11 17:06:56 +080029 implementation(ANDROIDX_TEST_RULES)
WenHung_Teng29e29ee2019-12-23 20:50:38 +080030 implementation(ANDROIDX_TEST_UIAUTOMATOR)
Nick Anthonya3567762019-12-13 14:33:50 -050031 api("androidx.annotation:annotation:1.0.0")
Franklin Wudbfeed82019-05-30 16:54:25 -070032 implementation(GUAVA_LISTENABLE_FUTURE)
Ian Lake64c858b2019-09-27 14:34:08 -070033 implementation("androidx.appcompat:appcompat:1.1.0")
Franklin Wuae0a2672020-06-25 17:18:44 -070034 api(project(":camera:camera-core"))
Nick Anthonybf92cbc2020-02-10 21:11:51 +000035 implementation("androidx.core:core:1.1.0")
Ian Lake0e0059152019-09-27 14:43:23 -070036 implementation("androidx.concurrent:concurrent-futures:1.0.0")
WenHung_Teng7ed07782019-08-29 13:59:12 +080037 implementation("androidx.test.espresso:espresso-idling-resource:3.1.0")
weginlee8ba68562019-07-02 11:28:56 +080038 implementation(JUNIT)
Trevor McGuire88082192019-05-02 19:24:26 -070039
40 testImplementation(ANDROIDX_TEST_CORE)
41 testImplementation(ANDROIDX_TEST_RUNNER)
42 testImplementation(JUNIT)
43 testImplementation(TRUTH)
44 testImplementation(ROBOLECTRIC)
45 testImplementation(MOCKITO_CORE)
Trevor McGuire89ca96a2019-02-19 11:38:44 -080046}
Franklin Wudbfeed82019-05-30 16:54:25 -070047
Trevor McGuire89ca96a2019-02-19 11:38:44 -080048android {
Trevor McGuire89ca96a2019-02-19 11:38:44 -080049 defaultConfig {
Trevor McGuire6bf813c2019-02-26 10:26:12 -080050 minSdkVersion 21
Trevor McGuire89ca96a2019-02-19 11:38:44 -080051 }
Trevor McGuireb4200b22019-12-09 18:28:41 -080052
53 // Use Robolectric 4.+
54 testOptions.unitTests.includeAndroidResources = true
Trevor McGuire89ca96a2019-02-19 11:38:44 -080055}
Trevor McGuireb4200b22019-12-09 18:28:41 -080056
David M. Chen389eda02019-04-01 16:32:06 -070057androidx {
Trevor McGuire89ca96a2019-02-19 11:38:44 -080058 name = "Jetpack Camera Testing Library"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070059 publish = Publish.NONE
Trevor McGuire80458192019-04-08 14:49:13 -070060 mavenGroup = LibraryGroups.CAMERA
Trevor McGuire89ca96a2019-02-19 11:38:44 -080061 inceptionYear = "2019"
62 description = "Testing components for the Jetpack Camera Library, a library providing a " +
63 "consistent and reliable camera foundation that enables great camera driven " +"" +
64 "experiences across all of Android."
Trevor McGuire89ca96a2019-02-19 11:38:44 -080065}