capacitor-rfid-plugin-ox 0.0.2 → 0.0.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.
|
Binary file
|
|
@@ -19,11 +19,6 @@ public class RFIDPlugin extends Plugin {
|
|
|
19
19
|
|
|
20
20
|
public RfidManager mRfidManager;
|
|
21
21
|
|
|
22
|
-
@Override
|
|
23
|
-
public void load() {
|
|
24
|
-
this.initRfid();
|
|
25
|
-
}
|
|
26
|
-
|
|
27
22
|
private void initRfid() {
|
|
28
23
|
// 在异步回调中拿到RFID实例
|
|
29
24
|
USDKManager.getInstance().init(BaseApplication.getContext(), new USDKManager.InitListener() {
|
|
@@ -39,6 +34,11 @@ public class RFIDPlugin extends Plugin {
|
|
|
39
34
|
});
|
|
40
35
|
}
|
|
41
36
|
|
|
37
|
+
@Override
|
|
38
|
+
public void load() {
|
|
39
|
+
this.initRfid();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
42
|
@PluginMethod
|
|
43
43
|
public void inventory(PluginCall call) {
|
|
44
44
|
Log.d(TAG, String.valueOf(mRfidManager.getRange()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-rfid-plugin-ox",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "rfid reader (not ready to use)",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"android/src/main/",
|
|
11
11
|
"android/build.gradle",
|
|
12
|
+
"android/libs",
|
|
12
13
|
"dist/",
|
|
13
14
|
"ios/Plugin/",
|
|
14
15
|
"CapacitorRfidPluginOx.podspec"
|