cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Mocny <>
Subject Re: I've fixed an issue. What's next?
Date Sat, 15 Nov 2014 19:29:18 GMT
> plugman info org.apache.cordova.inappbrowser

Returns a list of published plugin versions, a set of supported platforms,
and a set of engine requirements for the current version

> plugman info org.apache.cordova.inappbrowser@0.5.3

Returns info for a particular older version.

With these tools, we could change cordova-cli to first call info, and
iterate backwards through the published versions until a compatible plugin
is found.  I don't think we should auto-install older versions, but we
could say "warning, the latest versions of plugin-FOO is not compatible
with platform-BAR, you can install plugin-FOO@x.y.z instead".

Josh is right, that we can get into hairy situations since we do not have
platform-specific plugin installs (there were proposals for this before).
I don't actually think it will come up often, so lets solve that issue when
we get there.  For now, would be nice to let shaz add the new engine
requirement to the plugin without breaking plugin install for everyone who
doesn't update cordova-ios first.


On Fri, Nov 14, 2014 at 3:33 PM, Josh Soref <> wrote:

> Steven Gill wrote:
> > Maybe we should have it auto grab an older version of the plugin that is
> > supported? Or at least a better error message telling them to try older
> > versions of the plugin with cordova plugin add
> > org.apache.cordova.file@VERSION
> Ian Clelland wrote:
> > I'd love to have the plugin registry automatically serve the
> >
> > most-recent-still-compatible version of a plugin. I don't know how that
> > works when you install plugins *before* platforms, though.
> I think plugman or someone at a prepare stage when a platform installs
> could warn and try (network could be offline) to get a compatible version.
> Note that there's an interesting problem here:
> Suppose I have 1 plugin, and I install version 20 of it to my project.
> I then install platform A which is happy w/ version 20.
> I then install platform B which only works w/ version 19, so something
> automatically installs version 19 for this platform.
> If the API between the two versions isn't compatible (and we don't have an
> api validator to tell the developer if it is), then the resulting app
> won't work properly on that platform.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message