cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Räder (JIRA) <j...@apache.org>
Subject [jira] [Updated] (CB-13985) Plugin installation fails if the plugin requires variables on platform add
Date Fri, 16 Mar 2018 15:28:00 GMT

     [ https://issues.apache.org/jira/browse/CB-13985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benjamin Räder updated CB-13985:
--------------------------------
    Description: 
If you have a plugin defined in your plugin.xml like this:
{code:java}
<plugin name="cordova-plugin-facebook4" spec="git+https://github.com/XXXXXXXXXXXX/cordova-plugin-facebook4.git">
<variable name="APP_ID" value="1234567890" /> 
<variable name="APP_NAME" value="Testapp" />
</plugin>{code}
And you try to add a new platform to your project:
{code:java}
cordova platform add ios
{code}
The plugin cannot be installed because the variables are not passed during the installation
phase:
{code:java}
Installing "cordova-plugin-facebook4" for ios Failed to install 'cordova-plugin-facebook4':
Error: Variable(s) missing: APP_ID, APP_NAME at Object.mergeVariables (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/variable-merge.js:58:15)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:315:44
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54) at self.promiseDispatch.done
(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch
(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13) at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44
at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17) at process._tickCallback
(internal/process/next_tick.js:150:11) Error: Variable(s) missing: APP_ID, APP_NAME
{code}

  was:
If you have a plugin defined in your plugin.xml like this:
{code:java}
<plugin name="cordova-plugin-facebook4" spec="git+https://github.com/XXXXXXXXXXXX/cordova-plugin-facebook4.git">
<variable name="APP_ID" value="1234567890" /> 
<variable name="APP_NAME" value="Testapp" />
</plugin>{code}


> Plugin installation fails if the plugin requires variables on platform add
> --------------------------------------------------------------------------
>
>                 Key: CB-13985
>                 URL: https://issues.apache.org/jira/browse/CB-13985
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugman
>            Reporter: Benjamin Räder
>            Priority: Major
>
> If you have a plugin defined in your plugin.xml like this:
> {code:java}
> <plugin name="cordova-plugin-facebook4" spec="git+https://github.com/XXXXXXXXXXXX/cordova-plugin-facebook4.git">
> <variable name="APP_ID" value="1234567890" /> 
> <variable name="APP_NAME" value="Testapp" />
> </plugin>{code}
> And you try to add a new platform to your project:
> {code:java}
> cordova platform add ios
> {code}
> The plugin cannot be installed because the variables are not passed during the installation
phase:
> {code:java}
> Installing "cordova-plugin-facebook4" for ios Failed to install 'cordova-plugin-facebook4':
Error: Variable(s) missing: APP_ID, APP_NAME at Object.mergeVariables (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/variable-merge.js:58:15)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:315:44
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54) at self.promiseDispatch.done
(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch
(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13) at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44
at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17) at process._tickCallback
(internal/process/next_tick.js:150:11) Error: Variable(s) missing: APP_ID, APP_NAME
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message