@scrumble-nl/react-native-honeywell-scanner 1.5.0 → 1.6.0-beta.1
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
|
@@ -123,12 +123,12 @@ afterEvaluate { project ->
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
|
|
126
|
-
|
|
126
|
+
archiveClassifier = 'javadoc'
|
|
127
127
|
from androidJavadoc.destinationDir
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
task androidSourcesJar(type: Jar) {
|
|
131
|
-
|
|
131
|
+
archiveClassifier = 'sources'
|
|
132
132
|
from android.sourceSets.main.java.srcDirs
|
|
133
133
|
include '**/*.java'
|
|
134
134
|
}
|
package/android/src/main/java/com/scrumble/honeywellscannerinterface/HoneywellScannerModule.java
CHANGED
|
@@ -20,7 +20,7 @@ import static com.scrumble.honeywellscannerinterface.HoneywellScannerPackage.Hon
|
|
|
20
20
|
public class HoneywellScannerModule extends ReactContextBaseJavaModule implements BarcodeReader.BarcodeListener {
|
|
21
21
|
|
|
22
22
|
// Debugging
|
|
23
|
-
private static final boolean D =
|
|
23
|
+
private static final boolean D = false;
|
|
24
24
|
|
|
25
25
|
private final ReactApplicationContext reactContext;
|
|
26
26
|
private AidcManager manager;
|
|
@@ -60,8 +60,6 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
|
|
|
60
60
|
if (D) Log.d(HoneyWellTAG, "HoneywellBarcodeReader - Barcode scan read");
|
|
61
61
|
WritableMap params = Arguments.createMap();
|
|
62
62
|
params.putString("data", barcodeReadEvent.getBarcodeData());
|
|
63
|
-
params.putString("aimId", barcodeReadEvent.getAimId());
|
|
64
|
-
|
|
65
63
|
sendEvent(BARCODE_READ_SUCCESS, params);
|
|
66
64
|
}
|
|
67
65
|
|
|
@@ -85,8 +83,6 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
|
|
|
85
83
|
reader.setProperty(BarcodeReader.PROPERTY_EAN_13_TWO_CHAR_ADDENDA_ENABLED, true);
|
|
86
84
|
reader.setProperty(BarcodeReader.PROPERTY_EAN_13_FIVE_CHAR_ADDENDA_ENABLED, true);
|
|
87
85
|
reader.setProperty(BarcodeReader.PROPERTY_DATAMATRIX_ENABLED, true);
|
|
88
|
-
reader.setProperty(BarcodeReader.PROPERTY_GS1_128_ENABLED, true);
|
|
89
|
-
reader.setProperty(BarcodeReader.DATA_PROCESSOR_SYMBOLOGY_ID_AIM, true);
|
|
90
86
|
promise.resolve(true);
|
|
91
87
|
} catch (ScannerUnavailableException | UnsupportedPropertyException e) {
|
|
92
88
|
promise.resolve(false);
|
package/dist/index.d.ts
CHANGED
|
@@ -3,12 +3,9 @@
|
|
|
3
3
|
* @param {String} eventName Name of event one of barcodeReadSuccess, barcodeReadFail
|
|
4
4
|
* @param {Function} handler Event handler
|
|
5
5
|
*/
|
|
6
|
-
export declare type
|
|
6
|
+
export declare type ScanEvent = (event: {
|
|
7
7
|
data: string;
|
|
8
|
-
|
|
9
|
-
charset: string;
|
|
10
|
-
};
|
|
11
|
-
export declare type ScanEvent = (event: BarcodeEvent) => void;
|
|
8
|
+
}) => void;
|
|
12
9
|
interface Scanner {
|
|
13
10
|
registerListener: (event: ScanEvent) => void;
|
|
14
11
|
clearEventListeners: () => void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrumble-nl/react-native-honeywell-scanner",
|
|
3
3
|
"title": "React Native Honeywell Scanner",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.0-beta.1",
|
|
5
5
|
"description": "Bridge to use the Honeywell scanner",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"react-native",
|
|
15
15
|
"honeywell"
|
|
16
16
|
],
|
|
17
|
-
"author": "Scrumble <
|
|
17
|
+
"author": "Scrumble <info@scrumble.nl> (https://www.scrumble.nl)",
|
|
18
18
|
"contributors": [
|
|
19
19
|
"AMI3GO Ltd <enquiry@ami3go.com> (https://ami3go.com)"
|
|
20
20
|
],
|