I am developing a PhoneGap 3.5.0 app for iOS and Android. I want to write some functionality in native code and so I've been looking at creating a plugin.
I've followed the Plugin Development Guide and all of the code works fine; I can call native functions via the JS api the plugin exposes.
My question is how to continue development from here. Right now I just added the plugin classes manually to the project (I'm developing the plugin for iOS first, so I'm not concerned with android at this point). It looks like what I should be doing is put the plugin code in a separate repo that resembles this example and then add it to the app with the CLI tools.
I did this, and the plugin gets added to the app. However, I don't know how to continue making changes to the plugin, testing them, and also updating the plugin files in the app after they've changed in the plugin repo.
What's the intended/recommended workflow here? Is it to change the plugin files directly in the app from XCode and then copy them to the plugin repo every time?
Also, do you know why when you modify the project-level plugin files and to a cordova build it doesn't copy them to the platform?
I am not 100% sure, but I believe the only reason for the project level retention of plugin files is for the case that you add another platform to the project.