I'm developing a Cordova plugin for Android that includes custom frameworks, and one of them is only compatible with cordova-android >= 4.0.0.
I know in the plugin.xml file we can target cordova-android specific versions, but that applies on the whole plugin for the platform.
Here is a short version of my plugin.xml :
MyPlugin
Here, framework called "first-framework" works only with cordova-android < 4.0.0, and "second-framework" works only with cordova-android >= 4.0.0.
Basically my goal is to have only one plugin.xml file that declares :
if cordova-android is < 4.0.0 : use "first-framework"
else if cordova-android is >= 4.0.0 : use "second-framework"
How could I do this ?
Thanks