boot-nemonic-printer 0.1.0

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 (84) hide show
  1. package/.eslintrc.js +5 -0
  2. package/README.md +209 -0
  3. package/ai/example-ui-card-refactor.md +348 -0
  4. package/android/build.gradle +22 -0
  5. package/android/libs/NemonicSdk.aar +0 -0
  6. package/android/src/main/AndroidManifest.xml +2 -0
  7. package/android/src/main/java/net/eventboot/nemonicprinter/BootNemonicPrinterModule.kt +509 -0
  8. package/build/BootNemonicPrinter.types.d.ts +44 -0
  9. package/build/BootNemonicPrinter.types.d.ts.map +1 -0
  10. package/build/BootNemonicPrinter.types.js +2 -0
  11. package/build/BootNemonicPrinter.types.js.map +1 -0
  12. package/build/BootNemonicPrinterModule.d.ts +36 -0
  13. package/build/BootNemonicPrinterModule.d.ts.map +1 -0
  14. package/build/BootNemonicPrinterModule.js +3 -0
  15. package/build/BootNemonicPrinterModule.js.map +1 -0
  16. package/build/constants/NBatteryStatus.d.ts +8 -0
  17. package/build/constants/NBatteryStatus.d.ts.map +1 -0
  18. package/build/constants/NBatteryStatus.js +7 -0
  19. package/build/constants/NBatteryStatus.js.map +1 -0
  20. package/build/constants/NCartridgeType.d.ts +35 -0
  21. package/build/constants/NCartridgeType.d.ts.map +1 -0
  22. package/build/constants/NCartridgeType.js +183 -0
  23. package/build/constants/NCartridgeType.js.map +1 -0
  24. package/build/constants/NConnectState.d.ts +8 -0
  25. package/build/constants/NConnectState.d.ts.map +1 -0
  26. package/build/constants/NConnectState.js +7 -0
  27. package/build/constants/NConnectState.js.map +1 -0
  28. package/build/constants/NPowerSaveMode.d.ts +6 -0
  29. package/build/constants/NPowerSaveMode.d.ts.map +1 -0
  30. package/build/constants/NPowerSaveMode.js +5 -0
  31. package/build/constants/NPowerSaveMode.js.map +1 -0
  32. package/build/constants/NPrintImageLength.d.ts +12 -0
  33. package/build/constants/NPrintImageLength.d.ts.map +1 -0
  34. package/build/constants/NPrintImageLength.js +12 -0
  35. package/build/constants/NPrintImageLength.js.map +1 -0
  36. package/build/constants/NPrintQuality.d.ts +7 -0
  37. package/build/constants/NPrintQuality.d.ts.map +1 -0
  38. package/build/constants/NPrintQuality.js +6 -0
  39. package/build/constants/NPrintQuality.js.map +1 -0
  40. package/build/constants/NPrinterStatus.d.ts +9 -0
  41. package/build/constants/NPrinterStatus.d.ts.map +1 -0
  42. package/build/constants/NPrinterStatus.js +8 -0
  43. package/build/constants/NPrinterStatus.js.map +1 -0
  44. package/build/constants/NPrinterType.d.ts +9 -0
  45. package/build/constants/NPrinterType.d.ts.map +1 -0
  46. package/build/constants/NPrinterType.js +8 -0
  47. package/build/constants/NPrinterType.js.map +1 -0
  48. package/build/constants/NResult.d.ts +51 -0
  49. package/build/constants/NResult.d.ts.map +1 -0
  50. package/build/constants/NResult.js +50 -0
  51. package/build/constants/NResult.js.map +1 -0
  52. package/build/index.d.ts +13 -0
  53. package/build/index.d.ts.map +1 -0
  54. package/build/index.js +13 -0
  55. package/build/index.js.map +1 -0
  56. package/expo-module.config.json +9 -0
  57. package/ios/BootNemonicPrinter.podspec +31 -0
  58. package/ios/BootNemonicPrinterModule.swift +257 -0
  59. package/ios/Frameworks/NemonicSdk.framework/Headers/NemonicSdk-Swift.h +797 -0
  60. package/ios/Frameworks/NemonicSdk.framework/Headers/NemonicSdk.h +18 -0
  61. package/ios/Frameworks/NemonicSdk.framework/Info.plist +0 -0
  62. package/ios/Frameworks/NemonicSdk.framework/Modules/NemonicSdk.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  63. package/ios/Frameworks/NemonicSdk.framework/Modules/NemonicSdk.swiftmodule/arm64-apple-ios.abi.json +12244 -0
  64. package/ios/Frameworks/NemonicSdk.framework/Modules/NemonicSdk.swiftmodule/arm64-apple-ios.private.swiftinterface +356 -0
  65. package/ios/Frameworks/NemonicSdk.framework/Modules/NemonicSdk.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  66. package/ios/Frameworks/NemonicSdk.framework/Modules/NemonicSdk.swiftmodule/arm64-apple-ios.swiftinterface +356 -0
  67. package/ios/Frameworks/NemonicSdk.framework/Modules/NemonicSdk.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
  68. package/ios/Frameworks/NemonicSdk.framework/Modules/module.modulemap +11 -0
  69. package/ios/Frameworks/NemonicSdk.framework/NemonicSdk +0 -0
  70. package/ios/Frameworks/NemonicSdk.framework/_CodeSignature/CodeResources +237 -0
  71. package/package.json +44 -0
  72. package/src/BootNemonicPrinter.types.ts +50 -0
  73. package/src/BootNemonicPrinterModule.ts +48 -0
  74. package/src/constants/NBatteryStatus.ts +8 -0
  75. package/src/constants/NCartridgeType.ts +181 -0
  76. package/src/constants/NConnectState.ts +8 -0
  77. package/src/constants/NPowerSaveMode.ts +6 -0
  78. package/src/constants/NPrintImageLength.ts +11 -0
  79. package/src/constants/NPrintQuality.ts +7 -0
  80. package/src/constants/NPrinterStatus.ts +9 -0
  81. package/src/constants/NPrinterType.ts +9 -0
  82. package/src/constants/NResult.ts +51 -0
  83. package/src/index.ts +13 -0
  84. package/tsconfig.json +9 -0
