react-native-scanbot-barcode-scanner-sdk 4.2.0-beta.2 → 4.2.0-beta.4
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
|
@@ -4,7 +4,7 @@ def DEFAULT_COMPILE_SDK_VERSION = 31
|
|
|
4
4
|
def DEFAULT_MIN_SDK_VERSION = 21
|
|
5
5
|
def DEFAULT_TARGET_SDK_VERSION = 31
|
|
6
6
|
|
|
7
|
-
def shared_libs_version = '4.2.
|
|
7
|
+
def shared_libs_version = '4.2.0.0'
|
|
8
8
|
|
|
9
9
|
def isNewArchitectureEnabled = {
|
|
10
10
|
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
|
|
@@ -135,7 +135,7 @@ public class ScanbotBarcodeCameraView extends FrameLayout implements BarcodeDete
|
|
|
135
135
|
|
|
136
136
|
try {
|
|
137
137
|
String resultAsJson = SBWrapper.getGson().toJson(SBWrapperBarcodeScannerResult.fromNativeBarcodeResult(result));
|
|
138
|
-
|
|
138
|
+
|
|
139
139
|
WritableMap data = new WritableNativeMap();
|
|
140
140
|
data.putMap("result", JSONUtils.jsonToWritableMap(new JSONObject(resultAsJson)));
|
|
141
141
|
|
|
@@ -162,7 +162,9 @@ public class ScanbotBarcodeCameraView extends FrameLayout implements BarcodeDete
|
|
|
162
162
|
));
|
|
163
163
|
|
|
164
164
|
finderOverlayView.setVisibility(configuration.getShouldUseFinderView() ? View.VISIBLE : View.INVISIBLE);
|
|
165
|
-
|
|
165
|
+
if (configuration.getFinderLineWidth() != -1) {
|
|
166
|
+
finderOverlayView.setStrokeWidth(configuration.getFinderLineWidth());
|
|
167
|
+
}
|
|
166
168
|
finderOverlayView.setStrokeColor(configuration.getFinderLineColorAsInt());
|
|
167
169
|
|
|
168
170
|
if (configuration.getFinderInset() != null) {
|
|
@@ -195,12 +197,18 @@ public class ScanbotBarcodeCameraView extends FrameLayout implements BarcodeDete
|
|
|
195
197
|
|
|
196
198
|
b.setEngineMode(configuration.getEngineMode());
|
|
197
199
|
b.modifyAdditionalConfig(ab -> {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
+
if (configuration.getMinimumTextLength() != -1) {
|
|
201
|
+
ab.setMinimumTextLength(configuration.getMinimumTextLength());
|
|
202
|
+
}
|
|
203
|
+
if (configuration.getMaximumTextLength() != -1) {
|
|
204
|
+
ab.setMaximumTextLength(configuration.getMaximumTextLength());
|
|
205
|
+
}
|
|
200
206
|
ab.setMsiPlesseyChecksumAlgorithms(configuration.getMsiPlesseyChecksumAlgorithms());
|
|
201
207
|
ab.setStripCheckDigits(configuration.getStripCheckDigits());
|
|
202
208
|
ab.setGs1HandlingMode(configuration.getGs1HandlingMode());
|
|
203
|
-
|
|
209
|
+
if (configuration.getMinimum1DBarcodesQuietZone() != -1) {
|
|
210
|
+
ab.setMinimum1DQuietZoneSize(configuration.getMinimum1DBarcodesQuietZone());
|
|
211
|
+
}
|
|
204
212
|
ab.setLowPowerMode(configuration.getLowPowerMode());
|
|
205
213
|
ab.setCodeDensity(configuration.getCodeDensity());
|
|
206
214
|
|