forked from apache/cordova-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add <resource-file> config.xml doc to 6.x as well
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -468,6 +468,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 `[email protected]` or greater and `[email protected]` 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: | ||
|
||
|