You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when defining a <resource-file src="example.xml" target="res/values/example.xml" /> see cordova documentation config.xml the src-file is not copied into the application-resources folder <platform-dir>/app/src/main/, but instead to the <project-dir>. In contrast when defining the same <resource-file /> in a plugin.xml, the file will be copied to the right destination see
I feel like the config.xml behavior is the correct behavior, since you might want to add files to other folders, not just to app/src/main.
In example a common case of usage for resource-file is to copy the google-services.json file, which needs to be inside app folder, not in app/src/main folder.
But changing the behavior for plugins at this point will break a lot of plugins, so I think we should document the difference of behavior when using it in config.xml vs plugin.xml
Bug Report
Problem
when defining a
<resource-file src="example.xml" target="res/values/example.xml" />
see cordova documentation config.xml the src-file is not copied into the application-resources folder<platform-dir>/app/src/main/
, but instead to the<project-dir>
. In contrast when defining the same<resource-file />
in a plugin.xml, the file will be copied to the right destination seecordova-android/lib/pluginHandlers.js
Line 61 in e61e271
What is expected to happen?
The defined src should be copied within the application-resource folder
<platform-dir>/app/src/main/
What does actually happen?
The src-file will be copied to the
<project-dir>
Information
Command or Code
Environment, Platform, Device
Version information
Cordova Packages:
Project Installed Platforms:
Ionic:
Ionic CLI : 7.1.1
Checklist
The text was updated successfully, but these errors were encountered: