<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
    xmlns:android="http://schemas.android.com/apk/res/android"
    id="com.phonegap.plugins.childbrowser"
    version="0.6.0">

    <name>Child Browser</name>

    <asset src="www/childbrowser.js" target="childbrowser.js" />
    <asset src="www/childbrowser" target="childbrowser" />

	<access origin="build.phonegap.com" />
	<access origin="s3.amazonaws.com" />

    <!-- android -->
    <platform name="android">
        <config-file target="AndroidManifest.xml" parent="/manifest/application">
            <activity android:name="com.phonegap.plugins.childBrowser.ChildBrowser"
                      android:label="@string/app_name">
                <intent-filter>
                </intent-filter>
            </activity>
        </config-file>

        <config-file target="AndroidManifest.xml" parent="/somewhere/else">
            <another-tag real="false">
                <child-here>HALLO</child-here>
            </another-tag>
        </config-file>

        <!-- CDV < 2.0 -->
        <config-file target="res/xml/plugins.xml" parent="/plugins">
            <plugin name="ChildBrowser"
                value="com.phonegap.plugins.childBrowser.ChildBrowser"/>
        </config-file>

        <!-- CDV 2.0+ (for now) -->
        <config-file target="res/xml/config.xml" parent="/cordova/plugins">
            <plugin name="ChildBrowser"
                value="com.phonegap.plugins.childBrowser.ChildBrowser"/>
        </config-file>

        <source-file src="ChildBrowser.java"
                target-dir="src/com/phonegap/plugins/childBrowser" />
    </platform>

    <!-- ios -->
    <platform name="ios">
        <plugins-plist key="com.phonegap.plugins.childbrowser"
            string="ChildBrowserCommand" />

        <resource-file src="ChildBrowser.bundle" />
        <resource-file src="ChildBrowserViewController.xib" />

        <header-file src="ChildBrowserCommand.h" />
        <header-file src="ChildBrowserViewController.h" />
        <header-file src="preserveDirs/PreserveDirsTest.h" preserve-dirs="true" />
        <header-file src="TargetDirTest.h" target-dir="targetDir"/>

        <source-file src="ChildBrowserCommand.m" />
        <source-file src="ChildBrowserViewController.m" />
        <source-file src="preserveDirs/PreserveDirsTest.m" preserve-dirs="true" />
        <header-file src="TargetDirTest.m" target-dir="targetDir"/>

        <!-- framework for testing (not actual dependency of ChildBrowser -->
        <framework src="libsqlite3.dylib" />
    </platform>
</plugin>
