react-native-rectangle-doc-scanner 3.225.0 → 3.226.0

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.
@@ -9,7 +9,6 @@ import android.graphics.Matrix
9
9
  import android.graphics.Rect
10
10
  import android.graphics.YuvImage
11
11
  import android.util.Log
12
- import android.util.Size
13
12
  import android.view.Surface
14
13
  import androidx.camera.core.AspectRatio
15
14
  import androidx.camera.core.Camera
@@ -175,9 +174,9 @@ class CameraController(
175
174
 
176
175
  val rotation = previewView.display?.rotation ?: Surface.ROTATION_0
177
176
 
178
- // Build Preview ONLY with minimal resolution to reduce HAL load
177
+ // Build Preview without a fixed size to avoid unsupported stream configs.
179
178
  preview = Preview.Builder()
180
- .setTargetResolution(Size(640, 480))
179
+ .setTargetAspectRatio(AspectRatio.RATIO_4_3)
181
180
  .setTargetRotation(rotation)
182
181
  .build()
183
182
  .also {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "3.225.0",
3
+ "version": "3.226.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",