I am writing a cordova ios plugin , I was able to correctly install the plugin.xml file to work and import my plugin inside the project using
cordova plugin add myplugin --searchpath=path/to/my/plugin --save
teams. Now I want to group all the plugin files inside a folder.
For example, having these 2 files (snippet from plugin.xml )
... <source-file src="src/ios/MyPlugin.m" /> <source-file src="src/ios/MyPlugin.h" /> ...
I would like to group them in the MyPlugin folder in the iOS Project Plugins folder:
MY_PROJECT |-- www/ |-- Staging/ |-- Classes/ |-- Plugins/ | |-- MyPlugin/ | | |-- MyPlugin.m | | |-- MyPlugin.h | |-- SomeOtherPlugin.m | |-- Foo.h |-- Other Sources/ |-- Resources/ |-- Framework/ |-- Products/
Right now, the Cordon CLI plugin manager seems to be throwing any plugin file inside the plugins folder, despite the plugin to which they belong.
Is there something equivalent to the Android target-dir attribute for iOS? Any hint?
Thank you in advance
source share