@rdlabo/capacitor-brotherprint 7.0.0-0 → 7.0.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.
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ Capacitor Brother Print is a native Brother Print SDK implementation for iOS & A
|
|
|
4
4
|
|
|
5
5
|
**This plugin is still in the RC (release candidate) phase.**
|
|
6
6
|
|
|
7
|
+
**Brother Print SDK is incompatible with CocoaPods and Minimum Developments iOS 14 and is not working at this time, please use Swift Package Manager.**
|
|
8
|
+
|
|
7
9
|
## Supported models
|
|
8
10
|
|
|
9
11
|
Each product link is an Amazon affiliate link. If you choose to make a purchase through these links, it would be greatly appreciated and **would help** support development costs. Thank you!
|
|
@@ -157,11 +157,16 @@ public class BrotherPrintPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
157
157
|
option.searchDuration = TimeInterval(call.getInt("searchDuration", 15))
|
|
158
158
|
|
|
159
159
|
NSLog("BRLMPrinterSearcher.startNetworkSearch")
|
|
160
|
-
BRLMPrinterSearcher.startNetworkSearch(option) { channel in
|
|
160
|
+
let searcher = BRLMPrinterSearcher.startNetworkSearch(option) { channel in
|
|
161
161
|
NSLog(channel.channelInfo)
|
|
162
162
|
let printer = self.chanelToPrinter(port: "wifi", channel: channel)
|
|
163
163
|
self.notifyListeners(BrotherPrinterEvent.onPrinterAvailable.rawValue, data: printer)
|
|
164
164
|
}
|
|
165
|
+
if searcher.error.code != BRLMPrinterSearchErrorCode.noError {
|
|
166
|
+
call.reject("Error - startNetworkSearch: " + PrinterSearchErrorModel.fetchChannelErrorCode(error: searcher.error.code))
|
|
167
|
+
return
|
|
168
|
+
}
|
|
169
|
+
print(searcher.channels.count)
|
|
165
170
|
self.cancelRoutineWiFi = nil
|
|
166
171
|
call.resolve()
|
|
167
172
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<key>NSPrincipalClass</key>
|
|
22
22
|
<string></string>
|
|
23
23
|
<key>NSLocalNetworkUsageDescription</key>
|
|
24
|
-
<string>Use
|
|
24
|
+
<string>Use local network for label printer search.</string>
|
|
25
25
|
<key>NSBluetoothAlwaysUsageDescription</key>
|
|
26
26
|
<string>Use Bluetooth for label printer search.</string>
|
|
27
27
|
<key>NSBluetoothPeripheralUsageDescription</key>
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
module BRLMPrinterKit {
|
|
2
2
|
header "../../../../../../ios/LocalPackages/BRLMPrinterKit/Sources/BRLMPrinterKit.xcframework/ios-arm64/BRLMPrinterKit.framework/Headers/BRLMPrinterKit.h"
|
|
3
|
-
link "BRLMPrinterKit"
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
module BRPtouchPrinterKit {
|
|
7
3
|
header "../../../../../../ios/LocalPackages/BRLMPrinterKit/Sources/BRLMPrinterKit.xcframework/ios-arm64/BRLMPrinterKit.framework/Headers/BRPtouchPrinterKit.h"
|
|
4
|
+
link "BRLMPrinterKit"
|
|
8
5
|
link "BRPtouchPrinterKit"
|
|
6
|
+
export *
|
|
9
7
|
}
|