cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject docs commit: CB-12686 - Add docs for <resource-file> support in config.xml
Date Thu, 27 Apr 2017 01:29:56 GMT
Repository: cordova-docs
Updated Branches:
  refs/heads/master dffa37eff -> 9ad2d4470


CB-12686 - Add docs for <resource-file> support in config.xml

 This closes #696


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

Branch: refs/heads/master
Commit: 9ad2d44708e5766acfdb7c12f7fab3860efcde5c
Parents: dffa37e
Author: Shazron Abdullah <shazron@gmail.com>
Authored: Mon Apr 24 18:51:32 2017 -0700
Committer: Shazron Abdullah <shazron@gmail.com>
Committed: Wed Apr 26 18:29:37 2017 -0700

----------------------------------------------------------------------
 www/docs/en/dev/config_ref/index.md | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9ad2d447/www/docs/en/dev/config_ref/index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/dev/config_ref/index.md b/www/docs/en/dev/config_ref/index.md
index 1aa65a8..7455a78 100644
--- a/www/docs/en/dev/config_ref/index.md
+++ b/www/docs/en/dev/config_ref/index.md
@@ -470,6 +470,23 @@ Examples:
 <hook type="after_plugin_install" src="scripts/afterPluginInstall.js" />
 ```
 
+## resource-file
+
+This tag installs resource files into your platform, and is similar to the same tag in plugin.xml.
This tag is currently only supported on `cordova-ios@4.4.0` or greater and `cordova-android@6.2.1`
or greater.
+
+Attributes(type) <br/> <span class="sub-header">Only for platform:</span>
| Description
+---------------- | ------------
+src(string) <br/> ==iOS== ==Android==| *Required* <br/> Location of the file
relative to `config.xml`.
+target(string) | Path to where the file will be copied in your directory.
+
+Examples:
+
+For Android:
+```xml
+<resource-file src="FooPluginStrings.xml" target="res/values/FooPluginStrings.xml" />
+```
+
+
 # Sample config.xml
 Below is a sample config.xml file:
 


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


Mime
View raw message