We've discussed adding <dependancy> to app's config.xml, but its
interesting that you intend to have that work during build/prepare step.
 Previously I think this was discussed in terms of "cordova create" only,
which wouldn't satisfy your use case.  I think your use case is quite
valid, but now im concerned about how to support removed <dependancy> over
time, or manually installed plugins that arent in <dependancy> list...

Maybe every plugin installed/removed *must* be reflected in the app's
config.xml?

-Michal


On Mon, Oct 21, 2013 at 1:42 PM, Axel Nennker <ignisvul...@gmail.com> wrote:

> Yes. Currently we are adding plugin be hand.
> The problem is that we have a distributes developer team. So when the UI
> developers change something in www to require a plugin and merge that with
> master; then when the other developers pull master again the plugin is
> missing and the Application hangs.
> This has led to some frustration and wasted time.
>
> I think it would really help if www - developers could express a dependency
> on plugins so that the next
>     phonegap local android build
> updates to the now missing plugins...
>
> cheers
> Axel
>
>
> 2013/10/21 Ian Clelland <iclell...@chromium.org>
>
> > I don't think that we have "app dependencies" in Cordova (yet). If your
> app
> > depends on a plugin, then you should install that plugin.
> >
> > Either "cordova plugin add org.apache.cordova.globalization" or "plugman
> > install org.apache.cordova.globalization" (not sure about the command
> line
> > params there) should add the plugin and modify your config.xml file
> > appropriately.
> >
> > If you're concerned about automation / distribution, and want a simple
> way
> > to declare all of your app's dependent plugins, rather than just
> > documenting them, then you can use the technique that mobile-spec
> uses[1]:
> > Create a "dependency-only plugin" which just lists all of the plugins on
> > which your app depends, and as part of your create step, install that
> > single plugin. Cordova will then recursively install all of the
> > dependencies listed in it.
> >
> > [1]
> >
> >
> https://github.com/apache/cordova-mobile-spec/tree/master/dependencies-plugin
> >
> >
> > On Mon, Oct 21, 2013 at 10:44 AM, <axel.nenn...@telekom.de> wrote:
> >
> > > Hi,
> > >
> > > the docs in
> > >
> >
> https://cordova.apache.org/docs/en/3.1.0/config_ref_index.md.html#The%20config.xml%20Filesaythatthe
>  feature element is only for the platform specific config.xml
> > > s, right?
> > >
> > > Is there a way to specify that my phonegap app needs a plugin on all
> > > platforms e.g. Globalization?
> > >
> > > Making up this "example":
> > > https://cordova.apache.org/docs/en/3.0.0/plugin_ref_spec.md.html
> > > <gap:dependency id="com.plugin.id" url="
> > > https://github.com/myuser/someplugin"; commit="428931ada3891801"
> > > subdir="some/path/here" />
> > >
> > > We are building an app that uses Globalization in javascript; so there
> is
> > > no platform dependency
> > > How do I specifiy in www/config.xml that Globalization is needed as a
> > > plugin?
> > >
> > > Cheers
> > > Axel
> > >
> >
>

Reply via email to