Affects Version/s: Master
Fix Version/s: None
If you add a platform after adding a plugin, you can get an exception
- Create a new cordova app (e.g. 'cordova create TestApp').
- Add a plugin (e.g. 'cordova plugin add org.apache.cordova.camera').
- Add a platform (e.g. 'cordova platform add browser').
The following error:
The problem is we are trying to install plugins for the platform before we call prepare() for the platform, so config.xml has not been created yet.
Also note: we are currently passing junk to prepare() - because of the location of the call, the local variable platform is not defined, and instead we are passing a reference to a function platform().