Skip to content

Commit

Permalink
Add <resource-file> config.xml doc to 6.x as well
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron committed Apr 27, 2017
1 parent bf7af6c commit edca6c9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions www/docs/en/6.x/config_ref/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit edca6c9

Please sign in to comment.