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 { |
| 28 | api(project(":camera:camera-core")) |
Alan Viverette | c2ea01c | 2019-05-22 15:39:53 -0400 | [diff] [blame] | 29 | |
Nick Anthony | f9dabf9 | 2019-08-16 10:38:30 -0400 | [diff] [blame] | 30 | implementation("androidx.core:core:1.1.0") |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 31 | implementation("androidx.annotation:annotation:1.0.0") |
Alan Viverette | 12a0a4e | 2019-05-22 15:39:53 -0400 | [diff] [blame] | 32 | implementation("androidx.concurrent:concurrent-futures:1.0.0-alpha03") |
| 33 | implementation(GUAVA_LISTENABLE_FUTURE) |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 34 | |
| 35 | annotationProcessor(AUTO_VALUE) |
| 36 | |
David M. Chen | df6a484 | 2019-04-10 08:25:57 -0700 | [diff] [blame] | 37 | testImplementation(ANDROIDX_TEST_CORE) |
| 38 | testImplementation(ANDROIDX_TEST_RUNNER) |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 39 | testImplementation(JUNIT) |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 40 | testImplementation(TRUTH) |
| 41 | testImplementation(ROBOLECTRIC) |
| 42 | testImplementation(MOCKITO_CORE) |
| 43 | testImplementation(project(":camera:camera-testing")) |
| 44 | |
David M. Chen | df6a484 | 2019-04-10 08:25:57 -0700 | [diff] [blame] | 45 | androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| 46 | androidTestImplementation(ANDROIDX_TEST_CORE) |
| 47 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| 48 | androidTestImplementation(ANDROIDX_TEST_RULES) |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 49 | androidTestImplementation(TRUTH) |
WenHung_Teng | 7ed0778 | 2019-08-29 13:59:12 +0800 | [diff] [blame] | 50 | androidTestImplementation(ANDROIDX_TEST_UIAUTOMATOR) |
| 51 | androidTestImplementation(ESPRESSO_CORE) |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 52 | 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 |
Ian Lake | 64c858b | 2019-09-27 14:34:08 -0700 | [diff] [blame^] | 54 | androidTestImplementation("androidx.appcompat:appcompat:1.1.0") |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 55 | androidTestImplementation(project(":camera:camera-testing")) |
| 56 | } |
| 57 | android { |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 58 | defaultConfig { |
Trevor McGuire | 6bf813c | 2019-02-26 10:26:12 -0800 | [diff] [blame] | 59 | minSdkVersion 21 |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | // Use Robolectric 4.+ |
| 63 | testOptions.unitTests.includeAndroidResources = true |
| 64 | } |
David M. Chen | 389eda0 | 2019-04-01 16:32:06 -0700 | [diff] [blame] | 65 | |
| 66 | androidx { |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 67 | name = "Jetpack Camera Library Camera2 Implementation/Extensions" |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 68 | publish = Publish.SNAPSHOT_AND_RELEASE |
Trevor McGuire | 8045819 | 2019-04-08 14:49:13 -0700 | [diff] [blame] | 69 | mavenVersion = LibraryVersions.CAMERA |
| 70 | mavenGroup = LibraryGroups.CAMERA |
Trevor McGuire | 89ca96a | 2019-02-19 11:38:44 -0800 | [diff] [blame] | 71 | 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 | } |