From bd8cec6b071ba1bfc71695780fd69d113eb962e2 Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Mon, 24 Apr 2017 18:51:32 -0700 Subject: [PATCH 1/3] CB-12686 - Add docs for support in config.xml --- www/docs/en/dev/config_ref/index.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/www/docs/en/dev/config_ref/index.md b/www/docs/en/dev/config_ref/index.md index 1aa65a85397..5a66e148e6d 100644 --- a/www/docs/en/dev/config_ref/index.md +++ b/www/docs/en/dev/config_ref/index.md @@ -470,6 +470,23 @@ Examples: ``` +## 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)
Only for platform: | Description +---------------- | ------------ +src(string)
==iOS== ==Android==| *Required*
Location of the file relative to `plugin.xml`. If the src file can't be found, the CLI stops and reverses the installation, issues a notification about the problem, and exits with a non-zero code. +target(string) | Path to where the file will be copied in your directory. + +Examples: + +For Android: +```xml + +``` + + # Sample config.xml Below is a sample config.xml file: From e617e42d3f57c6ab1e070263d0a65e456047fc7c Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Tue, 25 Apr 2017 21:39:32 -0700 Subject: [PATCH 2/3] CB-12686 - typo, change plugin.xml to config.xml --- www/docs/en/dev/config_ref/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/docs/en/dev/config_ref/index.md b/www/docs/en/dev/config_ref/index.md index 5a66e148e6d..446f9d767b5 100644 --- a/www/docs/en/dev/config_ref/index.md +++ b/www/docs/en/dev/config_ref/index.md @@ -476,7 +476,7 @@ This tag installs resource files into your platform, and is similar to the same Attributes(type)
Only for platform: | Description ---------------- | ------------ -src(string)
==iOS== ==Android==| *Required*
Location of the file relative to `plugin.xml`. If the src file can't be found, the CLI stops and reverses the installation, issues a notification about the problem, and exits with a non-zero code. +src(string)
==iOS== ==Android==| *Required*
Location of the file relative to `config.xml`. If the src file can't be found, the CLI stops and reverses the installation, issues a notification about the problem, and exits with a non-zero code. target(string) | Path to where the file will be copied in your directory. Examples: From 1a44abfea269da5218918188794d2b4d515b7fe8 Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Wed, 26 Apr 2017 09:58:35 -0700 Subject: [PATCH 3/3] CB-12686 = remove copy and paste issue from plugin.xml --- www/docs/en/dev/config_ref/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/docs/en/dev/config_ref/index.md b/www/docs/en/dev/config_ref/index.md index 446f9d767b5..7455a785057 100644 --- a/www/docs/en/dev/config_ref/index.md +++ b/www/docs/en/dev/config_ref/index.md @@ -476,7 +476,7 @@ This tag installs resource files into your platform, and is similar to the same Attributes(type)
Only for platform: | Description ---------------- | ------------ -src(string)
==iOS== ==Android==| *Required*
Location of the file relative to `config.xml`. If the src file can't be found, the CLI stops and reverses the installation, issues a notification about the problem, and exits with a non-zero code. +src(string)
==iOS== ==Android==| *Required*
Location of the file relative to `config.xml`. target(string) | Path to where the file will be copied in your directory. Examples: