You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by be...@apache.org on 2013/07/31 01:22:34 UTC

docs commit: [CB-4459] Added some plugin.xml documentation to windows phone plugin guide

Updated Branches:
  refs/heads/master 47a8a94e8 -> 7db07ce41


[CB-4459] Added some plugin.xml documentation to windows phone plugin guide


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/7db07ce4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/7db07ce4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/7db07ce4

Branch: refs/heads/master
Commit: 7db07ce41ee12f535d28fb33a848a73d1d5a3a83
Parents: 47a8a94
Author: Benn Mapes <be...@gmail.com>
Authored: Tue Jul 30 16:19:21 2013 -0700
Committer: Benn Mapes <be...@gmail.com>
Committed: Tue Jul 30 16:19:21 2013 -0700

----------------------------------------------------------------------
 docs/en/edge/guide/platforms/wp8/plugin.md | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/7db07ce4/docs/en/edge/guide/platforms/wp8/plugin.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/wp8/plugin.md b/docs/en/edge/guide/platforms/wp8/plugin.md
index 1c09791..139436d 100644
--- a/docs/en/edge/guide/platforms/wp8/plugin.md
+++ b/docs/en/edge/guide/platforms/wp8/plugin.md
@@ -146,6 +146,29 @@ in case we have bad input. This is a pattern used throughout the Cordova C# code
         // ... continue on to do our work
     }
 
+## Plugin XML
+
+These are windows phone specific examples of using the plugin.xml file, refer to the Plugin Specification for more details
+
+### `<source-file>`
+
+On windows phone the `<source-file>` element is currently used to define all plugin resources (ie. .cs, .xaml, .xaml.cs, .dll, image assets etc).
+
+### `<config-file>`
+
+The `<config-file>` element defines what elements get put into a config file. For example to add a plugin to the platforms config.xml, you would do something like this :
+
+    <config-file target="config.xml" parent="/*">
+        <feature name="PluginName">
+            <param name="wp-package" value="PluginName"/>
+        </feature>
+    </config-file>
+If we wanted to add the contacts capability to the WMAppManifest.xml, it would look like this :
+
+    <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
+        <Capability Name="ID_CAP_CONTACTS" />
+    </config-file>
+
 ## Advanced Plugin Functionality
 
 See other methods that you can override in: