cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Koudritsky <>
Subject Re: plugin.xml config-file for json files
Date Tue, 11 Nov 2014 16:30:31 GMT
I was just having similar thoughts about getting info from the plugin to
*.gradle files.

Another option for JSON would be to bundle a JSON file with the same
structure as manifest.webapp and have the FirefoxOS build script merge this
file into manifest.webapp as one of the first steps. This will require a
convention, say all JOSN fils in a dir called manifest_extras get merged
into manifest.webapp by the firefoxos build script. And plugins will be
able to bundle json files with target-dir="manifest_extras/".

I know very little about firefoxos, but for gradle files on Android this
will probably be simpler to implement and more flexible (but only after
Gradles becomes the only supported build system).

On Tue, Nov 11, 2014 at 10:52 AM, Axel Nennker <>

> 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

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