blob: e4c8eec0a262870372f997ddeca0961abed7077a [file] [log] [blame]
<?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="com.phonegap.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>
<!-- android -->
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.phonegap.plugins.faultyplugin.FaultyPlugin"
android:label="@string/app_name">
<intent-filter>
</intent-filter>
</activity>
</config-file>
<!-- CDV < 2.0 -->
<config-file target="res/xml/plugins.xml" parent="/plugins">
<plugin name="FaultyPlugin"
value="com.phonegap.plugins.faultyplugin.FaultyPlugin"/>
</config-file>
<!-- CDV 2.0+ (for now) -->
<config-file target="res/xml/config.xml" parent="/cordova/plugins">
<plugin name="FaultyPlugin"
value="com.phonegap.plugins.faultyplugin.FaultyPlugin"/>
</config-file>
<!-- this file doesn't exist -->
<source-file src="src/android/NotHere.java"
target-dir="src/com/phonegap/plugins/faultyplugin" />
</platform>
<!-- android -->
<platform name="amazon-fireos">
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.phonegap.plugins.faultyplugin.FaultyPlugin"
android:label="@string/app_name">
<intent-filter>
</intent-filter>
</activity>
</config-file>
<!-- CDV < 2.0 -->
<config-file target="res/xml/plugins.xml" parent="/plugins">
<plugin name="FaultyPlugin"
value="com.phonegap.plugins.faultyplugin.FaultyPlugin"/>
</config-file>
<!-- CDV 2.0+ (for now) -->
<config-file target="res/xml/config.xml" parent="/cordova/plugins">
<plugin name="FaultyPlugin"
value="com.phonegap.plugins.faultyplugin.FaultyPlugin"/>
</config-file>
<!-- this file doesn't exist -->
<source-file src="src/android/NotHere.java"
target-dir="src/com/phonegap/plugins/faultyplugin" />
</platform>
<!-- ios -->
<platform name="ios">
<!-- /cordova/plugins no longer exists, it is now /widget/plugins -->
<!-- this should fail to install on ios -->
<config-file target="config.xml" parent="/cordova/plugins">
<plugin name="FaultyPlugin"
value="FaultyPlugin"/>
</config-file>
<header-file src="src/ios/FaultyPlugin.h" />
<source-file src="src/ios/FaultyPlugin.m" />
<!-- these files don't exist -->
<header-file src="src/ios/FaultyPluginCommand.h" />
<source-file src="src/ios/FaultyPluginCommand.m" />
<resource-file src="src/ios/IDontExist.bundle" />
<framework src="src/ios/Nopers.lib" />
<framework src="src/ios/NonExistantCustomFramework.framework" custom="true" />
</platform>
<platform name="blackberry10">
<config-file target="config.xml" parent="/widget">
<feature id="cordova.echo" required="true" version="1.0.0.0"/>
</config-file>
<source-file src="src/blackberry10/index.js" target-dir="ext-qnx/cordova.echo" />
<!-- these dont exist -->
<lib-file src="src/blackberry10/device/echoJnext.so" target-dir="ext-qnx/cordova.echo/device" />
<lib-file src="src/blackberry10/simulator/echoJnext.so" target-dir="ext-qnx/cordova.echo/simulator" />
</platform>
<!-- wp7 -->
<platform name="wp7">
<config-file target="config.xml" parent="/*">
<feature name="FaultyPlugin">
<param name="wp-package" value="FaultyPlugin"/>
</feature>
</config-file>
<source-file src="src/wp7/FaultyPlugin.cs" />
<!-- this desn't exist -->
<source-file src="src/wp7/NotHere.cs" />
</platform>
<!-- wp8 -->
<platform name="wp8">
<config-file target="config.xml" parent="/*">
<feature name="FaultyPlugin">
<param name="wp-package" value="FaultyPlugin"/>
</feature>
</config-file>
<source-file src="src/wp8/FaultyPlugin.cs" />
<!-- this desn't exist -->
<source-file src="src/wp8/NotHere.cs" />
</platform>
<!-- wp8 -->
<platform name="windows8">
<config-file target="config.xml" parent="/*">
<feature name="FaultyPlugin">
<param name="windows8-package" value="FaultyPlugin"/>
</feature>
</config-file>
<source-file src="src/windows8/faultyPlugin.js" />
<!-- does not exist -->
<source-file src="src/windows8/NotHere.js" />
</platform>
</plugin>