cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel Nennker <ignisvul...@gmail.com>
Subject Re: plugin.xml config-file for json files
Date Tue, 11 Nov 2014 19:09:23 GMT
I would not modify the value. Can config-file replace values?
Just adding stuff would be good enough for my (current) purposes.
I would throw on existing keys.
When two plugins add the same key then plugman should throw and I don't
want to track all changes over all plugins.

2014-11-11 19:58 GMT+01:00 Jesse <purplecabbage@gmail.com>:

> I would like to see a new element titled 'json-file' and matching parser
> that does the work.
> something like this?
>
> <json-file target="someManifest.json" parent="some.object.path">
> "{the:{stringValue:2,b:"added"},or:{modified:true}}"
> </json-file>
>
>
> @purplecabbage
> risingj.com
>
> On Tue, Nov 11, 2014 at 9:02 AM, Shazron <shazron@gmail.com> wrote:
>
> > Have you considered plugin hooks?
> > I just implemented this yesterday to modify the root config.xml file:
> >
> >
> https://github.com/apache/cordova-plugins/blob/master/local-webserver/plugin.xml
> >
> > On Tuesday, November 11, 2014, Axel Nennker <ignisvulpis@gmail.com>
> wrote:
> >
> > > Hi,
> > >
> > > if I remember correctly then this was discussed before but I can't find
> > the
> > > email exchange.
> > >
> > > We are trying to use our cordova app on firefoxos and would like to
> > modify
> > > manifest.webapp which is a json file.
> > >
> > > In plugin.xml we can only modify xml files using the config-file
> element.
> > >
> > > What are your preference on how to implenent this?
> > > - reuse config-file with new attribute type="json" (default "xml")
> > >   or new element e.g. "config-file-json"
> > > - only adding to the json and throw if key already exists?
> > > - ...
> > >
> > > Should I file an issue and implement it?
> > >
> > > cheers
> > > Axel
> > >
> >
>

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