<?xml version='1.0' encoding='utf-8'?>
<plugin id="ca-cleversolutions-zebraprinter" version="0.0.1" 
    xmlns="http://apache.org/cordova/ns/plugins/1.0" 
    xmlns:android="http://schemas.android.com/apk/res/android">
    <name>ZebraPrinter</name>
    <js-module name="ZebraPrinter" src="www/ZebraPrinter.js">
        <clobbers target="cordova.plugins.zebraPrinter" />
    </js-module>
    <platform name="ios">
        <config-file target="config.xml" parent="/*">
            <feature name="ZebraPrinter">
                <param name="ios-package" value="ZebraPrinterPlugin" />
            </feature>
        </config-file>
        <config-file target="*-Info.plist" parent="UISupportedExternalAccessoryProtocols">
            <array>
                <string>com.zebra.rawport</string>
            </array>
        </config-file>
        <!-- Swift support -->
        <dependency id="cordova-plugin-add-swift-support" version="1.7.2"/>
        <!-- Zebra SDK -->
        <header-file src="src/ios/lib/include/DiscoveredPrinter.h" />
        <header-file src="src/ios/lib/include/DiscoveredPrinterNetwork.h" />
        <header-file src="src/ios/lib/include/FieldDescriptionData.h" />
        <header-file src="src/ios/lib/include/FileUtil.h" />
        <header-file src="src/ios/lib/include/FormatUtil.h" />
        <header-file src="src/ios/lib/include/GraphicsUtil.h" />
        <header-file src="src/ios/lib/include/MagCardReader.h" />
        <header-file src="src/ios/lib/include/MfiBtPrinterConnection.h" />
        <header-file src="src/ios/lib/include/NetworkDiscoverer.h" />
        <header-file src="src/ios/lib/include/PrinterStatus.h" />
        <header-file src="src/ios/lib/include/PrinterStatusMessages.h" />
        <header-file src="src/ios/lib/include/SGD.h" />
        <header-file src="src/ios/lib/include/SmartCardReader.h" />
        <header-file src="src/ios/lib/include/TcpPrinterConnection.h" />
        <header-file src="src/ios/lib/include/ToolsUtil.h" />
        <header-file src="src/ios/lib/include/ZebraErrorCode.h" />
        <header-file src="src/ios/lib/include/ZebraPrinter.h" />
        <header-file src="src/ios/lib/include/ZebraPrinterConnection.h" />
        <header-file src="src/ios/lib/include/ZebraPrinterFactory.h" />
        <header-file src="src/ios/lib/include/ZplPrintMode.h" />
        <!-- ZSDK Library -->
        <source-file src="src/ios/lib/libZSDK_API.a" framework="true" />
        <!-- Briding File -->
        <header-file src="src/ios/ZebraPrinter-Bridging-Header.h" />
        <!-- Plugin Source -->
        <source-file src="src/ios/ZebraPrinterPlugin.swift" />
    </platform>
    <platform name="android">
        <config-file target="res/xml/config.xml" parent="/*">
            <feature name="ZebraPrinter">
                <param name="android-package" value="com.apache.cordova.plugins.zebra.ZebraPrinter" />
            </feature>
        </config-file>
        <config-file target="AndroidManifest.xml" parent="/*">
            <uses-permission android:name="android.permission.BLUETOOTH" />
            <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
        </config-file>
        <source-file src="src/android/org/apache/cordova/plugins/zebra/ZebraPrinter.java" target-dir="src/com/apache/cordova/plugins/zebra/" />
        <source-file src="src/android/lib/ZSDK_ANDROID_API.jar" target-dir="libs"/>
    </platform>
</plugin>