@nitra/zebra 6.1.4 → 6.1.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.
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <plugins>
3
+ <plugin name="ZebraPrinter" class="com.nitra.zebra_printer_plugin.ZebraPrinter" />
4
+ </plugins>
@@ -0,0 +1,14 @@
1
+ ext {
2
+ minSdkVersion = 22
3
+ compileSdkVersion = 34
4
+ targetSdkVersion = 34
5
+ androidxActivityVersion = '1.8.2'
6
+ androidxAppCompatVersion = '1.6.1'
7
+ androidxCoordinatorLayoutVersion = '1.2.0'
8
+ androidxCoreVersion = '1.12.0'
9
+ androidxFragmentVersion = '1.6.2'
10
+ junitVersion = '4.13.2'
11
+ androidxJunitVersion = '1.1.5'
12
+ androidxEspressoCoreVersion = '3.5.1'
13
+ cordovaAndroidVersion = '12.0.0'
14
+ }
package/dist/plugin.js ADDED
@@ -0,0 +1,219 @@
1
+ import { WebPlugin, registerPlugin } from '@capacitor/core';
2
+
3
+ /**
4
+ * @typedef {import('../definitions').EchoOptions} EchoOptions
5
+ * @typedef {import('../definitions').EchoResult} EchoResult
6
+ * @typedef {import('../definitions').PrintTextOptions} PrintTextOptions
7
+ * @typedef {import('../definitions').PrintResult} PrintResult
8
+ * @typedef {import('../definitions').PrinterStatus} PrinterStatus
9
+ * @typedef {import('../definitions').PrinterStatusResult} PrinterStatusResult
10
+ * @typedef {import('../definitions').ScanResult} ScanResult
11
+ * @typedef {import('../definitions').ConnectOptions} ConnectOptions
12
+ * @typedef {import('../definitions').ConnectResult} ConnectResult
13
+ * @typedef {import('../definitions').DisconnectResult} DisconnectResult
14
+ * @typedef {import('../definitions').PermissionResult} PermissionResult
15
+ */
16
+
17
+ class ZebraPrinterWeb extends WebPlugin {
18
+ /**
19
+ * Echo a value
20
+ * @param {EchoOptions} options - Options containing the value to echo
21
+ * @returns {Promise<EchoResult>} Promise that resolves with the echoed value
22
+ */
23
+ // eslint-disable-next-line require-await
24
+ async echo(options) {
25
+ // eslint-disable-next-line no-console
26
+ console.log('ZebraPrinter: echo called with options:', options);
27
+ return {
28
+ value: options.value,
29
+ };
30
+ }
31
+
32
+ /**
33
+ * Check if required permissions are granted
34
+ * @returns {Promise<PermissionResult>} Promise that resolves with permission status
35
+ */
36
+ // eslint-disable-next-line require-await
37
+ async checkPermissions() {
38
+ // eslint-disable-next-line no-console
39
+ console.warn(
40
+ 'ZebraPrinter: checkPermissions called on web platform - not supported'
41
+ );
42
+ return {
43
+ hasPermissions: false,
44
+ missingPermissions: ['bluetooth', 'location'],
45
+ bluetoothSupported: false,
46
+ bleSupported: false,
47
+ };
48
+ }
49
+
50
+ /**
51
+ * Request required permissions
52
+ * @returns {Promise<PermissionResult>} Promise that resolves with permission status
53
+ */
54
+ // eslint-disable-next-line require-await
55
+ async requestPermissions() {
56
+ // eslint-disable-next-line no-console
57
+ console.warn(
58
+ 'ZebraPrinter: requestPermissions called on web platform - not supported'
59
+ );
60
+ return {
61
+ hasPermissions: false,
62
+ missingPermissions: ['bluetooth', 'location'],
63
+ bluetoothSupported: false,
64
+ bleSupported: false,
65
+ };
66
+ }
67
+
68
+ /**
69
+ * Print text to the connected printer
70
+ * @param {PrintTextOptions} _options - Options containing the text to print
71
+ * @returns {Promise<PrintResult>} Promise that resolves with print result
72
+ */
73
+ // eslint-disable-next-line require-await
74
+ async printText(_options) {
75
+ // eslint-disable-next-line no-console
76
+ console.warn(
77
+ 'ZebraPrinter: printText called on web platform - not supported'
78
+ );
79
+ return {
80
+ success: false,
81
+ message:
82
+ 'Zebra Printer Plugin is not available on web platform. Please use a native mobile device (iOS/Android).',
83
+ error: 'Web platform not supported',
84
+ };
85
+ }
86
+
87
+ /**
88
+ * Get printer status
89
+ * @returns {Promise<PrinterStatus>} Promise that resolves with printer status
90
+ */
91
+ // eslint-disable-next-line require-await
92
+ async getStatus() {
93
+ // eslint-disable-next-line no-console
94
+ console.warn(
95
+ 'ZebraPrinter: getStatus called on web platform - not supported'
96
+ );
97
+ return {
98
+ connected: false,
99
+ status: 'disconnected',
100
+ };
101
+ }
102
+
103
+ /**
104
+ * Scan for available printers
105
+ * @returns {Promise<ScanResult>} Promise that resolves with scan results
106
+ */
107
+ // eslint-disable-next-line require-await
108
+ async scanForPrinters() {
109
+ // eslint-disable-next-line no-console
110
+ console.warn(
111
+ 'ZebraPrinter: scanForPrinters called on web platform - not supported'
112
+ );
113
+ return {
114
+ success: false,
115
+ error:
116
+ 'Zebra Printer Plugin is not available on web platform. Please use a native mobile device (iOS/Android).',
117
+ printers: [],
118
+ count: 0,
119
+ };
120
+ }
121
+
122
+ /**
123
+ * Connect to a printer
124
+ * @param {ConnectOptions} _options - Connection options
125
+ * @returns {Promise<ConnectResult>} Promise that resolves with connection result
126
+ */
127
+ // eslint-disable-next-line require-await
128
+ async connect(_options) {
129
+ // eslint-disable-next-line no-console
130
+ console.warn(
131
+ 'ZebraPrinter: connect called on web platform - not supported'
132
+ );
133
+ return {
134
+ success: false,
135
+ connected: false,
136
+ error:
137
+ 'Zebra Printer Plugin is not available on web platform. Please use a native mobile device (iOS/Android).',
138
+ };
139
+ }
140
+
141
+ /**
142
+ * Connect to printer by MAC address
143
+ * @param {ConnectOptions} _options - Connection options with address
144
+ * @returns {Promise<ConnectResult>} Promise that resolves with connection result
145
+ */
146
+ // eslint-disable-next-line require-await
147
+ async connectByAddress(_options) {
148
+ // eslint-disable-next-line no-console
149
+ console.warn(
150
+ 'ZebraPrinter: connectByAddress called on web platform - not supported'
151
+ );
152
+ return {
153
+ success: false,
154
+ connected: false,
155
+ error:
156
+ 'Zebra Printer Plugin is not available on web platform. Please use a native mobile device (iOS/Android).',
157
+ };
158
+ }
159
+
160
+ /**
161
+ * Check device by MAC address
162
+ * @param {ConnectOptions} _options - Connection options with address
163
+ * @returns {Promise<ConnectResult>} Promise that resolves with device info
164
+ */
165
+ // eslint-disable-next-line require-await
166
+ async checkDeviceByAddress(_options) {
167
+ // eslint-disable-next-line no-console
168
+ console.warn(
169
+ 'ZebraPrinter: checkDeviceByAddress called on web platform - not supported'
170
+ );
171
+ return {
172
+ success: false,
173
+ error:
174
+ 'Zebra Printer Plugin is not available on web platform. Please use a native mobile device (iOS/Android).',
175
+ };
176
+ }
177
+
178
+ /**
179
+ * Disconnect from the printer
180
+ * @returns {Promise<DisconnectResult>} Promise that resolves with disconnection result
181
+ */
182
+ // eslint-disable-next-line require-await
183
+ async disconnect() {
184
+ // eslint-disable-next-line no-console
185
+ console.warn(
186
+ 'ZebraPrinter: disconnect called on web platform - not supported'
187
+ );
188
+ return {
189
+ success: true,
190
+ connected: false,
191
+ };
192
+ }
193
+
194
+ /**
195
+ * Check printer status with ZPL command
196
+ * @returns {Promise<PrinterStatusResult>} Promise that resolves with printer status result
197
+ */
198
+ // eslint-disable-next-line require-await
199
+ async checkPrinterStatus() {
200
+ // eslint-disable-next-line no-console
201
+ console.warn(
202
+ 'ZebraPrinter: checkPrinterStatus called on web platform - not supported'
203
+ );
204
+ return {
205
+ success: false,
206
+ message:
207
+ 'Zebra Printer Plugin is not available on web platform. Please use a native mobile device (iOS/Android).',
208
+ error: 'Web platform not supported',
209
+ };
210
+ }
211
+ }
212
+
213
+ const ZebraPrinter = registerPlugin('ZebraPrinter', {
214
+ web: () => new ZebraPrinterWeb(),
215
+ // iOS and Android plugins will be auto-discovered via the Capacitor config
216
+ });
217
+
218
+ export { ZebraPrinter };
219
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sources":["../src/web/index.js","../src/index.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\n/**\n * @typedef {import('../definitions').EchoOptions} EchoOptions\n * @typedef {import('../definitions').EchoResult} EchoResult\n * @typedef {import('../definitions').PrintTextOptions} PrintTextOptions\n * @typedef {import('../definitions').PrintResult} PrintResult\n * @typedef {import('../definitions').PrinterStatus} PrinterStatus\n * @typedef {import('../definitions').PrinterStatusResult} PrinterStatusResult\n * @typedef {import('../definitions').ScanResult} ScanResult\n * @typedef {import('../definitions').ConnectOptions} ConnectOptions\n * @typedef {import('../definitions').ConnectResult} ConnectResult\n * @typedef {import('../definitions').DisconnectResult} DisconnectResult\n * @typedef {import('../definitions').PermissionResult} PermissionResult\n */\n\nexport class ZebraPrinterWeb extends WebPlugin {\n /**\n * Echo a value\n * @param {EchoOptions} options - Options containing the value to echo\n * @returns {Promise<EchoResult>} Promise that resolves with the echoed value\n */\n // eslint-disable-next-line require-await\n async echo(options) {\n // eslint-disable-next-line no-console\n console.log('ZebraPrinter: echo called with options:', options);\n return {\n value: options.value,\n };\n }\n\n /**\n * Check if required permissions are granted\n * @returns {Promise<PermissionResult>} Promise that resolves with permission status\n */\n // eslint-disable-next-line require-await\n async checkPermissions() {\n // eslint-disable-next-line no-console\n console.warn(\n 'ZebraPrinter: checkPermissions called on web platform - not supported'\n );\n return {\n hasPermissions: false,\n missingPermissions: ['bluetooth', 'location'],\n bluetoothSupported: false,\n bleSupported: false,\n };\n }\n\n /**\n * Request required permissions\n * @returns {Promise<PermissionResult>} Promise that resolves with permission status\n */\n // eslint-disable-next-line require-await\n async requestPermissions() {\n // eslint-disable-next-line no-console\n console.warn(\n 'ZebraPrinter: requestPermissions called on web platform - not supported'\n );\n return {\n hasPermissions: false,\n missingPermissions: ['bluetooth', 'location'],\n bluetoothSupported: false,\n bleSupported: false,\n };\n }\n\n /**\n * Print text to the connected printer\n * @param {PrintTextOptions} _options - Options containing the text to print\n * @returns {Promise<PrintResult>} Promise that resolves with print result\n */\n // eslint-disable-next-line require-await\n async printText(_options) {\n // eslint-disable-next-line no-console\n console.warn(\n 'ZebraPrinter: printText called on web platform - not supported'\n );\n return {\n success: false,\n message:\n 'Zebra Printer Plugin is not available on web platform. Please use a native mobile device (iOS/Android).',\n error: 'Web platform not supported',\n };\n }\n\n /**\n * Get printer status\n * @returns {Promise<PrinterStatus>} Promise that resolves with printer status\n */\n // eslint-disable-next-line require-await\n async getStatus() {\n // eslint-disable-next-line no-console\n console.warn(\n 'ZebraPrinter: getStatus called on web platform - not supported'\n );\n return {\n connected: false,\n status: 'disconnected',\n };\n }\n\n /**\n * Scan for available printers\n * @returns {Promise<ScanResult>} Promise that resolves with scan results\n */\n // eslint-disable-next-line require-await\n async scanForPrinters() {\n // eslint-disable-next-line no-console\n console.warn(\n 'ZebraPrinter: scanForPrinters called on web platform - not supported'\n );\n return {\n success: false,\n error:\n 'Zebra Printer Plugin is not available on web platform. Please use a native mobile device (iOS/Android).',\n printers: [],\n count: 0,\n };\n }\n\n /**\n * Connect to a printer\n * @param {ConnectOptions} _options - Connection options\n * @returns {Promise<ConnectResult>} Promise that resolves with connection result\n */\n // eslint-disable-next-line require-await\n async connect(_options) {\n // eslint-disable-next-line no-console\n console.warn(\n 'ZebraPrinter: connect called on web platform - not supported'\n );\n return {\n success: false,\n connected: false,\n error:\n 'Zebra Printer Plugin is not available on web platform. Please use a native mobile device (iOS/Android).',\n };\n }\n\n /**\n * Connect to printer by MAC address\n * @param {ConnectOptions} _options - Connection options with address\n * @returns {Promise<ConnectResult>} Promise that resolves with connection result\n */\n // eslint-disable-next-line require-await\n async connectByAddress(_options) {\n // eslint-disable-next-line no-console\n console.warn(\n 'ZebraPrinter: connectByAddress called on web platform - not supported'\n );\n return {\n success: false,\n connected: false,\n error:\n 'Zebra Printer Plugin is not available on web platform. Please use a native mobile device (iOS/Android).',\n };\n }\n\n /**\n * Check device by MAC address\n * @param {ConnectOptions} _options - Connection options with address\n * @returns {Promise<ConnectResult>} Promise that resolves with device info\n */\n // eslint-disable-next-line require-await\n async checkDeviceByAddress(_options) {\n // eslint-disable-next-line no-console\n console.warn(\n 'ZebraPrinter: checkDeviceByAddress called on web platform - not supported'\n );\n return {\n success: false,\n error:\n 'Zebra Printer Plugin is not available on web platform. Please use a native mobile device (iOS/Android).',\n };\n }\n\n /**\n * Disconnect from the printer\n * @returns {Promise<DisconnectResult>} Promise that resolves with disconnection result\n */\n // eslint-disable-next-line require-await\n async disconnect() {\n // eslint-disable-next-line no-console\n console.warn(\n 'ZebraPrinter: disconnect called on web platform - not supported'\n );\n return {\n success: true,\n connected: false,\n };\n }\n\n /**\n * Check printer status with ZPL command\n * @returns {Promise<PrinterStatusResult>} Promise that resolves with printer status result\n */\n // eslint-disable-next-line require-await\n async checkPrinterStatus() {\n // eslint-disable-next-line no-console\n console.warn(\n 'ZebraPrinter: checkPrinterStatus called on web platform - not supported'\n );\n return {\n success: false,\n message:\n 'Zebra Printer Plugin is not available on web platform. Please use a native mobile device (iOS/Android).',\n error: 'Web platform not supported',\n };\n }\n}\n","import { registerPlugin } from '@capacitor/core';\n\nimport { ZebraPrinterWeb } from './web';\n\nconst ZebraPrinter = registerPlugin('ZebraPrinter', {\n web: () => new ZebraPrinterWeb(),\n // iOS and Android plugins will be auto-discovered via the Capacitor config\n});\n\nexport { ZebraPrinter };\n"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAM,eAAe,SAAS,SAAS,CAAC;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,MAAM,IAAI,CAAC,OAAO,EAAE;AACtB;AACA,IAAI,OAAO,CAAC,GAAG,CAAC,yCAAyC,EAAE,OAAO,CAAC;AACnE,IAAI,OAAO;AACX,MAAM,KAAK,EAAE,OAAO,CAAC,KAAK;AAC1B,KAAK;AACL,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA,EAAE,MAAM,gBAAgB,GAAG;AAC3B;AACA,IAAI,OAAO,CAAC,IAAI;AAChB,MAAM;AACN,KAAK;AACL,IAAI,OAAO;AACX,MAAM,cAAc,EAAE,KAAK;AAC3B,MAAM,kBAAkB,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC;AACnD,MAAM,kBAAkB,EAAE,KAAK;AAC/B,MAAM,YAAY,EAAE,KAAK;AACzB,KAAK;AACL,EAAE;;AAEF;AACA;AACA;AAC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@@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <!-- Bluetooth permissions for iOS 13+ -->
6
+ <key>NSBluetoothAlwaysUsageDescription</key>
7
+ <string>This app needs Bluetooth access to connect to Zebra printers for printing labels and
8
+ receipts.</string>
9
+
10
+ <!-- Legacy Bluetooth permissions for iOS 12 and earlier -->
11
+ <key>NSBluetoothPeripheralUsageDescription</key>
12
+ <string>This app needs Bluetooth access to connect to Zebra printers for printing labels and
13
+ receipts.</string>
14
+
15
+ <!-- Background modes for Bluetooth -->
16
+ <key>UIBackgroundModes</key>
17
+ <array>
18
+ <string>bluetooth-central</string>
19
+ </array>
20
+
21
+ <!-- Required device capabilities -->
22
+ <key>UIRequiredDeviceCapabilities</key>
23
+ <array>
24
+ <string>bluetooth-le</string>
25
+ </array>
26
+
27
+ <!-- Privacy usage descriptions for better permission handling -->
28
+ <key>NSLocationWhenInUseUsageDescription</key>
29
+ <string>This app needs location access to scan for nearby Bluetooth devices like Zebra
30
+ printers.</string>
31
+
32
+ <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
33
+ <string>This app needs location access to scan for nearby Bluetooth devices like Zebra
34
+ printers.</string>
35
+ </dict>
36
+ </plist>
@@ -0,0 +1,16 @@
1
+ #import <Foundation/Foundation.h>
2
+ #import <Capacitor/Capacitor.h>
3
+
4
+ // Define the plugin using the CAP_PLUGIN macro
5
+ CAP_PLUGIN(ZebraPrinterPlugin, "ZebraPrinter",
6
+ CAP_PLUGIN_METHOD(echo, CAPPluginReturnPromise);
7
+ CAP_PLUGIN_METHOD(checkPermissions, CAPPluginReturnPromise);
8
+ CAP_PLUGIN_METHOD(requestPermissions, CAPPluginReturnPromise);
9
+ CAP_PLUGIN_METHOD(printText, CAPPluginReturnPromise);
10
+ CAP_PLUGIN_METHOD(getStatus, CAPPluginReturnPromise);
11
+ CAP_PLUGIN_METHOD(checkPrinterStatus, CAPPluginReturnPromise);
12
+ CAP_PLUGIN_METHOD(scanForPrinters, CAPPluginReturnPromise);
13
+ CAP_PLUGIN_METHOD(connect, CAPPluginReturnPromise);
14
+ CAP_PLUGIN_METHOD(disconnect, CAPPluginReturnPromise);
15
+ )
16
+