<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-cpp-bridge" version="0.0.7"
    xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
    
    <name>CordovaCppBridge</name>

    <platform name="osx">
        <config-file parent="/*" target="config.xml">
            <feature name="CordovaCppBridge">
                <param name="osx-package" value="CDVCppBridge" />
            </feature>
        </config-file>

        <js-module name="CordovaCppBridge" src="www/CDVCppBridge.js">
            <clobbers target="cpp" />
        </js-module>
    </platform>
    
    <platform name="ios">
        <config-file parent="/*" target="config.xml">
            <feature name="CordovaCppBridge">
                <param name="ios-package" value="CDVCppBridge" />
            </feature>
        </config-file>

        <js-module name="CordovaCppBridge" src="www/CDVCppBridge.js">
            <clobbers target="cpp" />
        </js-module>
    </platform>
    
    <platform name="android">
        <config-file parent="/*" target="res/xml/config.xml">
            <feature name="CordovaCppBridge">
                <param name="android-package" value="com.tkyaji.cordova.CDVCppBridge" />
            </feature>
        </config-file>
        <config-file parent="/*" target="AndroidManifest.xml"></config-file>

        <js-module name="CordovaCppBridge" src="www/CDVCppBridge.js">
            <clobbers target="cpp" />
        </js-module>
    </platform>

    <hook type="after_plugin_add" src="hooks/after_plugin_add.js" />
    <hook type="before_plugin_rm" src="hooks/before_plugin_rm.js" />
    <hook type="after_prepare" src="hooks/after_prepare.js" />

</plugin>
