<?xml version="1.0" encoding="UTF-8" ?>

<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-midi-sender" version="0.1.2">
    <name>MIDISender</name>
    <description>Send and Receive MIDI messages through attached interfaces</description>
    <license>Apache 2.0</license>
    <keywords>MIDI,coreaudio,program,change</keywords>
    <repo>https://github.com/manuelnelson/cordova-plugin-midi-sender.git</repo>
    <issue>https://github.com/manuelnelson/cordova-plugin-midi-sender/issues</issue>
	<license>MIT</license>
	
	<author>Emmanuel Nelson</author>
    <engines>
        <!--
            Cordova 9.0.0 is all I have tested on - it should work fine with earlier versions.
            Please modify the below line, test, and submit a PR if it works for you.
        -->
        <engine name="cordova" version=">=3.4.0"/>
    </engines>
    <asset src="www/midisender.js" target="js/midisender.js"/>
    <js-module src="www/midisender.js" name="midisender">
        <clobbers target="MIDISender" />
    </js-module>

    <!-- android -->
    <platform name="android">
        <config-file target="res/xml/config.xml" parent="/*">
            <feature name="MIDISender" >
                <param name="android-package" value="com.emmanuelnelson.MIDISender" />
            </feature>
        </config-file>

        <config-file target="AndroidManifest.xml" parent="/*">
            <uses-feature android:name="android.software.midi" android:required="true"/>
        </config-file>

        <source-file src="src/android/MIDISender.java" target-dir="src/com/emmanuelnelson"  />
    </platform>

    <!-- ios -->
    <platform name="ios">
        
        <config-file target="config.xml" parent="/*">
            <feature name="MIDISender">
                <param name="ios-package" value="MIDISender" onload="true" />
            </feature>
        </config-file>
        
        <header-file src="src/ios/MIDISender.h" />
        <source-file src="src/ios/MIDISender.m" />
        
        <framework src="CoreMIDI.framework" />
    </platform>

</plugin>
