Update annotation-experimental dependency.
Annotation @Experimental/@UseExperimental have been deprecated and
is replaced with @RequiresOptIn/@OptIn.
Change camera-pipe usages of the experimental APIs from suppressing
"UnsafeExperimentalUsageError" to "UnsafeOptInUsageError".
RelNote: "Replaced annotation @Experimental with @RequiresOptIn to experimental APIs. For calling experimental APIs, use androidx.annotation.OptIn instead of deprecated androidx.annotation.experimental.UseExperimental."
Bug: b/170599666
Test: ./gradlew bOS
Change-Id: Iff2262a11208aa8c9292d650ba8d9ae0ed500b78
diff --git a/camera/camera-lifecycle/build.gradle b/camera/camera-lifecycle/build.gradle
index 57fe2aa..69a63fd 100644
--- a/camera/camera-lifecycle/build.gradle
+++ b/camera/camera-lifecycle/build.gradle
@@ -14,11 +14,12 @@
* limitations under the License.
*/
-import static androidx.build.dependencies.DependenciesKt.*
-import androidx.build.LibraryVersions
+
import androidx.build.LibraryGroups
import androidx.build.Publish
+import static androidx.build.dependencies.DependenciesKt.*
+
plugins {
id("AndroidXPlugin")
id("com.android.library")
@@ -31,6 +32,7 @@
api(project(":camera:camera-core"))
implementation("androidx.core:core:1.1.0")
implementation(AUTO_VALUE_ANNOTATIONS)
+
annotationProcessor(AUTO_VALUE)
androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)