New check added to VoltBuilder

We’ve added a new check to VoltBuilder.

Before it starts processing your job, it takes a look at your config.xml file. If you declare a plugin more than once, it will now return an error message.

This can especially cause problems if the different plugin statements have different version specs. The fix is simple: remove the redundant plugin statements.

Prior to this update my config file was fine, but now it doesn’t work with:

<platform name="android">
    <plugin name="cordova-plugin-firebase-analytics" spec="~4.3" />
</platform>
<platform name="ios">        
    <plugin name="cordova-plugin-firebase-analytics" />
</platform>    

as it says cordova-plugin-firebase-analytics has been defined more than once.

I currently need the iOS and Android plugins to use different versions.

Good point. We’ve reverted this change until we can take this into account.

The check is back in place, smarter than ever. @johnpauljones’s config should work fine now.