I am trying to develop a plugin for an existing Ionic / Cordova project by following this guide: https://cordova.apache.org/docs/en/latest/guide/hybrid/plugins/index.html
Since I am trying to port a simple standalone Android application to a plugin, I have already used Android Studio.
When I got to the part of the Java manual that tells me that the entry point of my plugin should inherit from CordovaPlugin, I began to wonder why Android Studio does not know the necessary dependency. However, I decided that somehow this dependency would be resolved as soon as the plug-in code was added (and thus copied) to the Cordova project.
However, I would really like my IDE to know that I am currently developing the Cordova plugin, and not a standalone application. So here are my questions:
- Is there a way to talk about this either in Android Studio or in some other IDE?
- Given that (1) is decidable, does the IDE make even more decent support for the ionic part of the development?
- In addition, it would be very nice if the IDE could automatically generate (possibly through a script) the scaffolding of the Cordova plugin. Is it somehow possible out of the box?
Since there are tons of IntelliJ plugins, I guess some combination of them should fit my needs. Or is it just wishful thinking?