seven365-zyprinter 0.0.1

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.
Files changed (53) hide show
  1. package/Package.swift +43 -0
  2. package/README.md +186 -0
  3. package/Seven365Zyprinter.podspec +27 -0
  4. package/android/build.gradle +58 -0
  5. package/android/src/main/AndroidManifest.xml +2 -0
  6. package/android/src/main/java/com/mycompany/plugins/example/Example.java +342 -0
  7. package/android/src/main/java/com/mycompany/plugins/example/ExamplePlugin.java +161 -0
  8. package/android/src/main/res/.gitkeep +0 -0
  9. package/dist/docs.json +229 -0
  10. package/dist/esm/definitions.d.ts +56 -0
  11. package/dist/esm/definitions.js +2 -0
  12. package/dist/esm/definitions.js.map +1 -0
  13. package/dist/esm/index.d.ts +4 -0
  14. package/dist/esm/index.js +7 -0
  15. package/dist/esm/index.js.map +1 -0
  16. package/dist/esm/web.d.ts +49 -0
  17. package/dist/esm/web.js +40 -0
  18. package/dist/esm/web.js.map +1 -0
  19. package/dist/plugin.cjs.js +54 -0
  20. package/dist/plugin.cjs.js.map +1 -0
  21. package/dist/plugin.js +57 -0
  22. package/dist/plugin.js.map +1 -0
  23. package/ios/Seven365Zyprinter.podspec +28 -0
  24. package/ios/Sources/Plugin/ZyprintPlugin.swift +161 -0
  25. package/ios/Sources/Plugin/ZywellSDK.swift +358 -0
  26. package/ios/Sources/Seven365Zyprinter-Umbrella.h +16 -0
  27. package/ios/Sources/module.modulemap +12 -0
  28. package/ios/Sources/sources/BLEManager.h +658 -0
  29. package/ios/Sources/sources/BLEManager.m +2842 -0
  30. package/ios/Sources/sources/GCD/Documentation.html +47 -0
  31. package/ios/Sources/sources/GCD/GCDAsyncSocket.h +1226 -0
  32. package/ios/Sources/sources/GCD/GCDAsyncSocket.m +8560 -0
  33. package/ios/Sources/sources/GCD/GCDAsyncUdpSocket.h +1036 -0
  34. package/ios/Sources/sources/GCD/GCDAsyncUdpSocket.m +5632 -0
  35. package/ios/Sources/sources/GCD/PrinterManager.h +91 -0
  36. package/ios/Sources/sources/GCD/PrinterManager.m +513 -0
  37. package/ios/Sources/sources/GCD/WifiManager.h +91 -0
  38. package/ios/Sources/sources/GCD/WifiManager.m +510 -0
  39. package/ios/Sources/sources/ImageTranster.h +38 -0
  40. package/ios/Sources/sources/ImageTranster.m +389 -0
  41. package/ios/Sources/sources/POSBLEManager.h +759 -0
  42. package/ios/Sources/sources/POSBLEManager.m +834 -0
  43. package/ios/Sources/sources/POSSDK.h +93 -0
  44. package/ios/Sources/sources/POSWIFIManager.h +116 -0
  45. package/ios/Sources/sources/POSWIFIManager.m +260 -0
  46. package/ios/Sources/sources/POSWIFIManagerAsync.h +745 -0
  47. package/ios/Sources/sources/POSWIFIManagerAsync.m +1847 -0
  48. package/ios/Sources/sources/PosCommand.h +633 -0
  49. package/ios/Sources/sources/PosCommand.m +1019 -0
  50. package/ios/Sources/sources/TscCommand.h +723 -0
  51. package/ios/Sources/sources/TscCommand.m +566 -0
  52. package/ios/Tests/ExamplePluginTests/ExamplePluginTests.swift +15 -0
  53. package/package.json +339 -0
