@scrumble-nl/react-native-honeywell-scanner 1.0.43 → 1.0.45

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.
@@ -2,6 +2,7 @@ package com.reactlibrary;
2
2
 
3
3
  import android.os.Build;
4
4
  import android.util.Log;
5
+ import android.os.Bundle;
5
6
  import android.app.AlertDialog;
6
7
  import android.content.DialogInterface;
7
8
 
@@ -33,16 +34,6 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
33
34
  public HoneywellScannerModule(ReactApplicationContext reactContext) {
34
35
  super(reactContext);
35
36
  this.reactContext = reactContext;
36
- }
37
-
38
- @Override
39
- public String getName() {
40
- return "HoneywellScanner";
41
- }
42
-
43
- @Override
44
- public void onCreate() {
45
- super.onCreate();
46
37
 
47
38
  AidcManager.addBarcodeDeviceListener(new BarcodeDeviceListener() {
48
39
  @Override
@@ -53,15 +44,8 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
53
44
  }
54
45
 
55
46
  @Override
56
- public void onStop() {
57
- super.onStop();
58
-
59
- AidcManager.removeBarcodeDeviceListener(new BarcodeDeviceListener() {
60
- @Override
61
- public void onBarcodeDeviceConnectionEvent(BarcodeDeviceConnectionEvent event) {
62
- connectedDevice = event.getBarcodeReaderInfo().getName();
63
- }
64
- });
47
+ public String getName() {
48
+ return "HoneywellScanner";
65
49
  }
66
50
 
67
51
  /**
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.43",
4
+ "version": "1.0.45",
5
5
  "description": "Bridge to use the Honeywell scanner",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",