Effectively re-deploying plugin content during development


This might be not strictly related to any Ionic version, just rather something Cordova-related, but still, couldn’t find any reasonable solution anywhere.

I’m developing my own plugin and would like to be able to reload its code on simulator from time to time. Right now, the only way in which my plugin content is fully reloaded is:

rm -rf platforms/android
cordova platform add android
cordova build --release android

If I do anything wrong in plugin.xml, I need to remove entire platform, add it again so that my changes are picked up. The cordova build itself does not pick up changes in plugin.xml.

The same is for compilation errors in my *.java files. I need to remove entire platform and add it again so that I can recompile with updated files.

Is there any better, more efficient way to work on plugin development?