@capgo/camera-preview 8.3.0 → 8.3.1

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.
@@ -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() && !"cover".equals(aspectMode)) {
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.0"
37
+ private let pluginVersion: String = "8.3.1"
38
38
  public let identifier = "CameraPreviewPlugin"
39
39
  public let jsName = "CameraPreview"
40
40
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/camera-preview",
3
- "version": "8.3.0",
3
+ "version": "8.3.1",
4
4
  "description": "Camera preview",
5
5
  "license": "MPL-2.0",
6
6
  "repository": {