cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Newman (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/jira/browse/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(https://github.com/j3k0/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,
eg:

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

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...."/>
    </gap:plugin>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message