@scrumble-nl/react-native-honeywell-scanner 1.0.41 → 1.0.42

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.
@@ -44,18 +44,24 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
44
44
  public void onCreate() {
45
45
  super.onCreate();
46
46
 
47
- AidcManager.addBarcodeDeviceListener(listener) {
48
- listener.onBarcodeDeviceConnectionEvent(event) {
47
+ AidcManager.addBarcodeDeviceListener(new BarcodeDeviceListener() {
48
+ @Override
49
+ public void onBarcodeDeviceConnectionEvent(BarcodeDeviceConnectionEvent event) {
49
50
  connectedDevice = event.getBarcodeReaderInfo().getName();
50
51
  }
51
- }
52
+ })
52
53
  }
53
54
 
54
55
  @Override
55
56
  public void onStop() {
56
57
  super.onStop();
57
58
 
58
- AidcManager.removeBarcodeDeviceListener(listener -> listener.onBarcodeDeviceConnectionEvent(event -> connectedDevice = event.getBarcodeReaderInfo().getName()));
59
+ AidcManager.removeBarcodeDeviceListener(new BarcodeDeviceListener() {
60
+ @Override
61
+ public void onBarcodeDeviceConnectionEvent(BarcodeDeviceConnectionEvent event) {
62
+ connectedDevice = event.getBarcodeReaderInfo().getName();
63
+ }
64
+ });
59
65
  }
60
66
 
61
67
  /**
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-v2",
4
- "version": "1.0.41",
4
+ "version": "1.0.42",
5
5
  "description": "Bridge to use the Honeywell scanner",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",