@capgo/capacitor-zebra-datawedge 8.1.8 → 8.1.10

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.
@@ -27,6 +27,8 @@ public final class ZebraDataWedge {
27
27
  public static final String EXTRA_SCAN_SOURCE = "com.symbol.datawedge.source";
28
28
  public static final String EXTRA_SCAN_DECODE_MODE = "com.symbol.datawedge.decode_mode";
29
29
  public static final String EXTRA_NOTIFICATION = "com.symbol.datawedge.api.NOTIFICATION";
30
+ public static final String EXTRA_APPLICATION_NAME = "com.symbol.datawedge.api.APPLICATION_NAME";
31
+ public static final String EXTRA_NOTIFICATION_TYPE = "com.symbol.datawedge.api.NOTIFICATION_TYPE";
30
32
 
31
33
  public static final String EXTRA_SEND_RESULT = "SEND_RESULT";
32
34
  public static final String EXTRA_COMMAND_IDENTIFIER = "COMMAND_IDENTIFIER";
@@ -205,8 +205,8 @@ public class ZebraDataWedgePlugin extends Plugin {
205
205
  ensureIntentAction(intentAction);
206
206
  }
207
207
  Bundle options = new Bundle();
208
- options.putString("APPLICATION_NAME", call.getString("appName", getContext().getPackageName()));
209
- options.putString("NOTIFICATION_TYPE", notificationType);
208
+ options.putString(ZebraDataWedge.EXTRA_APPLICATION_NAME, call.getString("appName", getContext().getPackageName()));
209
+ options.putString(ZebraDataWedge.EXTRA_NOTIFICATION_TYPE, notificationType);
210
210
  Intent intent = ZebraDataWedge.newIntent();
211
211
  intent.putExtra(ZebraDataWedge.CMD_REGISTER_FOR_NOTIFICATION, options);
212
212
  sendCommand(call, intent, "register-for-notification", this::emptyResponse);
@@ -219,8 +219,8 @@ public class ZebraDataWedgePlugin extends Plugin {
219
219
  return;
220
220
  }
221
221
  Bundle options = new Bundle();
222
- options.putString("APPLICATION_NAME", call.getString("appName", getContext().getPackageName()));
223
- options.putString("NOTIFICATION_TYPE", notificationType);
222
+ options.putString(ZebraDataWedge.EXTRA_APPLICATION_NAME, call.getString("appName", getContext().getPackageName()));
223
+ options.putString(ZebraDataWedge.EXTRA_NOTIFICATION_TYPE, notificationType);
224
224
  Intent intent = ZebraDataWedge.newIntent();
225
225
  intent.putExtra(ZebraDataWedge.CMD_UNREGISTER_FOR_NOTIFICATION, options);
226
226
  sendCommand(call, intent, "unregister-for-notification", this::emptyResponse);
@@ -410,11 +410,13 @@ public class ZebraDataWedgePlugin extends Plugin {
410
410
  }
411
411
  Bundle options = new Bundle();
412
412
  options.putString("REPORTING_ENABLED", Boolean.toString(reportingEnabled));
413
- if (call.hasOption("reportingGenerateOption")) {
414
- options.putString("REPORTING_GENERATE_OPTION", call.getString("reportingGenerateOption"));
413
+ String reportingGenerateOption = call.getString("reportingGenerateOption");
414
+ if (reportingGenerateOption != null) {
415
+ options.putString("REPORTING_GENERATE_OPTION", reportingGenerateOption);
415
416
  }
416
- if (call.hasOption("reportingShowForManualImport")) {
417
- options.putString("REPORTING_SHOW_FOR_MANUAL_IMPORT", Boolean.toString(call.getBoolean("reportingShowForManualImport", false)));
417
+ Boolean reportingShowForManualImport = call.getBoolean("reportingShowForManualImport");
418
+ if (reportingShowForManualImport != null) {
419
+ options.putString("REPORTING_SHOW_FOR_MANUAL_IMPORT", Boolean.toString(reportingShowForManualImport));
418
420
  }
419
421
  Intent intent = ZebraDataWedge.newIntent();
420
422
  intent.putExtra(ZebraDataWedge.CMD_SET_REPORTING_OPTIONS, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-zebra-datawedge",
3
- "version": "8.1.8",
3
+ "version": "8.1.10",
4
4
  "description": "Capacitor plugin for Zebra DataWedge profile management, notifications, queries, and soft scanning on Zebra Android devices.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -50,6 +50,7 @@
50
50
  "watch": "tsc --watch",
51
51
  "prepublishOnly": "bun run build",
52
52
  "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
53
+ "check:cap9-deprecated": "node scripts/check-cap9-deprecated.mjs",
53
54
  "example:install": "cd example-app && bun install --frozen-lockfile",
54
55
  "example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
55
56
  "changelog:ai": "node scripts/generate-ai-changelog.mjs"