Is there any way to specify in plugin.xml to copy every file in plugin source folder to the target platform directory either with one dir copy statement or automatically copy every file in src directory.
Using to be copied as part of big plugin is the nightmare, as we are seeing manual changes needed during the massive refactoring.
I can't vote yet :( but Rafita is correct. To expand on that answer, I do the same thing because I have a large set of files that comprise an Android Activity that include many java source files, assets, layouts, and resources that all need to be installed into the platforms (and merged with any existing ones generated by the core android plugin).
<source-file src="src/android/java/com/acme" target-dir="src/com" />
will copy your entire package tree into the platforms/android/src/com/acme
directory.
And for the resources and assets, you can do this:
<resource-file src="src/android/res" target="res" />
<resource-file src="src/android/assets" target="assets" />
<source-file src="src/ios" target-dir="src"/>
Will copy all source files from your plugin/src/ios
directory to platforms/ios/Project-Name/Plugins/plugin-name
directory
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With