@@ -0,0 +1,356 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
3
+ // swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name NemonicSdk
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
5
+ import CoreBluetooth
6
+ import ExternalAccessory
7
+ import Foundation
8
+ @_exported import NemonicSdk
9
+ import Swift
10
+ import UIKit
11
+ import _Concurrency
12
+ import _StringProcessing
13
+ import _SwiftConcurrencyShims
14
+ import os.log
15
+ import os
16
+ @objc(NPrinterScanControllerDelegate) public protocol NPrinterScanControllerDelegate : ObjectiveC.NSObjectProtocol {
17
+ @objc func deviceFound(_ printer: NemonicSdk.NPrinter)
18
+ }
19
+ @objc(NPrinterType) public enum NPrinterType : Swift.Int {
20
+ case none = 0
21
+ case nemonic = 1
22
+ case nemonicLabel = 2
23
+ case nemonicMini = 3
24
+ case nemonicMip201 = 4
25
+ public var description: Swift.String {
26
+ get
27
+ }
28
+ public var subType: Swift.String {
29
+ get
30
+ }
31
+ public var model: Swift.String {
32
+ get
33
+ }
34
+ public static func getValue(description: Swift.String) -> NemonicSdk.NPrinterType
35
+ #if compiler(>=5.3) && $NonescapableTypes
36
+ public init?(rawValue: Swift.Int)
37
+ #endif
38
+ public typealias RawValue = Swift.Int
39
+ public var rawValue: Swift.Int {
40
+ get
41
+ }
42
+ }
43
+ @objc(NResultPrintable) public class NResultPrintable : ObjectiveC.NSObject {
44
+ public init(_ result: Swift.Int)
45
+ public func isPrintable() -> Swift.Bool
46
+ public func isInError() -> Swift.Bool
47
+ public func getError() -> Swift.Int
48
+ public func getErrorByPriority() -> Swift.Int
49
+ public func isCoverOpened() -> Swift.Bool
50
+ public func isOutOfPaper() -> Swift.Bool
51
+ public func isPaperJam() -> Swift.Bool
52
+ public func isOverheat() -> Swift.Bool
53
+ public func isPowerCableConnected() -> Swift.Bool
54
+ public func isInCharging() -> Swift.Bool
55
+ public func isBatteryLow() -> Swift.Bool
56
+ public func isCommunicationBle() -> Swift.Bool
57
+ public func isCommunicationUsb() -> Swift.Bool
58
+ @objc deinit
59
+ }
60
+ @objc(NResult) public enum NResult : Swift.Int {
61
+ case ok = 0x00
62
+ case timeout = -64
63
+ case canceled = -65
64
+ case batteryLow = -70
65
+ case batteryNeedCharge = -71
66
+ case paperNotMatched = -80
67
+ case unavailableCartridge = -81
68
+ case bluetoothUnsupported = -100
69
+ case bluetoothDisabled = -101
70
+ case bluetoothNoPermission = -102
71
+ case bluetoothResetting = -103
72
+ case canceledOrBluetoothDisabled = -104
73
+ case bluetoothUnknown = -105
74
+ case locationNoPermission = -110
75
+ case locationDisabled = -111
76
+ case scanFailed = -200
77
+ case noSelectedPrinter = -300
78
+ case notConnected = -301
79
+ case alreadyConnected = -302
80
+ case notFound = -303
81
+ case notConnectable = -304
82
+ case socketError = -305
83
+ case connectError = -306
84
+ case connectFailed = -307
85
+ case sessionError = -308
86
+ case connectServiceNotFound = -309
87
+ case connectUnsupportedMode = -310
88
+ case ioReceiveError = -400
89
+ case ioSendError = -401
90
+ case sendFailed = -402
91
+ case unknown = -500
92
+ case invalidParameter = -501
93
+ case notMatchedPrinterType = -502
94
+ case noDelegate = -503
95
+ case notMatchedCommandResultFormat = -504
96
+ case invalidPrinterName = -505
97
+ case invalidPrinterResult = -506
98
+ case printerResultFailed = -507
99
+ case unsupportedDevice = -508
100
+ #if compiler(>=5.3) && $NonescapableTypes
101
+ public init?(rawValue: Swift.Int)
102
+ #endif
103
+ public typealias RawValue = Swift.Int
104
+ public var rawValue: Swift.Int {
105
+ get
106
+ }
107
+ }
108
+ @_inheritsConvenienceInitializers @objc(NPrinterController) public class NPrinterController : ObjectiveC.NSObject {
109
+ public static let defaultWaitTime: Swift.Int
110
+ @objc override dynamic public init()
111
+ @objc public init(_ delegate: any NemonicSdk.NPrinterControllerDelegate)
112
+ @objc public func getDefaultConnectDelay() -> Swift.UInt32
113
+ @objc public func getConnectDelay() -> Swift.UInt32
114
+ @objc public func setConnectDelay(_ delay: Swift.UInt32)
115
+ #if compiler(>=5.3) && $NonescapableTypes
116
+ @objc public func connect(_ printer: NemonicSdk.NPrinter, queueLabel: Swift.String? = nil) -> Swift.Int
117
+ #endif
118
+ public func disconnect()
119
+ public func getConnectState() -> Swift.Int
120
+ public func cancel()
121
+ public func setPrintTimeout(_ enableAuto: Swift.Bool, _ manualTime: Swift.Int)
122
+ public func print(_ printInfo: NemonicSdk.NPrintInfo) -> Swift.Int
123
+ public func setTemplate(_ image: UIKit.UIImage, withPrint: Swift.Bool, enableDither: Swift.Bool) -> Swift.Int
124
+ public func clearTemplate() -> Swift.Int
125
+ public func getPrinterStatus() -> Swift.Int
126
+ public func getCartridgeType() -> Swift.Int
127
+ public func getPrinterName() -> NemonicSdk.NResultString
128
+ public func getBatteryLevel() -> Swift.Int
129
+ public func getBatteryStatus() -> Swift.Int
130
+ @objc deinit
131
+ }
132
+ @objc(NPrinterStatus) public enum NPrinterStatus : Swift.Int {
133
+ case ok = 0
134
+ case outOfPaper = 2
135
+ case coverOpened = 4
136
+ case overheat = 8
137
+ case paperJam = 16
138
+ #if compiler(>=5.3) && $NonescapableTypes
139
+ public init?(rawValue: Swift.Int)
140
+ #endif
141
+ public typealias RawValue = Swift.Int
142
+ public var rawValue: Swift.Int {
143
+ get
144
+ }
145
+ }
146
+ @_inheritsConvenienceInitializers @objc(NResultString) public class NResultString : ObjectiveC.NSObject {
147
+ @objc override dynamic public init()
148
+ public init(_ result: Swift.Int)
149
+ public init(_ result: Swift.Int, _ value: Swift.String)
150
+ public func getResult() -> Swift.Int
151
+ public func getValue() -> Swift.String
152
+ @objc deinit
153
+ }
154
+ @objc(NBatteryStatus) public enum NBatteryStatus : Swift.Int {
155
+ case noCharging = 0
156
+ case lowNoCharging = 1
157
+ case charging = 2
158
+ case lowCharging = 3
159
+ #if compiler(>=5.3) && $NonescapableTypes
160
+ public init?(rawValue: Swift.Int)
161
+ #endif
162
+ public typealias RawValue = Swift.Int
163
+ public var rawValue: Swift.Int {
164
+ get
165
+ }
166
+ }
167
+ @_inheritsConvenienceInitializers @objc(NPrinter) public class NPrinter : ObjectiveC.NSObject {
168
+ @objc override dynamic public init()
169
+ @objc public init(name: Swift.String, macAddress: Swift.String)
170
+ @objc public init(type: NemonicSdk.NPrinterType, name: Swift.String, macAddress: Swift.String)
171
+ @objc public func isEmpty() -> Swift.Bool
172
+ @objc public func isValid() -> Swift.Bool
173
+ @objc public func reset()
174
+ @objc public func getName() -> Swift.String
175
+ @objc public func setName(_ name: Swift.String)
176
+ @objc public func checkName(_ name: Swift.String) -> Swift.Bool
177
+ @objc public static func checkName(type: NemonicSdk.NPrinterType, name: Swift.String) -> Swift.Bool
178
+ @objc public static func checkNameWithoutCartridgeType(type: NemonicSdk.NPrinterType, name: Swift.String) -> Swift.Bool
179
+ @objc public func getMacAddress() -> Swift.String
180
+ @objc public func setMacAddress(_ macAddress: Swift.String) -> Swift.Bool
181
+ @objc public func checkMacAddress(_ macAddress: Swift.String) -> Swift.Bool
182
+ @objc public func getType() -> NemonicSdk.NPrinterType
183
+ @objc public func setType(_ type: NemonicSdk.NPrinterType)
184
+ @objc public func hasValidCartridge() -> Swift.Bool
185
+ @objc public func isMini() -> Swift.Bool
186
+ @objc public func isLabel() -> Swift.Bool
187
+ @objc public func isSticky() -> Swift.Bool
188
+ @objc public func isFixedPaperSize() -> Swift.Bool
189
+ @objc public func isSupportedBattery() -> Swift.Bool
190
+ @objc public func isSupportedPassword() -> Swift.Bool
191
+ public func setCartridgeType(_ type: NemonicSdk.NCartridgeType)
192
+ @objc public func getCartridgeType() -> NemonicSdk.NCartridgeType
193
+ @objc public func getWaitTimeForPrint(_ height: Swift.Int, _ copies: Swift.Int) -> Swift.Int
194
+ #if compiler(>=5.3) && $NonescapableTypes
195
+ @objc override dynamic public func isEqual(_ object: Any?) -> Swift.Bool
196
+ #endif
197
+ @objc override dynamic public var description: Swift.String {
198
+ @objc get
199
+ }
200
+ @objc deinit
201
+ }
202
+ @objc(NPrintQuality) public enum NPrintQuality : Swift.Int {
203
+ case lowFast = 0
204
+ case middle = 1
205
+ case highSlow = 2
206
+ #if compiler(>=5.3) && $NonescapableTypes
207
+ public init?(rawValue: Swift.Int)
208
+ #endif
209
+ public typealias RawValue = Swift.Int
210
+ public var rawValue: Swift.Int {
211
+ get
212
+ }
213
+ }
214
+ @_inheritsConvenienceInitializers @objc(NPrintImageLength) public class NPrintImageLength : ObjectiveC.NSObject {
215
+ @objc public static let printWidth: Swift.Int
216
+ @objc public static let maxLength: Swift.Int
217
+ @objc public static let maxLengthMip201: Swift.Int
218
+ @objc public static let maxTemplateLength: Swift.Int
219
+ @objc public static let maxTemplateLengthMip201: Swift.Int
220
+ @objc public static let content1inch: Swift.Int
221
+ @objc public static let content2inch: Swift.Int
222
+ @objc public static let content3inch: Swift.Int
223
+ @objc public static let content4inch: Swift.Int
224
+ @objc override dynamic public init()
225
+ @objc deinit
226
+ }
227
+ @objc(NConnectState) public enum NConnectState : Swift.Int {
228
+ case disconnected = 0x00
229
+ case connecting = 0x01
230
+ case connected = 0x02
231
+ case disconnecting = 0x03
232
+ #if compiler(>=5.3) && $NonescapableTypes
233
+ public init?(rawValue: Swift.Int)
234
+ #endif
235
+ public typealias RawValue = Swift.Int
236
+ public var rawValue: Swift.Int {
237
+ get
238
+ }
239
+ }
240
+ @objc(NPrinterScanController) public class NPrinterScanController : ObjectiveC.NSObject {
241
+ @objc public var delegate: (any NemonicSdk.NPrinterScanControllerDelegate)?
242
+ @objc public init(_ delegate: any NemonicSdk.NPrinterScanControllerDelegate)
243
+ @objc public func startScan() -> Swift.Int
244
+ @objc public func stopScan()
245
+ @objc public func isInScan() -> Swift.Bool
246
+ @objc deinit
247
+ }
248
+ @objc public class NPrintInfo : ObjectiveC.NSObject {
249
+ public init(printer: NemonicSdk.NPrinter, image: UIKit.UIImage)
250
+ public init(printer: NemonicSdk.NPrinter, images: [UIKit.UIImage])
251
+ public func isEmpty() -> Swift.Bool
252
+ public func setPrinter(_ printer: NemonicSdk.NPrinter) -> NemonicSdk.NPrintInfo
253
+ public func getPrinter() -> NemonicSdk.NPrinter
254
+ public func setPrintQuality(_ quality: NemonicSdk.NPrintQuality) -> NemonicSdk.NPrintInfo
255
+ public func getPrintQuality() -> NemonicSdk.NPrintQuality
256
+ public func setImage(_ image: UIKit.UIImage) -> NemonicSdk.NPrintInfo
257
+ #if compiler(>=5.3) && $NonescapableTypes
258
+ public func getImage() -> UIKit.UIImage?
259
+ #endif
260
+ public func setImages(_ images: [UIKit.UIImage]) -> NemonicSdk.NPrintInfo
261
+ public func getImages() -> [UIKit.UIImage]
262
+ public func isPrintableImages() -> Swift.Bool
263
+ public func setCopies(_ copies: Swift.Int) -> NemonicSdk.NPrintInfo
264
+ public func getCopies() -> Swift.Int
265
+ public func setEnableLastPageCut(_ enable: Swift.Bool) -> NemonicSdk.NPrintInfo
266
+ public func isLastPageCutEnable() -> Swift.Bool
267
+ public func setEnableDither(_ enable: Swift.Bool) -> NemonicSdk.NPrintInfo
268
+ public func isEnableDither() -> Swift.Bool
269
+ public func setEnableCheckPrinterStatus(_ enable: Swift.Bool) -> NemonicSdk.NPrintInfo
270
+ public func isCheckPrinterStatus() -> Swift.Bool
271
+ public func setEnableCheckCartridgeType(_ enable: Swift.Bool) -> NemonicSdk.NPrintInfo
272
+ public func isCheckCartridgeType() -> Swift.Bool
273
+ public func setEnableCheckPower(_ enable: Swift.Bool) -> NemonicSdk.NPrintInfo
274
+ public func isCheckPower() -> Swift.Bool
275
+ #if compiler(>=5.3) && $NonescapableTypes
276
+ public func getPrintImage() -> UIKit.UIImage?
277
+ #endif
278
+ #if compiler(>=5.3) && $NonescapableTypes
279
+ public func getPrintImages() -> [UIKit.UIImage]?
280
+ #endif
281
+ @objc override dynamic public var description: Swift.String {
282
+ @objc get
283
+ }
284
+ @objc deinit
285
+ }
286
+ @_inheritsConvenienceInitializers @objc(SDKInfo) public class NSDKInfo : ObjectiveC.NSObject {
287
+ public static let bundleName: Swift.String
288
+ public static let bundleVersion: Swift.Int
289
+ @objc override dynamic public init()
290
+ @objc deinit
291
+ }
292
+ @objc(NPrinterControllerDelegate) public protocol NPrinterControllerDelegate : ObjectiveC.NSObjectProtocol {
293
+ @objc func disconnected()
294
+ @objc func printProgress(index: Swift.Int, total: Swift.Int, result: Swift.Int)
295
+ @objc func printComplete(result: Swift.Int)
296
+ }
297
+ @objc(NCartridgeType) public enum NCartridgeType : Swift.Int {
298
+ case none = -1
299
+ case white = 0
300
+ case yellow = 1
301
+ case green = 2
302
+ case blue = 3
303
+ case pink = 7
304
+ case l1 = 13
305
+ case l2 = 12
306
+ case l3 = 10
307
+ case l4 = 6
308
+ case l5 = 8
309
+ case l6 = 5
310
+ case l7 = 9
311
+ case l8 = 11
312
+ case m1 = 101
313
+ case m2 = 102
314
+ case m3 = 103
315
+ case m4 = 104
316
+ case m5 = 105
317
+ case m6 = 106
318
+ case m7 = 107
319
+ case m8 = 108
320
+ case question = 4
321
+ case n = 14
322
+ public var rawValueOrigin: Swift.Int {
323
+ get
324
+ }
325
+ public static func valueOf(_ value: Swift.Int) -> NemonicSdk.NCartridgeType
326
+ public static func valueOf(name: Swift.String) -> NemonicSdk.NCartridgeType
327
+ public static func stringNameOf(type: NemonicSdk.NCartridgeType, isMini: Swift.Bool) -> Swift.String
328
+ #if compiler(>=5.3) && $NonescapableTypes
329
+ public init?(rawValue: Swift.Int)
330
+ #endif
331
+ public typealias RawValue = Swift.Int
332
+ public var rawValue: Swift.Int {
333
+ get
334
+ }
335
+ }
336
+ extension NemonicSdk.NPrinterType : Swift.Equatable {}
337
+ extension NemonicSdk.NPrinterType : Swift.Hashable {}
338
+ extension NemonicSdk.NPrinterType : Swift.RawRepresentable {}
339
+ extension NemonicSdk.NResult : Swift.Equatable {}
340
+ extension NemonicSdk.NResult : Swift.Hashable {}
341
+ extension NemonicSdk.NResult : Swift.RawRepresentable {}
342
+ extension NemonicSdk.NPrinterStatus : Swift.Equatable {}
343
+ extension NemonicSdk.NPrinterStatus : Swift.Hashable {}
344
+ extension NemonicSdk.NPrinterStatus : Swift.RawRepresentable {}
345
+ extension NemonicSdk.NBatteryStatus : Swift.Equatable {}
346
+ extension NemonicSdk.NBatteryStatus : Swift.Hashable {}
347
+ extension NemonicSdk.NBatteryStatus : Swift.RawRepresentable {}
348
+ extension NemonicSdk.NPrintQuality : Swift.Equatable {}
349
+ extension NemonicSdk.NPrintQuality : Swift.Hashable {}
350
+ extension NemonicSdk.NPrintQuality : Swift.RawRepresentable {}
351
+ extension NemonicSdk.NConnectState : Swift.Equatable {}
352
+ extension NemonicSdk.NConnectState : Swift.Hashable {}
353
+ extension NemonicSdk.NConnectState : Swift.RawRepresentable {}
354
+ extension NemonicSdk.NCartridgeType : Swift.Equatable {}
355
+ extension NemonicSdk.NCartridgeType : Swift.Hashable {}
356
+ extension NemonicSdk.NCartridgeType : Swift.RawRepresentable {}
@@ -0,0 +1,11 @@
1
+ framework module NemonicSdk {
2
+ umbrella header "NemonicSdk.h"
3
+ export *
4
+
5
+ module * { export * }
6
+ }
7
+
8
+ module NemonicSdk.Swift {
9
+ header "NemonicSdk-Swift.h"
10
+ requires objc
11
+ }
@@ -0,0 +1,237 @@
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
+ <key>files</key>
6
+ <dict>
7
+ <key>Headers/NemonicSdk-Swift.h</key>
8
+ <data>
9
+ cPvGXt8aqioQTskbhRxuDpGTC8g=
10
+ </data>
11
+ <key>Headers/NemonicSdk.h</key>
12
+ <data>
13
+ l6MvNHoROySrXBRJqQJSOSVw6vQ=
14
+ </data>
15
+ <key>Info.plist</key>
16
+ <data>
17
+ NG0QM7UjG0yrf9UEd3Goz1ACVNk=
18
+ </data>
19
+ <key>Modules/NemonicSdk.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo</key>
20
+ <data>
21
+ nHQHKv2ZcRkLAjp44UiBIT8Qepg=
22
+ </data>
23
+ <key>Modules/NemonicSdk.swiftmodule/arm64-apple-ios.abi.json</key>
24
+ <data>
25
+ Auf7VwHeRVyzEhIUFrI/93uIfLY=
26
+ </data>
27
+ <key>Modules/NemonicSdk.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
28
+ <data>
29
+ 4OT4kvg+WqOn5BeT1qfyvaq5tfM=
30
+ </data>
31
+ <key>Modules/NemonicSdk.swiftmodule/arm64-apple-ios.swiftdoc</key>
32
+ <data>
33
+ 9m7mljBiKJmZpCR7OwRDAc9WrGM=
34
+ </data>
35
+ <key>Modules/NemonicSdk.swiftmodule/arm64-apple-ios.swiftinterface</key>
36
+ <data>
37
+ 4OT4kvg+WqOn5BeT1qfyvaq5tfM=
38
+ </data>
39
+ <key>Modules/NemonicSdk.swiftmodule/arm64-apple-ios.swiftmodule</key>
40
+ <data>
41
+ KMPW34LI4DYLfYpKe2UpB81akVs=
42
+ </data>
43
+ <key>Modules/module.modulemap</key>
44
+ <data>
45
+ xrIAV7N6m77Q8HlnH1dESSvh74Q=
46
+ </data>
47
+ </dict>
48
+ <key>files2</key>
49
+ <dict>
50
+ <key>Headers/NemonicSdk-Swift.h</key>
51
+ <dict>
52
+ <key>hash</key>
53
+ <data>
54
+ cPvGXt8aqioQTskbhRxuDpGTC8g=
55
+ </data>
56
+ <key>hash2</key>
57
+ <data>
58
+ 2xGEjTVz85uH28OG3HQ0TxhDPBqNAl5TtSPLWTC0fkM=
59
+ </data>
60
+ </dict>
61
+ <key>Headers/NemonicSdk.h</key>
62
+ <dict>
63
+ <key>hash</key>
64
+ <data>
65
+ l6MvNHoROySrXBRJqQJSOSVw6vQ=
66
+ </data>
67
+ <key>hash2</key>
68
+ <data>
69
+ kRM/5mJdjsIol3UlgsgtKr5La+CYEtghKMKSDJZtE3s=
70
+ </data>
71
+ </dict>
72
+ <key>Modules/NemonicSdk.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo</key>
73
+ <dict>
74
+ <key>hash</key>
75
+ <data>
76
+ nHQHKv2ZcRkLAjp44UiBIT8Qepg=
77
+ </data>
78
+ <key>hash2</key>
79
+ <data>
80
+ GF/lWOR9y4/KsngNJoW0ZLT5ShLIgRcu2KMkzEmgDfQ=
81
+ </data>
82
+ </dict>
83
+ <key>Modules/NemonicSdk.swiftmodule/arm64-apple-ios.abi.json</key>
84
+ <dict>
85
+ <key>hash</key>
86
+ <data>
87
+ Auf7VwHeRVyzEhIUFrI/93uIfLY=
88
+ </data>
89
+ <key>hash2</key>
90
+ <data>
91
+ lbol+T+i8KLWqV8M0GbE+JVi8Ke7lcKNAtju4g3dTzo=
92
+ </data>
93
+ </dict>
94
+ <key>Modules/NemonicSdk.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
95
+ <dict>
96
+ <key>hash</key>
97
+ <data>
98
+ 4OT4kvg+WqOn5BeT1qfyvaq5tfM=
99
+ </data>
100
+ <key>hash2</key>
101
+ <data>
102
+ Y6fzGQmUK7ucPpz+e03ZP8WfQre9Q4e/gSYfP6O/kAQ=
103
+ </data>
104
+ </dict>
105
+ <key>Modules/NemonicSdk.swiftmodule/arm64-apple-ios.swiftdoc</key>
106
+ <dict>
107
+ <key>hash</key>
108
+ <data>
109
+ 9m7mljBiKJmZpCR7OwRDAc9WrGM=
110
+ </data>
111
+ <key>hash2</key>
112
+ <data>
113
+ TK3kpFAXGpe+wliawFQMqFVXEDQZfrIYMjH9PPFC9Fo=
114
+ </data>
115
+ </dict>
116
+ <key>Modules/NemonicSdk.swiftmodule/arm64-apple-ios.swiftinterface</key>
117
+ <dict>
118
+ <key>hash</key>
119
+ <data>
120
+ 4OT4kvg+WqOn5BeT1qfyvaq5tfM=
121
+ </data>
122
+ <key>hash2</key>
123
+ <data>
124
+ Y6fzGQmUK7ucPpz+e03ZP8WfQre9Q4e/gSYfP6O/kAQ=
125
+ </data>
126
+ </dict>
127
+ <key>Modules/NemonicSdk.swiftmodule/arm64-apple-ios.swiftmodule</key>
128
+ <dict>
129
+ <key>hash</key>
130
+ <data>
131
+ KMPW34LI4DYLfYpKe2UpB81akVs=
132
+ </data>
133
+ <key>hash2</key>
134
+ <data>
135
+ udnYGGXgOVXqbQ09E8UUnJUmTRimPf70w0cGfd4gPBE=
136
+ </data>
137
+ </dict>
138
+ <key>Modules/module.modulemap</key>
139
+ <dict>
140
+ <key>hash</key>
141
+ <data>
142
+ xrIAV7N6m77Q8HlnH1dESSvh74Q=
143
+ </data>
144
+ <key>hash2</key>
145
+ <data>
146
+ Mhb9ED3smljyga2fw6L2u21+Yb/Zk6T2B9A9+yZiKvY=
147
+ </data>
148
+ </dict>
149
+ </dict>
150
+ <key>rules</key>
151
+ <dict>
152
+ <key>^.*</key>
153
+ <true/>
154
+ <key>^.*\.lproj/</key>
155
+ <dict>
156
+ <key>optional</key>
157
+ <true/>
158
+ <key>weight</key>
159
+ <real>1000</real>
160
+ </dict>
161
+ <key>^.*\.lproj/locversion.plist$</key>
162
+ <dict>
163
+ <key>omit</key>
164
+ <true/>
165
+ <key>weight</key>
166
+ <real>1100</real>
167
+ </dict>
168
+ <key>^Base\.lproj/</key>
169
+ <dict>
170
+ <key>weight</key>
171
+ <real>1010</real>
172
+ </dict>
173
+ <key>^version.plist$</key>
174
+ <true/>
175
+ </dict>
176
+ <key>rules2</key>
177
+ <dict>
178
+ <key>.*\.dSYM($|/)</key>
179
+ <dict>
180
+ <key>weight</key>
181
+ <real>11</real>
182
+ </dict>
183
+ <key>^(.*/)?\.DS_Store$</key>
184
+ <dict>
185
+ <key>omit</key>
186
+ <true/>
187
+ <key>weight</key>
188
+ <real>2000</real>
189
+ </dict>
190
+ <key>^.*</key>
191
+ <true/>
192
+ <key>^.*\.lproj/</key>
193
+ <dict>
194
+ <key>optional</key>
195
+ <true/>
196
+ <key>weight</key>
197
+ <real>1000</real>
198
+ </dict>
199
+ <key>^.*\.lproj/locversion.plist$</key>
200
+ <dict>
201
+ <key>omit</key>
202
+ <true/>
203
+ <key>weight</key>
204
+ <real>1100</real>
205
+ </dict>
206
+ <key>^Base\.lproj/</key>
207
+ <dict>
208
+ <key>weight</key>
209
+ <real>1010</real>
210
+ </dict>
211
+ <key>^Info\.plist$</key>
212
+ <dict>
213
+ <key>omit</key>
214
+ <true/>
215
+ <key>weight</key>
216
+ <real>20</real>
217
+ </dict>
218
+ <key>^PkgInfo$</key>
219
+ <dict>
220
+ <key>omit</key>
221
+ <true/>
222
+ <key>weight</key>
223
+ <real>20</real>
224
+ </dict>
225
+ <key>^embedded\.provisionprofile$</key>
226
+ <dict>
227
+ <key>weight</key>
228
+ <real>20</real>
229
+ </dict>
230
+ <key>^version\.plist$</key>
231
+ <dict>
232
+ <key>weight</key>
233
+ <real>20</real>
234
+ </dict>
235
+ </dict>
236
+ </dict>
237
+ </plist>
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "boot-nemonic-printer",
3
+ "version": "0.1.0",
4
+ "description": "EventBoot Nemonic Printer Module",
5
+ "main": "build/index.js",
6
+ "types": "build/index.d.ts",
7
+ "scripts": {
8
+ "build": "expo-module build",
9
+ "clean": "expo-module clean",
10
+ "lint": "expo-module lint",
11
+ "test": "expo-module test",
12
+ "prepare": "expo-module prepare",
13
+ "prepublishOnly": "expo-module prepublishOnly",
14
+ "expo-module": "expo-module",
15
+ "open:ios": "xed example/ios",
16
+ "open:android": "open -a \"Android Studio\" example/android"
17
+ },
18
+ "keywords": [
19
+ "react-native",
20
+ "expo",
21
+ "boot-nemonic-printer",
22
+ "BootNemonicPrinter"
23
+ ],
24
+ "repository": "https://github.com/bbm-sghong/boot-nemonic-printer",
25
+ "bugs": {
26
+ "url": "https://github.com/bbm-sghong/boot-nemonic-printer/issues"
27
+ },
28
+ "author": "sghong <sghong@bbmobile.co.kr> (https://github.com/bbm-sghong)",
29
+ "license": "MIT",
30
+ "homepage": "https://github.com/bbm-sghong/boot-nemonic-printer#readme",
31
+ "dependencies": {},
32
+ "devDependencies": {
33
+ "@types/react": "~19.1.1",
34
+ "expo-module-scripts": "^55.0.2",
35
+ "expo": "^55.0.24",
36
+ "react-native": "0.82.1"
37
+ },
38
+ "peerDependencies": {
39
+ "expo": "*",
40
+ "react": "*",
41
+ "react-native": "*"
42
+ },
43
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
44
+ }
@@ -0,0 +1,50 @@
1
+ export type Transport = 'bluetooth' | 'usb';
2
+
3
+ export type NPrinter = {
4
+ name: string;
5
+ macAddress: string;
6
+ type: number;
7
+ typeName?: string;
8
+ transport?: Transport;
9
+ };
10
+
11
+ export type PrintOptions = {
12
+ images?: number[][];
13
+ imageUrls?: string[];
14
+ quality?: number;
15
+ copies?: number;
16
+ isLastPageCut?: boolean;
17
+ enableDither?: boolean;
18
+ isCheckPrinterStatus?: boolean;
19
+ isCheckCartridgeType?: boolean;
20
+ isCheckPower?: boolean;
21
+ };
22
+
23
+ export type PrinterNameResult = {
24
+ result: number;
25
+ value: string;
26
+ };
27
+
28
+ export type PrintProgressEvent = {
29
+ index: number;
30
+ total: number;
31
+ result: number;
32
+ };
33
+
34
+ export type PrintCompleteEvent = {
35
+ result: number;
36
+ };
37
+
38
+ export type NativeLogEvent = {
39
+ tag: string;
40
+ level: string;
41
+ message: string;
42
+ };
43
+
44
+ export type BootNemonicPrinterModuleEvents = {
45
+ onDeviceFound: (printer: NPrinter) => void;
46
+ onDisconnected: () => void;
47
+ onPrintProgress: (event: PrintProgressEvent) => void;
48
+ onPrintComplete: (event: PrintCompleteEvent) => void;
49
+ onNativeLog: (event: NativeLogEvent) => void;
50
+ };