cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/2] docs commit: CB-8703: Add support for semver and device-specific targeting of config-file to Windows.
Date Fri, 27 Mar 2015 21:42:03 GMT
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 <Rob.Paveza@microsoft.com>
Authored: Wed Mar 18 10:10:03 2015 -0700
Committer: Rob Paveza <Rob.Paveza@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


Mime
View raw message