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 | |
| 17 | import static androidx.build.dependencies.DependenciesKt.* |
Trevor McGuire | 8045819 | 2019-04-08 14:49:13 -0700 | [diff] [blame] | 18 | import androidx.build.LibraryVersions |
| 19 | import androidx.build.LibraryGroups |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 20 | import androidx.build.Publish |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 21 | |
| 22 | plugins { |
Wenhung Teng | 73b1dbd | 2019-04-08 09:11:18 -0700 | [diff] [blame] | 23 | id("AndroidXPlugin") |
| 24 | id("com.android.library") |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | dependencies { |
Aurimas Liutikas | 506ab64d | 2020-06-02 14:37:26 -0700 | [diff] [blame] | 28 | implementation("androidx.test:core:1.2.0") |
WenHung_Teng | 32f98ef | 2020-06-11 17:06:56 +0800 | [diff] [blame] | 29 | implementation(ANDROIDX_TEST_RULES) |
WenHung_Teng | 29e29ee | 2019-12-23 20:50:38 +0800 | [diff] [blame] | 30 | implementation(ANDROIDX_TEST_UIAUTOMATOR) |
Nick Anthony | a356776 | 2019-12-13 14:33:50 -0500 | [diff] [blame] | 31 | api("androidx.annotation:annotation:1.0.0") |
Franklin Wu | dbfeed8 | 2019-05-30 16:54:25 -0700 | [diff] [blame] | 32 | implementation(GUAVA_LISTENABLE_FUTURE) |
Ian Lake | 64c858b | 2019-09-27 14:34:08 -0700 | [diff] [blame] | 33 | implementation("androidx.appcompat:appcompat:1.1.0") |
Franklin Wu | ae0a267 | 2020-06-25 17:18:44 -0700 | [diff] [blame] | 34 | api(project(":camera:camera-core")) |
Nick Anthony | bf92cbc | 2020-02-10 21:11:51 +0000 | [diff] [blame] | 35 | implementation("androidx.core:core:1.1.0") |
Ian Lake | 0e005915 | 2019-09-27 14:43:23 -0700 | [diff] [blame] | 36 | implementation("androidx.concurrent:concurrent-futures:1.0.0") |
WenHung_Teng | 7ed0778 | 2019-08-29 13:59:12 +0800 | [diff] [blame] | 37 | implementation("androidx.test.espresso:espresso-idling-resource:3.1.0") |
weginlee | 8ba6856 | 2019-07-02 11:28:56 +0800 | [diff] [blame] | 38 | implementation(JUNIT) |
Trevor McGuire | 8808219 | 2019-05-02 19:24:26 -0700 | [diff] [blame] | 39 | |
| 40 | testImplementation(ANDROIDX_TEST_CORE) |
| 41 | testImplementation(ANDROIDX_TEST_RUNNER) |
| 42 | testImplementation(JUNIT) |
| 43 | testImplementation(TRUTH) |
| 44 | testImplementation(ROBOLECTRIC) |
| 45 | testImplementation(MOCKITO_CORE) |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 46 | } |
Franklin Wu | dbfeed8 | 2019-05-30 16:54:25 -0700 | [diff] [blame] | 47 | |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 48 | android { |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 49 | defaultConfig { |
Trevor McGuire | 6bf813c | 2019-02-26 10:26:12 -0800 | [diff] [blame] | 50 | minSdkVersion 21 |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 51 | } |
Trevor McGuire | b4200b2 | 2019-12-09 18:28:41 -0800 | [diff] [blame] | 52 | |
| 53 | // Use Robolectric 4.+ |
| 54 | testOptions.unitTests.includeAndroidResources = true |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 55 | } |
Trevor McGuire | b4200b2 | 2019-12-09 18:28:41 -0800 | [diff] [blame] | 56 | |
David M. Chen | 389eda0 | 2019-04-01 16:32:06 -0700 | [diff] [blame] | 57 | androidx { |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 58 | name = "Jetpack Camera Testing Library" |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 59 | publish = Publish.NONE |
Trevor McGuire | 8045819 | 2019-04-08 14:49:13 -0700 | [diff] [blame] | 60 | mavenGroup = LibraryGroups.CAMERA |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 61 | 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 McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 65 | } |