refactor ios plugin
This commit is contained in:
parent
cbcbf54c3b
commit
e9949500fb
@ -1,6 +1,8 @@
|
|||||||
# cordova-zebra-printer
|
# cordova-zebra-printer
|
||||||
A Cordova plugin for Zebra CPCL printers for both iOS and Android with Ionic 3 bindings. This plugin only supports Zebra models that use CPCL printing. Feel free to contribute to this project if you need to support other methods of printing. It has only been tested with Zebra QLn320 printers. Let me know if you use if sucessfully with others.
|
A Cordova plugin for Zebra CPCL printers for both iOS and Android with Ionic 3 bindings. This plugin only supports Zebra models that use CPCL printing. Feel free to contribute to this project if you need to support other methods of printing. It has only been tested with Zebra QLn320 printers. Let me know if you use if sucessfully with others.
|
||||||
|
|
||||||
|
Also this now requires a minimum of Cordova 9 and cordova-ios 5.0.
|
||||||
|
|
||||||
Get from npm
|
Get from npm
|
||||||
```
|
```
|
||||||
cordova plugin add ca-cleversolutions-zebraprinter
|
cordova plugin add ca-cleversolutions-zebraprinter
|
||||||
|
49
plugin.xml
49
plugin.xml
@ -6,8 +6,9 @@
|
|||||||
<js-module name="ZebraPrinter" src="www/ZebraPrinter.js">
|
<js-module name="ZebraPrinter" src="www/ZebraPrinter.js">
|
||||||
<clobbers target="cordova.plugins.zebraPrinter" />
|
<clobbers target="cordova.plugins.zebraPrinter" />
|
||||||
</js-module>
|
</js-module>
|
||||||
<platform name="ios" SwiftVersion="5">
|
<platform name="ios">
|
||||||
<config-file target="config.xml" parent="/*">
|
<config-file target="config.xml" parent="/*">
|
||||||
|
<preference name="SwiftVersion" value="5.0" />
|
||||||
<feature name="ZebraPrinter">
|
<feature name="ZebraPrinter">
|
||||||
<param name="ios-package" value="ZebraPrinterPlugin" />
|
<param name="ios-package" value="ZebraPrinterPlugin" />
|
||||||
</feature>
|
</feature>
|
||||||
@ -18,32 +19,32 @@
|
|||||||
</array>
|
</array>
|
||||||
</config-file>
|
</config-file>
|
||||||
<!-- Zebra SDK -->
|
<!-- Zebra SDK -->
|
||||||
<header-file src="src/ios/lib/include/DiscoveredPrinter.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/DiscoveredPrinter.h" />
|
||||||
<header-file src="src/ios/lib/include/DiscoveredPrinterNetwork.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/DiscoveredPrinterNetwork.h" />
|
||||||
<header-file src="src/ios/lib/include/FieldDescriptionData.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/FieldDescriptionData.h" />
|
||||||
<header-file src="src/ios/lib/include/FileUtil.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/FileUtil.h" />
|
||||||
<header-file src="src/ios/lib/include/FormatUtil.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/FormatUtil.h" />
|
||||||
<header-file src="src/ios/lib/include/GraphicsUtil.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/GraphicsUtil.h" />
|
||||||
<header-file src="src/ios/lib/include/MagCardReader.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/MagCardReader.h" />
|
||||||
<header-file src="src/ios/lib/include/MfiBtPrinterConnection.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/MfiBtPrinterConnection.h" />
|
||||||
<header-file src="src/ios/lib/include/NetworkDiscoverer.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/NetworkDiscoverer.h" />
|
||||||
<header-file src="src/ios/lib/include/PrinterStatus.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/PrinterStatus.h" />
|
||||||
<header-file src="src/ios/lib/include/PrinterStatusMessages.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/PrinterStatusMessages.h" />
|
||||||
<header-file src="src/ios/lib/include/SGD.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/SGD.h" />
|
||||||
<header-file src="src/ios/lib/include/SmartCardReader.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/SmartCardReader.h" />
|
||||||
<header-file src="src/ios/lib/include/TcpPrinterConnection.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/TcpPrinterConnection.h" />
|
||||||
<header-file src="src/ios/lib/include/ToolsUtil.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/ToolsUtil.h" />
|
||||||
<header-file src="src/ios/lib/include/ZebraErrorCode.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/ZebraErrorCode.h" />
|
||||||
<header-file src="src/ios/lib/include/ZebraPrinter.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/ZebraPrinter.h" />
|
||||||
<header-file src="src/ios/lib/include/ZebraPrinterConnection.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/ZebraPrinterConnection.h" />
|
||||||
<header-file src="src/ios/lib/include/ZebraPrinterFactory.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/ZebraPrinterFactory.h" />
|
||||||
<header-file src="src/ios/lib/include/ZplPrintMode.h" />
|
<header-file src="src/ios/ZebraPrinter/lib/include/ZplPrintMode.h" />
|
||||||
<!-- ZSDK Library -->
|
<!-- ZSDK Library -->
|
||||||
<source-file src="src/ios/lib/libZSDK_API.a" framework="true" />
|
<source-file src="src/ios/ZebraPrinter/lib/libZSDK_API.a" framework="true" />
|
||||||
<!-- Briding File -->
|
<!-- Briding File -->
|
||||||
<header-file src="src/ios/Bridging-Header.h" />
|
<header-file src="src/ios/ZebraPrinter/ZebraPrinter-Bridging-Header.h" type="BridgingHeader" />
|
||||||
<!-- Plugin Source -->
|
<!-- Plugin Source -->
|
||||||
<source-file src="src/ios/ZebraPrinterPlugin.swift" />
|
<source-file src="src/ios/ZebraPrinter/ZebraPrinterPlugin.swift" />
|
||||||
</platform>
|
</platform>
|
||||||
<platform name="android">
|
<platform name="android">
|
||||||
<config-file target="res/xml/config.xml" parent="/*">
|
<config-file target="res/xml/config.xml" parent="/*">
|
||||||
|
BIN
src/.DS_Store
vendored
BIN
src/.DS_Store
vendored
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user