package/package.json ADDED
@@ -0,0 +1,339 @@
1
+ {
2
+ "name": "seven365-zyprinter",
3
+ "version": "0.0.1",
4
+ "description": "Capacitor plugin for Zywell/Zyprint thermal printer integration with Bluetooth and WiFi support",
5
+ "main": "dist/plugin.cjs.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/esm/index.d.ts",
8
+ "unpkg": "dist/plugin.js",
9
+ "files": [
10
+ "android/src/main/",
11
+ "android/build.gradle",
12
+ "dist/",
13
+ "ios/Sources",
14
+ "ios/Tests",
15
+ "Package.swift",
16
+ "Seven365Zyprinter.podspec"
17
+ ],
18
+ "author": "joelralph",
19
+ "license": "MIT",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/Seven365-Pte-Ltd/plateful-pos-mobile.git"
23
+ },
24
+ "bugs": {
25
+ "url": "https://github.com/Seven365-Pte-Ltd/plateful-pos-mobile/issues"
26
+ },
27
+ "keywords": [
28
+ "capacitor",
29
+ "plugin",
30
+ "native",
31
+ "printer",
32
+ "zyprinter",
33
+ "zywell",
34
+ "pos",
35
+ "receipt",
36
+ "bluetooth",
37
+ "wifi"
38
+ ],
39
+ "scripts": {
40
+ "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
41
+ "verify:ios": "xcodebuild -scheme Seven365Zyprinter -destination generic/platform=iOS",
42
+ "verify:android": "cd android && ./gradlew clean build test && cd ..",
43
+ "verify:web": "npm run build",
44
+ "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
45
+ "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
46
+ "eslint": "eslint . --ext ts",
47
+ "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
48
+ "swiftlint": "node-swiftlint",
49
+ "docgen": "docgen --api ZyprintPlugin --output-readme README.md --output-json dist/docs.json",
50
+ "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
51
+ "clean": "rimraf ./dist",
52
+ "watch": "tsc --watch",
53
+ "prepublishOnly": "npm run build"
54
+ },
55
+ "devDependencies": {
56
+ "@capacitor/android": "^7.0.0",
57
+ "@capacitor/core": "^7.0.0",
58
+ "@capacitor/docgen": "^0.3.0",
59
+ "@capacitor/ios": "^7.0.0",
60
+ "@ionic/eslint-config": "^0.4.0",
61
+ "@ionic/prettier-config": "^4.0.0",
62
+ "@ionic/swiftlint-config": "^2.0.0",
63
+ "eslint": "^8.57.0",
64
+ "prettier": "^3.4.2",
65
+ "prettier-plugin-java": "^2.6.6",
66
+ "rimraf": "^6.0.1",
67
+ "rollup": "^4.30.1",
68
+ "swiftlint": "^2.0.0",
69
+ "typescript": "~4.1.5"
70
+ },
71
+ "peerDependencies": {
72
+ "@capacitor/core": ">=7.0.0"
73
+ },
74
+ "prettier": "@ionic/prettier-config",
75
+ "swiftlint": "@ionic/swiftlint-config",
76
+ "eslintConfig": {
77
+ "extends": "@ionic/eslint-config/recommended"
78
+ },
79
+ "capacitor": {
80
+ "ios": {
81
+ "src": "ios"
82
+ },
83
+ "android": {
84
+ "src": "android"
85
+ }
86
+ },
87
+ "dependencies": {
88
+ "acorn": "^8.15.0",
89
+ "acorn-jsx": "^5.3.2",
90
+ "ajv": "^6.12.6",
91
+ "ansi-regex": "^5.0.1",
92
+ "ansi-styles": "^4.3.0",
93
+ "argparse": "^2.0.1",
94
+ "array-buffer-byte-length": "^1.0.2",
95
+ "array-includes": "^3.1.9",
96
+ "array-union": "^2.1.0",
97
+ "array.prototype.findlastindex": "^1.2.6",
98
+ "array.prototype.flat": "^1.3.3",
99
+ "array.prototype.flatmap": "^1.3.3",
100
+ "arraybuffer.prototype.slice": "^1.0.4",
101
+ "astral-regex": "^2.0.0",
102
+ "async-function": "^1.0.0",
103
+ "at-least-node": "^1.0.0",
104
+ "available-typed-arrays": "^1.0.7",
105
+ "balanced-match": "^1.0.2",
106
+ "brace-expansion": "^1.1.12",
107
+ "braces": "^3.0.3",
108
+ "call-bind": "^1.0.8",
109
+ "call-bind-apply-helpers": "^1.0.2",
110
+ "call-bound": "^1.0.4",
111
+ "callsites": "^3.1.0",
112
+ "chalk": "^4.1.2",
113
+ "chevrotain": "^11.0.3",
114
+ "chevrotain-allstar": "^0.3.1",
115
+ "color-convert": "^2.0.1",
116
+ "color-name": "^1.1.4",
117
+ "colorette": "^2.0.20",
118
+ "concat-map": "^0.0.1",
119
+ "cosmiconfig": "^9.0.0",
120
+ "cross-spawn": "^7.0.6",
121
+ "data-view-buffer": "^1.0.2",
122
+ "data-view-byte-length": "^1.0.2",
123
+ "data-view-byte-offset": "^1.0.1",
124
+ "debug": "^4.4.3",
125
+ "deep-is": "^0.1.4",
126
+ "define-data-property": "^1.1.4",
127
+ "define-properties": "^1.2.1",
128
+ "dir-glob": "^3.0.1",
129
+ "doctrine": "^3.0.0",
130
+ "dunder-proto": "^1.0.1",
131
+ "emoji-regex": "^8.0.0",
132
+ "env-paths": "^2.2.1",
133
+ "error-ex": "^1.3.4",
134
+ "es-abstract": "^1.24.0",
135
+ "es-define-property": "^1.0.1",
136
+ "es-errors": "^1.3.0",
137
+ "es-object-atoms": "^1.1.1",
138
+ "es-set-tostringtag": "^2.1.0",
139
+ "es-shim-unscopables": "^1.1.0",
140
+ "es-to-primitive": "^1.3.0",
141
+ "escape-string-regexp": "^4.0.0",
142
+ "eslint-config-prettier": "^8.10.2",
143
+ "eslint-import-resolver-node": "^0.3.9",
144
+ "eslint-module-utils": "^2.12.1",
145
+ "eslint-plugin-import": "^2.32.0",
146
+ "eslint-scope": "^7.2.2",
147
+ "eslint-visitor-keys": "^3.4.3",
148
+ "espree": "^9.6.1",
149
+ "esquery": "^1.6.0",
150
+ "esrecurse": "^4.3.0",
151
+ "estraverse": "^5.3.0",
152
+ "esutils": "^2.0.3",
153
+ "fast-deep-equal": "^3.1.3",
154
+ "fast-glob": "^3.3.3",
155
+ "fast-json-stable-stringify": "^2.1.0",
156
+ "fast-levenshtein": "^2.0.6",
157
+ "fastq": "^1.19.1",
158
+ "file-entry-cache": "^6.0.1",
159
+ "fill-range": "^7.1.1",
160
+ "find-up": "^5.0.0",
161
+ "flat-cache": "^3.2.0",
162
+ "flatted": "^3.3.3",
163
+ "for-each": "^0.3.5",
164
+ "fs-extra": "^9.1.0",
165
+ "fs.realpath": "^1.0.0",
166
+ "fsevents": "^2.3.3",
167
+ "function-bind": "^1.1.2",
168
+ "function.prototype.name": "^1.1.8",
169
+ "functions-have-names": "^1.2.3",
170
+ "generator-function": "^2.0.1",
171
+ "get-intrinsic": "^1.3.0",
172
+ "get-proto": "^1.0.1",
173
+ "get-symbol-description": "^1.1.0",
174
+ "github-slugger": "^1.5.0",
175
+ "glob": "^13.0.0",
176
+ "glob-parent": "^6.0.2",
177
+ "globals": "^13.24.0",
178
+ "globalthis": "^1.0.4",
179
+ "globby": "^11.1.0",
180
+ "gopd": "^1.2.0",
181
+ "graceful-fs": "^4.2.11",
182
+ "graphemer": "^1.4.0",
183
+ "has-bigints": "^1.1.0",
184
+ "has-flag": "^4.0.0",
185
+ "has-property-descriptors": "^1.0.2",
186
+ "has-proto": "^1.2.0",
187
+ "has-symbols": "^1.1.0",
188
+ "has-tostringtag": "^1.0.2",
189
+ "hasown": "^2.0.2",
190
+ "ignore": "^5.3.2",
191
+ "import-fresh": "^3.3.1",
192
+ "imurmurhash": "^0.1.4",
193
+ "inflight": "^1.0.6",
194
+ "inherits": "^2.0.4",
195
+ "internal-slot": "^1.1.0",
196
+ "is-array-buffer": "^3.0.5",
197
+ "is-arrayish": "^0.2.1",
198
+ "is-async-function": "^2.1.1",
199
+ "is-bigint": "^1.1.0",
200
+ "is-boolean-object": "^1.2.2",
201
+ "is-callable": "^1.2.7",
202
+ "is-core-module": "^2.16.1",
203
+ "is-data-view": "^1.0.2",
204
+ "is-date-object": "^1.1.0",
205
+ "is-extglob": "^2.1.1",
206
+ "is-finalizationregistry": "^1.1.1",
207
+ "is-fullwidth-code-point": "^3.0.0",
208
+ "is-generator-function": "^1.1.2",
209
+ "is-glob": "^4.0.3",
210
+ "is-map": "^2.0.3",
211
+ "is-negative-zero": "^2.0.3",
212
+ "is-number": "^7.0.0",
213
+ "is-number-object": "^1.1.1",
214
+ "is-path-inside": "^3.0.3",
215
+ "is-regex": "^1.2.1",
216
+ "is-set": "^2.0.3",
217
+ "is-shared-array-buffer": "^1.0.4",
218
+ "is-string": "^1.1.1",
219
+ "is-symbol": "^1.1.1",
220
+ "is-typed-array": "^1.1.15",
221
+ "is-weakmap": "^2.0.2",
222
+ "is-weakref": "^1.1.1",
223
+ "is-weakset": "^2.0.4",
224
+ "isarray": "^2.0.5",
225
+ "isexe": "^2.0.0",
226
+ "java-parser": "^3.0.1",
227
+ "js-tokens": "^4.0.0",
228
+ "js-yaml": "^4.1.1",
229
+ "json-buffer": "^3.0.1",
230
+ "json-parse-even-better-errors": "^2.3.1",
231
+ "json-schema-traverse": "^0.4.1",
232
+ "json-stable-stringify-without-jsonify": "^1.0.1",
233
+ "json5": "^1.0.2",
234
+ "jsonfile": "^6.2.0",
235
+ "keyv": "^4.5.4",
236
+ "levn": "^0.4.1",
237
+ "lines-and-columns": "^1.2.4",
238
+ "locate-path": "^6.0.0",
239
+ "lodash": "^4.17.21",
240
+ "lodash-es": "^4.17.21",
241
+ "lodash.merge": "^4.6.2",
242
+ "lru-cache": "^11.2.2",
243
+ "math-intrinsics": "^1.1.0",
244
+ "merge2": "^1.4.1",
245
+ "micromatch": "^4.0.8",
246
+ "minimatch": "^3.1.2",
247
+ "minimist": "^1.2.8",
248
+ "minipass": "^7.1.2",
249
+ "ms": "^2.1.3",
250
+ "natural-compare": "^1.4.0",
251
+ "natural-compare-lite": "^1.4.0",
252
+ "object-inspect": "^1.13.4",
253
+ "object-keys": "^1.1.1",
254
+ "object.assign": "^4.1.7",
255
+ "object.fromentries": "^2.0.8",
256
+ "object.groupby": "^1.0.3",
257
+ "object.values": "^1.2.1",
258
+ "once": "^1.4.0",
259
+ "optionator": "^0.9.4",
260
+ "own-keys": "^1.0.1",
261
+ "p-limit": "^3.1.0",
262
+ "p-locate": "^5.0.0",
263
+ "package-json-from-dist": "^1.0.1",
264
+ "parent-module": "^1.0.1",
265
+ "parse-json": "^5.2.0",
266
+ "path-exists": "^4.0.0",
267
+ "path-is-absolute": "^1.0.1",
268
+ "path-key": "^3.1.1",
269
+ "path-parse": "^1.0.7",
270
+ "path-scurry": "^2.0.1",
271
+ "path-type": "^4.0.0",
272
+ "picocolors": "^1.1.1",
273
+ "picomatch": "^2.3.1",
274
+ "possible-typed-array-names": "^1.1.0",
275
+ "prelude-ls": "^1.2.1",
276
+ "punycode": "^2.3.1",
277
+ "queue-microtask": "^1.2.3",
278
+ "reflect.getprototypeof": "^1.0.10",
279
+ "regexp.prototype.flags": "^1.5.4",
280
+ "resolve": "^1.22.11",
281
+ "resolve-from": "^4.0.0",
282
+ "reusify": "^1.1.0",
283
+ "run-parallel": "^1.2.0",
284
+ "safe-array-concat": "^1.1.3",
285
+ "safe-push-apply": "^1.0.0",
286
+ "safe-regex-test": "^1.1.0",
287
+ "semver": "^7.7.3",
288
+ "set-function-length": "^1.2.2",
289
+ "set-function-name": "^2.0.2",
290
+ "set-proto": "^1.0.0",
291
+ "shebang-command": "^2.0.0",
292
+ "shebang-regex": "^3.0.0",
293
+ "side-channel": "^1.1.0",
294
+ "side-channel-list": "^1.0.0",
295
+ "side-channel-map": "^1.0.1",
296
+ "side-channel-weakmap": "^1.0.2",
297
+ "signal-exit": "^3.0.7",
298
+ "slash": "^3.0.0",
299
+ "slice-ansi": "^4.0.0",
300
+ "stop-iteration-iterator": "^1.1.0",
301
+ "string-width": "^4.2.3",
302
+ "string.prototype.trim": "^1.2.10",
303
+ "string.prototype.trimend": "^1.0.9",
304
+ "string.prototype.trimstart": "^1.0.8",
305
+ "strip-ansi": "^6.0.1",
306
+ "strip-bom": "^3.0.0",
307
+ "strip-json-comments": "^3.1.1",
308
+ "supports-color": "^7.2.0",
309
+ "supports-preserve-symlinks-flag": "^1.0.0",
310
+ "text-table": "^0.2.0",
311
+ "to-regex-range": "^5.0.1",
312
+ "tree-kill": "^1.2.2",
313
+ "tsconfig-paths": "^3.15.0",
314
+ "tslib": "^2.8.1",
315
+ "tsutils": "^3.21.0",
316
+ "type-check": "^0.4.0",
317
+ "type-fest": "^0.20.2",
318
+ "typed-array-buffer": "^1.0.3",
319
+ "typed-array-byte-length": "^1.0.3",
320
+ "typed-array-byte-offset": "^1.0.4",
321
+ "typed-array-length": "^1.0.7",
322
+ "unbox-primitive": "^1.1.0",
323
+ "undici-types": "^7.16.0",
324
+ "universalify": "^2.0.1",
325
+ "untildify": "^4.0.0",
326
+ "uri-js": "^4.4.1",
327
+ "which": "^2.0.2",
328
+ "which-boxed-primitive": "^1.1.1",
329
+ "which-builtin-type": "^1.2.1",
330
+ "which-collection": "^1.0.2",
331
+ "which-typed-array": "^1.1.19",
332
+ "word-wrap": "^1.2.5",
333
+ "wrap-ansi": "^7.0.0",
334
+ "wrappy": "^1.0.2",
335
+ "yocto-queue": "^0.1.0"
336
+ },
337
+ "type": "commonjs",
338
+ "homepage": "https://github.com/Seven365-Pte-Ltd/plateful-pos-mobile#readme"
339
+ }