blob: 6696f90a112bf8fd31ba4ca6113407e7bfd91049 [file] [log] [blame]
Franklin Wu0c88a3f2019-10-23 15:37:05 -07001/*
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.*
18import androidx.build.LibraryVersions
19import androidx.build.LibraryGroups
20import androidx.build.Publish
21
22plugins {
23 id("AndroidXPlugin")
24 id("com.android.library")
25}
26
27dependencies {
28 api(project(":camera:camera-core"))
Franklin Wu4d89be12019-10-23 15:38:43 -070029 api("androidx.lifecycle:lifecycle-common:2.1.0")
Franklin Wu0c88a3f2019-10-23 15:37:05 -070030 annotationProcessor(AUTO_VALUE)
31}
32
33android {
34 defaultConfig {
35 minSdkVersion 21
36 }
37
38 // Use Robolectric 4.+
39 testOptions.unitTests.includeAndroidResources = true
40}
41
42androidx {
43 name = "Jetpack Camera Lifecycle Library"
Eric Ng956c158a2019-11-06 13:14:55 -080044 publish = Publish.SNAPSHOT_AND_RELEASE
Franklin Wu0c88a3f2019-10-23 15:37:05 -070045 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