You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2015/03/27 22:42:03 UTC

[1/2] docs commit: CB-8703: Add support for semver and device-specific targeting of config-file to Windows.

Repository: cordova-docs
Updated Branches:
  refs/heads/master 784f8ebcf -> 45f8ff531


CB-8703: Add support for semver and device-specific targeting of
config-file to Windows.

This is the documentation change for the above feature addition.


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

Branch: refs/heads/master
Commit: 96ff6852c84fd9be9dad25220b928f8186bc8b4d
Parents: 45f14f0
Author: Rob Paveza <Ro...@microsoft.com>
Authored: Wed Mar 18 10:10:03 2015 -0700
Committer: Rob Paveza <Ro...@microsoft.com>
Committed: Wed Mar 18 10:10:03 2015 -0700

----------------------------------------------------------------------
 docs/en/edge/plugin_ref/spec.md | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/96ff6852/docs/en/edge/plugin_ref/spec.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/plugin_ref/spec.md b/docs/en/edge/plugin_ref/spec.md
index f90753a..e076db2 100644
--- a/docs/en/edge/plugin_ref/spec.md
+++ b/docs/en/edge/plugin_ref/spec.md
@@ -454,6 +454,26 @@ It supports the following attributes:
 
 * `after`: A prioritized list of accepted siblings after which to add the XML snippet. Useful for specifying changes in files which require strict ordering of XML elements like [http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769509%28v=vs.105%29.aspx#BKMK_EXTENSIONSelement](http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769509%28v=vs.105%29.aspx#BKMK_EXTENSIONSelement)
 
+The Windows platform supports two additional attributes (both optional) when affecting the meta-name `package.appxmanifest`:
+
+The `device-target` attribute indicates that the  should only be included when building for the specified target device
+type. Supported values are `win`, `phone`, or `all`.
+
+The `versions` attribute indicates that app manifests for specific Windows versions should only be altered for versions that match the
+specified version string. Value can be any valid node semantic version range string.
+
+Examples of using these Windows specific attributes:
+
+    <config-file target="package.appxmanifest" parent="/Package/Capabilities" versions="<8.1.0">
+        <Capability Name="picturesLibrary" />
+        <DeviceCapability Name="webcam" />
+    </config-file>
+    <config-file target="package.appxmanifest" parent="/Package/Capabilities" versions=">=8.1.0" device-target="phone">
+        <DeviceCapability Name="webcam" />
+    </config-file>
+
+The above example will set pre-8.1 platforms (Windows 8, specifically) to require the `webcam` device capability and the `picturesLibrary` general capability, and apply the `webcam` device capability only to Windows 8.1 projects that build for Windows Phone.  Windows desktop 8.1 systems are unmodified. 
+
 ## _plugins-plist_ Element
 
 This is _outdated_ as it only applies to cordova-ios 2.2.0 and
@@ -517,7 +537,7 @@ Supported attributes:
 * `arch`: Indicates that the `<SDKReference>` should only be included when building for the specified architecture.
   Supported values are `x86`, `x64` or `ARM`.
 
-* `target`: Indicates that the `<SDKReference>` should only be included when building for the specified target device
+* `device-target`: Indicates that the `<SDKReference>` should only be included when building for the specified target device
   type. Supported values are `win` (or `windows`), `phone` or `all`.
 
 * `versions`: Indicates that the `<SDKReference>` should only be included when building for versions that match the specified version
@@ -571,7 +591,7 @@ The Windows platform supports three additional attributes (all optional) to refi
 The `arch` attribute indicates that the framework should only be included when building for the specified architecture.
 Supported values are `x86`, `x64` or `ARM`.
 
-The `target` attribute indicates that the framwork should only be included when building for the specified target device
+The `device-target` attribute indicates that the framework should only be included when building for the specified target device
 type. Supported values are `win` (or `windows`), `phone` or `all`.
 
 The `versions` attribute indicates that the framework should only be included when building for versions that match the


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[2/2] docs commit: Merge branch 'CB-8703' of https://github.com/robpaveza/cordova-docs

Posted by pu...@apache.org.
Merge branch 'CB-8703' of https://github.com/robpaveza/cordova-docs


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

Branch: refs/heads/master
Commit: 45f8ff5310248237d5e51e4016fa11f88b68fa0b
Parents: 784f8eb 96ff685
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Fri Mar 27 14:41:36 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Fri Mar 27 14:41:36 2015 -0700

----------------------------------------------------------------------
 docs/en/edge/plugin_ref/spec.md | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)
----------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org