| <?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.dummyplugin" |
| version="0.6.0"> |
| |
| <!-- new requirement: NO SPACES --> |
| <name>dummyplugin</name> |
| <!-- These are going to be required by plugman-registry --> |
| <description>my description</description> |
| <author>Jackson Badman</author> |
| <keywords>dummy,plugin</keywords> |
| <license>BSD</license> |
| <!-- end plugman-registry requirements --> |
| |
| <asset src="www/dummyplugin.js" target="dummyplugin.js" /> |
| <asset src="www/dummyplugin" target="dummyplugin" /> |
| |
| <config-file target="config.xml" parent="/*"> |
| <access origin="build.phonegap.com" /> |
| <access origin="s3.amazonaws.com" /> |
| </config-file> |
| |
| <!-- android --> |
| <platform name="android"> |
| <config-file target="AndroidManifest.xml" parent="/manifest/application"> |
| <activity android:name="com.phonegap.plugins.dummyplugin.DummyPlugin" |
| 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="DummyPlugin" |
| value="com.phonegap.plugins.dummyplugin.DummyPlugin"/> |
| </config-file> |
| |
| <!-- CDV 2.0+ (for now) --> |
| <config-file target="res/xml/config.xml" parent="/cordova/plugins"> |
| <plugin name="DummyPlugin" |
| value="com.phonegap.plugins.dummyplugin.DummyPlugin"/> |
| </config-file> |
| |
| <source-file src="src/android/DummyPlugin.java" |
| target-dir="src/com/phonegap/plugins/dummyplugin" /> |
| <lib-file src="src/android/TestLib.jar" /> |
| </platform> |
| |
| <!-- amazon fireos --> |
| <platform name="amazon-fireos"> |
| <config-file target="AndroidManifest.xml" parent="/manifest/application"> |
| <activity android:name="com.phonegap.plugins.dummyplugin.DummyPlugin" |
| 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="DummyPlugin" |
| value="com.phonegap.plugins.dummyplugin.DummyPlugin"/> |
| </config-file> |
| |
| <!-- CDV 2.0+ (for now) --> |
| <config-file target="res/xml/config.xml" parent="/cordova/plugins"> |
| <plugin name="DummyPlugin" |
| value="com.phonegap.plugins.dummyplugin.DummyPlugin"/> |
| </config-file> |
| |
| <source-file src="src/android/DummyPlugin.java" |
| target-dir="src/com/phonegap/plugins/dummyplugin" /> |
| <lib-file src="src/android/TestLib.jar" /> |
| </platform> |
| |
| <!-- blackberry10 --> |
| <platform name="blackberry10"> |
| <config-file target="www/config.xml" parent="/widget"> |
| <feature id="dummyPlugin" required="true" version="1.0.0.0"/> |
| </config-file> |
| |
| <source-file src="src/blackberry10/index.js"/> |
| <js-module src="www/dummyplugin.js" name="Dummy"> |
| <clobbers target="dummy" /> |
| </js-module> |
| </platform> |
| |
| |
| <!-- ios --> |
| <platform name="ios"> |
| <!-- CDV < 2.4 --> |
| <plugins-plist key="com.phonegap.plugins.dummyplugin" |
| string="DummyPluginCommand" /> |
| |
| <!-- CDV 2.5+ --> |
| <config-file target="config.xml" parent="/widget/plugins"> |
| <plugin name="DummyPlugin" |
| value="DummyPluginCommand"/> |
| </config-file> |
| |
| <resource-file src="src/ios/DummyPlugin.bundle" /> |
| |
| <header-file src="src/ios/DummyPluginCommand.h" /> |
| <source-file src="src/ios/DummyPluginCommand.m"/> |
| |
| <source-file src="src/ios/SourceWithFramework.m" framework="true" /> |
| |
| <header-file src="src/ios/TargetDirTest.h" target-dir="targetDir" /> |
| <source-file src="src/ios/TargetDirTest.m" target-dir="targetDir" /> |
| |
| <!-- framework for testing (not actual dependency of DummyPlugin --> |
| <framework src="src/ios/libsqlite3.dylib" /> |
| <framework src="src/ios/libsqlite3.dylib" weak="true" /> |
| <framework src="src/ios/Custom.framework" custom="true" /> |
| </platform> |
| |
| <!-- wp7 --> |
| <platform name="wp7"> |
| <config-file target="config.xml" parent="/*"> |
| <feature id="dummyPlugin" required="true" version="1.0.0.0"/> |
| </config-file> |
| |
| <source-file src="src/wp7/DummyPlugin.cs"/> |
| <js-module src="www/dummyplugin.js" name="Dummy"> |
| <clobbers target="dummy" /> |
| </js-module> |
| </platform> |
| |
| <!-- wp8 --> |
| <platform name="wp8"> |
| <config-file target="config.xml" parent="/*"> |
| <feature id="dummyPlugin" required="true" version="1.0.0.0"/> |
| </config-file> |
| |
| <source-file src="src/wp8/DummyPlugin.cs"/> |
| <js-module src="www/dummyplugin.js" name="Dummy"> |
| <clobbers target="dummy" /> |
| </js-module> |
| </platform> |
| |
| <!-- windows8 --> |
| <platform name="windows8"> |
| <config-file target="config.xml" parent="/*"> |
| <feature id="dummyPlugin" required="true" version="1.0.0.0"/> |
| </config-file> |
| |
| <source-file src="src/windows8/dummer.js"/> |
| <js-module src="www/dummyplugin.js" name="Dummy"> |
| <clobbers target="dummy" /> |
| </js-module> |
| </platform> |
| |
| </plugin> |