cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Newman (JIRA)" <>
Subject [jira] [Created] (CB-9765) Configure plugins in config.xml
Date Wed, 07 Oct 2015 22:50:26 GMT
James Newman created CB-9765:

             Summary: Configure plugins in config.xml
                 Key: CB-9765
             Project: Apache Cordova
          Issue Type: New Feature
          Components: CLI
    Affects Versions: 5.3.2
            Reporter: James Newman
            Priority: Minor

It would be nice if you could specify plugin variables in config.xml.

Take, for example, configuring cordova-plugin-purchase(

This requires you to specify an android billing key when installing the plugin:

    cordova plugin add cc.fovea.cordova.purchase  --variable BILLING_KEY="<BILLING_KEY>"

What if this variable could be specified in config.xml to further automate the build process,

    <plugin name="cc.fovea.cordova.purchase">
         <param name="BILLING_KEY" value="<BILLING_KEY>"/>

Now new developers don't have to manually install and configure each plugin, cordova would
pick up the plugin names and their parameters from config.xml and install them.

Of course, I just used this particular plugin as an example, and I think this feature would
apply to many others as well. 

>From what I gather online this is supported by phonegap build, although I don't know much
about the differences. For example, the same cordova-plugin-purchase can be configured for
phonegap build like:

    <gap:plugin name="cc.fovea.cordova.purchase" source="npm" version="4.0.0">
        <param name="BILLING_KEY" value="MIIB...."/>

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message