@capgo/camera-preview 8.3.0 → 8.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -59,12 +59,13 @@ dependencies {
|
|
|
59
59
|
implementation 'org.apache.commons:commons-imaging:1.0.0-alpha6'
|
|
60
60
|
|
|
61
61
|
// CameraX dependencies
|
|
62
|
-
def camerax_version = "1.
|
|
62
|
+
def camerax_version = "1.6.0"
|
|
63
63
|
implementation "androidx.camera:camera-core:${camerax_version}"
|
|
64
64
|
implementation "androidx.camera:camera-camera2:${camerax_version}"
|
|
65
65
|
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
|
|
66
66
|
implementation "androidx.camera:camera-view:${camerax_version}"
|
|
67
67
|
implementation "androidx.camera:camera-extensions:${camerax_version}"
|
|
68
|
+
implementation 'com.google.guava:guava:33.3.1-android'
|
|
68
69
|
|
|
69
70
|
testImplementation "junit:junit:$junitVersion"
|
|
70
71
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
@@ -807,7 +807,6 @@ public class CameraXView implements LifecycleOwner, LifecycleObserver {
|
|
|
807
807
|
int width = sessionConfig.getWidth();
|
|
808
808
|
int height = sessionConfig.getHeight();
|
|
809
809
|
String aspectRatio = sessionConfig.getAspectRatio();
|
|
810
|
-
String aspectMode = sessionConfig.getAspectMode();
|
|
811
810
|
|
|
812
811
|
// Get comprehensive display information
|
|
813
812
|
int screenWidthPx, screenHeightPx;
|
|
@@ -877,7 +876,7 @@ public class CameraXView implements LifecycleOwner, LifecycleObserver {
|
|
|
877
876
|
);
|
|
878
877
|
|
|
879
878
|
// Apply aspect ratio if specified
|
|
880
|
-
if (aspectRatio != null && !aspectRatio.isEmpty() && sessionConfig.isCentered()
|
|
879
|
+
if (aspectRatio != null && !aspectRatio.isEmpty() && sessionConfig.isCentered()) {
|
|
881
880
|
String[] ratios = aspectRatio.split(":");
|
|
882
881
|
if (ratios.length == 2) {
|
|
883
882
|
try {
|
|
@@ -34,7 +34,7 @@ extension UIWindow {
|
|
|
34
34
|
*/
|
|
35
35
|
@objc(CameraPreview)
|
|
36
36
|
public class CameraPreview: CAPPlugin, CAPBridgedPlugin, CLLocationManagerDelegate {
|
|
37
|
-
private let pluginVersion: String = "8.3.
|
|
37
|
+
private let pluginVersion: String = "8.3.2"
|
|
38
38
|
public let identifier = "CameraPreviewPlugin"
|
|
39
39
|
public let jsName = "CameraPreview"
|
|
40
40
|
public let pluginMethods: [CAPPluginMethod] = [
|