react-native-scanbot-barcode-scanner-sdk 3.1.0-beta7 → 3.1.0-beta8

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.
@@ -7,6 +7,7 @@ package io.scanbot.barcodesdk.plugin.reactnative;
7
7
 
8
8
  public class ScanbotBarcodeSdkConfiguration {
9
9
  private boolean loggingEnabled = false;
10
+ private boolean enableNativeLogging = false;
10
11
  private String licenseKey;
11
12
  private String storageBaseDirectory = null;
12
13
  private boolean useCameraX = false;
@@ -60,4 +61,12 @@ public class ScanbotBarcodeSdkConfiguration {
60
61
  public void setAllowXnnpackAcceleration(boolean allowXnnpackAcceleration) {
61
62
  this.allowXnnpackAcceleration = allowXnnpackAcceleration;
62
63
  }
64
+
65
+ public boolean getEnableNativeLogging() {
66
+ return enableNativeLogging;
67
+ }
68
+
69
+ public void setEnableNativeLogging(boolean enableNativeLogging) {
70
+ this.enableNativeLogging = enableNativeLogging;
71
+ }
63
72
  }
@@ -96,7 +96,7 @@ public class ScanbotBarcodeSdkModule extends ReactContextBaseJavaModule implemen
96
96
  final String callbackMessage;
97
97
 
98
98
  final ScanbotBarcodeScannerSDKInitializer initializer = new ScanbotBarcodeScannerSDKInitializer();
99
- initializer.withLogging(configuration.isLoggingEnabled(), configuration.isLoggingEnabled());
99
+ initializer.withLogging(configuration.isLoggingEnabled(), configuration.getEnableNativeLogging());
100
100
  LogUtils.setLoggingEnabled(configuration.isLoggingEnabled());
101
101
 
102
102
  initializer.allowGpuAcceleration(configuration.getAllowGpuAcceleration());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-scanbot-barcode-scanner-sdk",
3
3
  "title": "Scanbot Barcode Scanner SDK for React Native",
4
- "version": "3.1.0-beta7",
4
+ "version": "3.1.0-beta8",
5
5
  "description": "React Native plugin for the Scanbot Barcode Scanner SDK on Android and iOS",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -113,13 +113,6 @@ export interface BarcodeScannerConfiguration {
113
113
  * Android only.
114
114
  */
115
115
  useButtonsAllCaps?: boolean;
116
- /**
117
- * With this option, the scanner assumes that the barcode can be a GS1 barcode, and modify the behavior as needed.
118
- * You can set it to 'false', if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29).
119
- * The default is 'true'.
120
- * NOTE: Currently works for CODE128 barcodes only!
121
- */
122
- enableGS1Decoding?: boolean;
123
116
  /**
124
117
  * The relative initial zoom level of the camera in the range [0,1], where 0 is zoomed out and 1 is zoomed in.
125
118
  * The default value is 0.
@@ -292,14 +285,6 @@ export interface BatchBarcodeScannerConfiguration {
292
285
  * NOTE: This feature works on ITF and MSI Plessey barcodes only.
293
286
  */
294
287
  minimum1DBarcodesQuietZone?: number;
295
- /**
296
- * With this option, the scanner assumes that the barcode can be a GS1 barcode, and modify the behavior as needed.
297
- * You can set it to 'false', if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29).
298
- * The default is 'true'.
299
- * NOTE: Currently works for CODE128 barcodes only!
300
- */
301
- enableGS1Decoding?: boolean;
302
-
303
288
  /**
304
289
  * The engine mode of the barcode recognizer. Defaults to NEXT_GEN.
305
290
  * To use legacy recognizer, please specify LEGACY
package/src/model.ts CHANGED
@@ -11,6 +11,10 @@ export interface InitializationOptions {
11
11
  */
12
12
  loggingEnabled?: boolean;
13
13
  /**
14
+ * Enables Scanbot SDK Core native logging (default is false; Android only)
15
+ */
16
+ enableNativeLogging?: boolean;
17
+ /**
14
18
  * The quality of stored images, from (1 to 100). Defaults to 80.
15
19
  */
16
20
  storageImageQuality?: number;
@@ -36,6 +40,7 @@ export interface InitializationOptions {
36
40
  /**
37
41
  * Enables/disables XNNPACK acceleration for TensorFlow ML models, which provides
38
42
  * highly optimized implementations of floating-point neural network operators (Android only)
43
+ * Default is `true`.
39
44
  */
40
45
  allowXnnpackAcceleration?: boolean;
41
46
  }