Create standalone previewview artifact for camera2 and cameraX

This is the first change to create the artifact. It includes the main classes and skeleton for APIs in PreviewView.

If overall design/structure looks good, more detailed implementation will be added in the next change.
build.gradle is configured to not publish APIs until implementation is complete.

Bug: b/206044058
Test: ./gradlew camera:camera-previewview:assemble
Change-Id: Id8fb40e38004fe77d01576a8b3f7cc9bf3827baf
diff --git a/camera/camera-previewview/build.gradle b/camera/camera-previewview/build.gradle
new file mode 100644
index 0000000..eb5bf9f
--- /dev/null
+++ b/camera/camera-previewview/build.gradle
@@ -0,0 +1,57 @@
+/*
+ * Copyright (C) 2022 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 androidx.build.LibraryGroups
+import androidx.build.LibraryType
+import androidx.build.RunApiTasks
+
+plugins {
+    id("AndroidXPlugin")
+    id("com.android.library")
+    id("kotlin-android")
+}
+
+dependencies {
+    api("androidx.annotation:annotation:1.2.0")
+    implementation("androidx.annotation:annotation-experimental:1.1.0-rc01")
+    implementation(libs.guavaListenableFuture)
+    implementation("androidx.core:core:1.3.2")
+    implementation("androidx.concurrent:concurrent-futures:1.0.0")
+    implementation(libs.autoValueAnnotations)
+    implementation("androidx.appcompat:appcompat:1.1.0")
+    // Added for annotation-experimental
+    compileOnly(libs.kotlinStdlib)
+
+    annotationProcessor(libs.nullaway)
+    annotationProcessor(libs.autoValue)
+}
+
+android {
+    defaultConfig {
+        multiDexEnabled = true
+    }
+
+    testOptions.unitTests.includeAndroidResources = true
+}
+
+androidx {
+    name = "androidx.camera:camera-previewview"
+    type = LibraryType.PUBLISHED_LIBRARY
+    mavenGroup = LibraryGroups.CAMERA
+    inceptionYear = "2022"
+    description = "Standalone PreviewView for Camera2 and CameraX"
+    runApiTasks = new RunApiTasks.No("Unreleased library.")
+}