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

 Copyright 2013 Anis Kadri

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.

-->

<plugin xmlns="http://cordova.apache.org/ns/plugins/1.0"
    xmlns:android="http://schemas.android.com/apk/res/android"
    id="org.test.plugins.faultyplugin"
    version="0.6.0">

    <name>Faulty Plugin</name>

    <access origin="build.phonegap.com" />
    <access origin="s3.amazonaws.com" />
    <!-- file doesn't exist -->

    <config-file target="config.xml" parent="/widget">
        <asset src="www/main.js" target="faultyplugin/main.js" />
        <asset src="www/index.js" target="faultyplugin/index.js" />
    </config-file>

    <!-- windows -->
    <platform name="windows">
        <config-file target="config.xml" parent="/*">
            <feature name="org.test.plugins.faultyplugin">
                <param name="windows-package" value="org.test.plugins.faultyplugin"/>
            </feature>
        </config-file>

        <source-file src="src/windows/faultyPlugin.js" />

        <resource-file src="src/windows/text_sample1.txt" target="text_samples/text_sample1.txt" arch="x85" />
        <resource-file src="src/windows/text_sample2.txt" target="text_samples/text_sample2.txt" versions="8.0a" />
        <resource-file src="src/windows/text_sample3.txt" target="text_samples/text_sample3.txt" device-target="daphne"/>

        <lib-file src="TestSDK1, Version=1.0" arch="x85"/>
        <lib-file src="TestSDK2, Version=1.0" versions="8.0a"/>
        <lib-file src="TestSDK3, Version=1.0" device-target="daphne"/>

        <!-- does not exist -->
        <source-file src="src/windows/NotHere.js" />
    </platform>
</plugin>
