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
|
|
177
|
+
// Build Preview without a fixed size to avoid unsupported stream configs.
|
|
179
178
|
preview = Preview.Builder()
|
|
180
|
-
.
|
|
179
|
+
.setTargetAspectRatio(AspectRatio.RATIO_4_3)
|
|
181
180
|
.setTargetRotation(rotation)
|
|
182
181
|
.build()
|
|
183
182
|
.also {
|
package/package.json
CHANGED