cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-8577) 'cordova plugin add <plugin> --save' should save variables into config.xml
Date Sat, 28 Feb 2015 16:23:05 GMT


ASF GitHub Bot commented on CB-8577:

Github user omefire commented on the pull request:
    It currently doesn't work in 100% of the cases but I do agree we can postpone the fix.

    I don't really care what the name of the element is : '<variable>' or something
else. As long as it works, I'm fine with it. 
    Although it is NOT written anywhere that '<variable>' is the name to be used, the
code is currently saying a different story(long before this change). In fact, "ConfigParser.getFeature(id)"
does assume that variables are under the '<variable>' element name. That's why changing
things to '<variable>' fixes this issue.
    Like I said, I'm fine if instead you want to modify the name to something else.

> 'cordova plugin add <plugin> --save' should save variables into config.xml
> --------------------------------------------------------------------------
>                 Key: CB-8577
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>            Reporter: Omar Mefire
> When adding a plugin with the --save/autosave option on, the variables (if any is passed)
should be saved into config.xml so that the plugin can be auto-restored successfully later
during 'prepare' or 'build' operation.
> For example:
> - cordova create hello com.omefire.hello Hello
> - cd hello
> - cordova plugin add com.phonegap.plugins.facebookconnect --variable APP_ID="my-app-id"
--variable APP_NAME="my-app-name" --save => results in facebook plugin added to config.xml
> - cordova prepare android => results in an error message :
> " Installing "com.phonegap.plugins.facebookconnect" for android
> Failed to install 'com.phonegap.plugins.facebookconnect':Error: Variable(s) missing:
> This issue is due to the fact that 'cordova plugin add <plugin> --save' save variables
in config.xml using the <param> tag instead of the <variable> tag.
> N.B: on 'cordova prepare <platform>', the plugins are restored from config.xml
if they are not yet installed.

This message was sent by Atlassian JIRA

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

View raw message