Franklin Wu | 0c88a3f | 2019-10-23 15:37:05 -0700 | [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.* |
| 18 | import androidx.build.LibraryVersions |
| 19 | import androidx.build.LibraryGroups |
| 20 | import androidx.build.Publish |
| 21 | |
| 22 | plugins { |
| 23 | id("AndroidXPlugin") |
| 24 | id("com.android.library") |
| 25 | } |
| 26 | |
| 27 | dependencies { |
| 28 | api(project(":camera:camera-core")) |
Franklin Wu | 4d89be1 | 2019-10-23 15:38:43 -0700 | [diff] [blame] | 29 | api("androidx.lifecycle:lifecycle-common:2.1.0") |
Franklin Wu | 0c88a3f | 2019-10-23 15:37:05 -0700 | [diff] [blame] | 30 | annotationProcessor(AUTO_VALUE) |
| 31 | } |
| 32 | |
| 33 | android { |
| 34 | defaultConfig { |
| 35 | minSdkVersion 21 |
| 36 | } |
| 37 | |
| 38 | // Use Robolectric 4.+ |
| 39 | testOptions.unitTests.includeAndroidResources = true |
| 40 | } |
| 41 | |
| 42 | androidx { |
| 43 | name = "Jetpack Camera Lifecycle Library" |
Eric Ng | 956c158a | 2019-11-06 13:14:55 -0800 | [diff] [blame^] | 44 | publish = Publish.SNAPSHOT_AND_RELEASE |
Franklin Wu | 0c88a3f | 2019-10-23 15:37:05 -0700 | [diff] [blame] | 45 | mavenVersion = LibraryVersions.CAMERA_LIFECYCLE |
| 46 | mavenGroup = LibraryGroups.CAMERA |
| 47 | inceptionYear = "2019" |
| 48 | description = "Lifecycle components for the Jetpack Camera Library, a library providing a " + |
| 49 | "consistent and reliable camera foundation that enables great camera driven " + |
| 50 | "experiences across all of Android." |
| 51 | failOnDeprecationWarnings = false |
| 52 | } |
| 53 | |