| 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 { |
| husaynhakeem | 5b48015 | 2019-11-27 14:40:10 -0800 | [diff] [blame] | 28 | implementation("androidx.appcompat:appcompat:1.1.0") |
| Aurimas Liutikas | 827a1f2 | 2019-07-12 16:29:28 -0700 | [diff] [blame] | 29 | api("androidx.lifecycle:lifecycle-common:2.0.0") |
| Trevor McGuire | f2a5b60 | 2019-11-21 15:29:20 -0800 | [diff] [blame] | 30 | api(project(":camera:camera-core")) |
| 31 | implementation project(path: ':camera:camera-lifecycle') |
| Nick Anthony | a356776 | 2019-12-13 14:33:50 -0500 | [diff] [blame] | 32 | api("androidx.annotation:annotation:1.0.0") |
| Xi Zhang | e0a6f68 | 2019-09-17 15:56:24 +0800 | [diff] [blame] | 33 | implementation(GUAVA_LISTENABLE_FUTURE) |
| Nick Anthony | bf92cbc | 2020-02-10 21:11:51 +0000 | [diff] [blame] | 34 | implementation("androidx.core:core:1.1.0") |
| Xi Zhang | e0a6f68 | 2019-09-17 15:56:24 +0800 | [diff] [blame] | 35 | implementation("androidx.concurrent:concurrent-futures:1.0.0") |
| Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 36 | |
| husaynhakeem | b3b0e53 | 2020-02-06 12:46:33 -0800 | [diff] [blame] | 37 | testImplementation(ANDROIDX_TEST_RUNNER) |
| 38 | testImplementation(MOCKITO_CORE) |
| 39 | testImplementation(ROBOLECTRIC) |
| 40 | testImplementation(TRUTH) |
| Scott Nien | 4c33c4e | 2020-02-27 01:33:13 +0800 | [diff] [blame] | 41 | testImplementation(ANDROIDX_TEST_CORE) |
| 42 | testImplementation project(":camera:camera-testing") |
| husaynhakeem | b3b0e53 | 2020-02-06 12:46:33 -0800 | [diff] [blame] | 43 | |
| Scott Nien | 84d1200 | 2019-07-22 21:53:30 +0800 | [diff] [blame] | 44 | 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 Wu | 957ff5c | 2019-11-21 11:02:48 -0800 | [diff] [blame] | 53 | 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 McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 55 | } |
| 56 | android { |
| Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 57 | defaultConfig { |
| Trevor McGuire | 6bf813c | 2019-02-26 10:26:12 -0800 | [diff] [blame] | 58 | minSdkVersion 21 |
| Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 59 | } |
| husaynhakeem | 3dafad2 | 2020-02-06 12:52:11 -0800 | [diff] [blame] | 60 | testOptions.unitTests.includeAndroidResources = true |
| Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 61 | } |
| David M. Chen | 389eda0 | 2019-04-01 16:32:06 -0700 | [diff] [blame] | 62 | androidx { |
| Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 63 | name = "Jetpack Camera View Library" |
| Eric Ng | 8289a72 | 2019-07-15 14:51:16 -0700 | [diff] [blame] | 64 | publish = Publish.SNAPSHOT_AND_RELEASE |
| 65 | mavenVersion = LibraryVersions.CAMERA_VIEW |
| Trevor McGuire | 8045819 | 2019-04-08 14:49:13 -0700 | [diff] [blame] | 66 | mavenGroup = LibraryGroups.CAMERA |
| Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 67 | 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 | } |