Aperture: Move to AndroidX Media3 for video capture preview

Change-Id: I4aa4e6c880766d6b8faf04b4961358f5d79cc1a6
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 73ad61b..d1455ca 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -72,6 +72,13 @@
     // If you want to additionally use the CameraX Extensions library
     implementation("androidx.camera:camera-extensions:${cameraxVersion}")
 
+    // Media3
+    val media3Version = "1.0.0-beta02"
+    // For media playback using ExoPlayer
+    implementation("androidx.media3:media3-exoplayer:$media3Version")
+    // For building media playback UIs
+    implementation("androidx.media3:media3-ui:$media3Version")
+
     // ZXing
     implementation("com.google.zxing:core:3.5.0")
 
@@ -122,6 +129,7 @@
         when (it) {
             "androidx.constraintlayout:constraintlayout" -> "androidx-constraintlayout_constraintlayout"
             "com.google.auto.value:auto-value-annotations" -> "auto_value_annotations"
+            "com.google.guava:guava" -> "guava"
             "com.google.guava:listenablefuture" -> "guava"
             "org.jetbrains.kotlin:kotlin-stdlib" -> "kotlin-stdlib"
             "org.jetbrains.kotlin:kotlin-stdlib-jdk8" -> "kotlin-stdlib-jdk8"
@@ -133,8 +141,10 @@
     val isAvailableInAosp = { group: String, artifactId: String ->
         when {
             group.startsWith("androidx") -> {
-                // We provide our own androidx.camera & lifecycle-common
-                !group.startsWith("androidx.camera") && artifactId != "lifecycle-common"
+                // We provide our own androidx.{camera,media3} & lifecycle-common
+                !group.startsWith("androidx.camera") &&
+                        !group.startsWith("androidx.media3") &&
+                        artifactId != "lifecycle-common"
             }
             group.startsWith("org.jetbrains") -> true
             group == "com.google.auto.value" -> true