Added camera-lifecycle module

The camera-lifecycle module will contain all of the lifecycle aware
functionality for controlling a camera. This is so that users of CameraX
that wish to directly control the camera without using lifecycles they
do not have to pay the cost for it.

This initial commit is for creating the module only.

Bug: b/142836519, b/143224674
Test: ./gradlew camera:camera-lifecycle:build
Change-Id: Iae979c52a6fa5ab3f4d10313d0bf80a4ad501b14
diff --git a/camera/camera-lifecycle/build.gradle b/camera/camera-lifecycle/build.gradle
new file mode 100644
index 0000000..74e1b26
--- /dev/null
+++ b/camera/camera-lifecycle/build.gradle
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2019 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import static androidx.build.dependencies.DependenciesKt.*
+import androidx.build.LibraryVersions
+import androidx.build.LibraryGroups
+import androidx.build.Publish
+
+plugins {
+    id("AndroidXPlugin")
+    id("com.android.library")
+}
+
+dependencies {
+    api(project(":camera:camera-core"))
+    annotationProcessor(AUTO_VALUE)
+}
+
+android {
+    defaultConfig {
+        minSdkVersion 21
+    }
+
+    // Use Robolectric 4.+
+    testOptions.unitTests.includeAndroidResources = true
+}
+
+androidx {
+    name = "Jetpack Camera Lifecycle Library"
+    publish = Publish.NONE
+    mavenVersion = LibraryVersions.CAMERA_LIFECYCLE
+    mavenGroup = LibraryGroups.CAMERA
+    inceptionYear = "2019"
+    description = "Lifecycle components for the Jetpack Camera Library, a library providing a " +
+            "consistent and reliable camera foundation that enables great camera driven " +
+            "experiences across all of Android."
+    failOnDeprecationWarnings = false
+}
+