Skip to content

Commit

Permalink
Aperture: Use camera:camera-viewfinder
Browse files Browse the repository at this point in the history
Change-Id: I2abbd54f0f4f08a283a87a6197a9ec6f3f555c8e
  • Loading branch information
luk1337 committed May 17, 2024
1 parent aa3066a commit febdcf8
Show file tree
Hide file tree
Showing 14 changed files with 164 additions and 439 deletions.
1 change: 1 addition & 0 deletions app/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ android_app {
"Aperture_androidx.camera_camera-lifecycle",
"Aperture_androidx.camera_camera-video",
"Aperture_androidx.camera_camera-view",
"Aperture_androidx.camera_camera-viewfinder",
"Aperture_androidx.camera_camera-extensions",
"Aperture_androidx.media3_media3-exoplayer",
"Aperture_androidx.media3_media3-ui",
Expand Down
2 changes: 2 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ dependencies {
implementation("androidx.camera:camera-video:${cameraxVersion}")
// If you want to additionally use the CameraX View class
implementation("androidx.camera:camera-view:${cameraxVersion}")
// If you want to additionally use the CameraX Viewfinder class
implementation("androidx.camera:camera-viewfinder:1.4.0-alpha06")
// If you want to additionally use the CameraX Extensions library
implementation("androidx.camera:camera-extensions:${cameraxVersion}")

Expand Down
102 changes: 102 additions & 0 deletions app/libs/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,108 @@ android_library {
java_version: "1.7",
}

android_library_import {
name: "Aperture_androidx.camera_camera-viewfinder-nodeps",
aars: ["androidx/camera/camera-viewfinder/1.4.0-alpha06/camera-viewfinder-1.4.0-alpha06.aar"],
sdk_version: "34",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
static_libs: [
"Aperture_androidx.camera_camera-viewfinder-core",
"androidx.annotation_annotation",
"androidx.annotation_annotation-experimental",
"androidx.appcompat_appcompat",
"androidx.concurrent_concurrent-futures",
"androidx.concurrent_concurrent-futures-ktx",
"androidx.core_core",
"androidx.test.espresso.idling-resource",
"auto_value_annotations",
"guava",
"kotlinx-coroutines-android",
"kotlinx-coroutines-core",
],
}

android_library {
name: "Aperture_androidx.camera_camera-viewfinder",
sdk_version: "34",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
manifest: "androidx/camera/camera-viewfinder/1.4.0-alpha06/AndroidManifest.xml",
static_libs: [
"Aperture_androidx.camera_camera-viewfinder-nodeps",
"Aperture_androidx.camera_camera-viewfinder-core",
"androidx.annotation_annotation",
"androidx.annotation_annotation-experimental",
"androidx.appcompat_appcompat",
"androidx.concurrent_concurrent-futures",
"androidx.concurrent_concurrent-futures-ktx",
"androidx.core_core",
"androidx.test.espresso.idling-resource",
"auto_value_annotations",
"guava",
"kotlinx-coroutines-android",
"kotlinx-coroutines-core",
],
java_version: "1.7",
}

android_library_import {
name: "Aperture_androidx.camera_camera-viewfinder-core-nodeps",
aars: ["androidx/camera/camera-viewfinder-core/1.4.0-alpha06/camera-viewfinder-core-1.4.0-alpha06.aar"],
sdk_version: "34",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
static_libs: [
"androidx.annotation_annotation",
"androidx.annotation_annotation-experimental",
"androidx.appcompat_appcompat",
"androidx.concurrent_concurrent-futures",
"androidx.concurrent_concurrent-futures-ktx",
"androidx.core_core",
"androidx.test.espresso.idling-resource",
"auto_value_annotations",
"guava",
"kotlinx-coroutines-android",
"kotlinx-coroutines-core",
],
}

android_library {
name: "Aperture_androidx.camera_camera-viewfinder-core",
sdk_version: "34",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
manifest: "androidx/camera/camera-viewfinder-core/1.4.0-alpha06/AndroidManifest.xml",
static_libs: [
"Aperture_androidx.camera_camera-viewfinder-core-nodeps",
"androidx.annotation_annotation",
"androidx.annotation_annotation-experimental",
"androidx.appcompat_appcompat",
"androidx.concurrent_concurrent-futures",
"androidx.concurrent_concurrent-futures-ktx",
"androidx.core_core",
"androidx.test.espresso.idling-resource",
"auto_value_annotations",
"guava",
"kotlinx-coroutines-android",
"kotlinx-coroutines-core",
],
java_version: "1.7",
}

java_import {
name: "Aperture_androidx.lifecycle_lifecycle-common-nodeps",
jars: ["androidx/lifecycle/lifecycle-common/2.6.2/lifecycle-common-2.6.2.jar"],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="androidx.camera.viewfinder.core" >

<uses-sdk android:minSdkVersion="21" />

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023-2024 The Android Open Source Project

SPDX-License-Identifier: Apache-2.0
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023-2024 The Android Open Source Project

SPDX-License-Identifier: Apache-2.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="androidx.camera.viewfinder" >

<uses-sdk android:minSdkVersion="21" />

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2022-2024 The Android Open Source Project

SPDX-License-Identifier: Apache-2.0
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2022-2024 The Android Open Source Project

SPDX-License-Identifier: Apache-2.0
Loading

0 comments on commit febdcf8

Please sign in to comment.