First, the easy one: Certainly you should have a way to drop files into platforms/ios/HelloCordova, and I think <source-file> is probably the way to go. The root seems to be the plugin folder by default, so you may need to prefix with "../.." right now. Also seems hacky, not sure if there is a better way.
For the other two: /merges and /hooks, I really don't think we should be adding files into there. I consider those application assets, along with www/ and application config.xml, which we also should not be directly modifying from plugins. For hooks -- there is a PR outstanding to just go ahead and add plugin hooks. Perhaps you would like to help review and comment on that to get it landed asap? For merges -- I kinda think we should have plugins on par with apps, and just have a merges/ folder for plugins. However, merges/ is probably just generally a bad idea, and I suspect you can do a better job yourself by writing hooks/ instead. -Michal On Wed, Jul 30, 2014 at 10:32 AM, Carlos Santana <[email protected]> wrote: > I already know about <asset> and <resource-file> [1] in plugin.xml > > I'm currently working with ios: > <asset> copy files will be available inside mobile app www path > <resource-file> files will be available to mobile app from root path > > I want to be able to provide files to other locations that do not go inside > mobile app: > 1. I want to add files to <cordovaproject> > <cordovaproject>/merges/ios/ > <cordovaproject>/hooks/ > Also here to add scripts/files that will be use by XCode build phases but > do not go inside mobile App > <cordovaproject>platform/ios/HelloCordova/ > > Right now I'm doing something like this, and it feels like a hack that > might not work for all operating systems. > > <asset src="src/ios/www/default/worklight/checksum.js" > target="../../../merges/ios/default/worklight/checksum.js" /> > > Maybe we need to add new feature for more elements like? > <cordova-file src="" target=""> > <native src="" target=""> > > > > [1]: > > https://github.com/apache/cordova-docs/blob/master/docs/en/edge/plugin_ref/spec.md > > -- > Carlos Santana > <[email protected]> >
