capacitor-rfid-plugin-ox 0.0.3 → 0.0.5

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.
@@ -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",
3
+ "version": "0.0.5",
4
4
  "description": "rfid reader (not ready to use)",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -31,7 +31,7 @@
31
31
  "scripts": {
32
32
  "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
33
33
  "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
34
- "verify:android": "cd android && ./gradlew clean build test && cd ..",
34
+ "verify:android": "cd android && ./gradlew clean build test && cd .. -Xlint:unchecked",
35
35
  "verify:web": "npm run build",
36
36
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
37
37
  "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",