react-native-scanbot-barcode-scanner-sdk 4.2.0-beta.4 → 4.2.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.
@@ -4,7 +4,7 @@ require "json"
4
4
 
5
5
  package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
6
6
 
7
- ScanbotBarcodeSDKWrapperVersion = '4.2.2.0-beta.2'
7
+ ScanbotBarcodeSDKWrapperVersion = '4.2.2.0'
8
8
 
9
9
  Pod::Spec.new do |s|
10
10
  s.name = "RNScanbotBarcodeSDK"
@@ -167,7 +167,7 @@ public class ScanbotBarcodeCameraView extends FrameLayout implements BarcodeDete
167
167
  }
168
168
  finderOverlayView.setStrokeColor(configuration.getFinderLineColorAsInt());
169
169
 
170
- if (configuration.getFinderInset() != null) {
170
+ if (configuration.getFinderInset() != null && !configuration.getFinderInset().isEmpty()) {
171
171
  finderOverlayView.setFinderInset(
172
172
  ScanbotViewUtils.convertDpToPx(getResources(), configuration.getFinderInset().left),
173
173
  ScanbotViewUtils.convertDpToPx(getResources(), configuration.getFinderInset().top),
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "react-native-scanbot-barcode-scanner-sdk",
3
3
  "title": "Scanbot Barcode Scanner SDK for React Native",
4
- "version": "4.2.0-beta.4",
4
+ "version": "4.2.0",
5
5
  "scanbot": {
6
- "iosWrapperVersion": "4.2.2.0-beta.2"
6
+ "iosWrapperVersion": "4.2.2.0"
7
7
  },
8
8
  "description": "Scanbot Barcode Scanner SDK React Native Plugin for Android and iOS",
9
9
  "main": "index.js",
@@ -194,7 +194,7 @@ export class ScanbotBarcodeCameraView extends React.Component<Properties, {}> {
194
194
  outObj.cameraZoomFactor = obj.cameraZoomFactor ?? -1;
195
195
  outObj.finderAspectRatio = obj.finderAspectRatio ?? { width: -1, height: -1 };
196
196
  outObj.finderBackgroundOpacity = obj.finderBackgroundOpacity ?? -1;
197
- outObj.finderInset = obj.finderInset
197
+ outObj.finderInset = obj.finderInset ?? { left: -1, top: -1, bottom: -1, right: -1 };
198
198
  outObj.finderLineWidth = obj.finderLineWidth ?? -1;
199
199
  outObj.maximumTextLength = obj.maximumTextLength ?? -1;
200
200
  outObj.minimumTextLength = obj.minimumTextLength ?? -1;