Pergunta

I've upgraded my Cordova project (to 3.4.0).

There's simple instructions on upgrading the Cordova framework, but I cannot find documentation on bringing plugins to their latest versions (especially the cordova-* set of plugins).

Do each of them need to be individually rm'ed and add'ed again, or is there a better way?

Thanks.

Foi útil?

Solução

According to this recent post on the Apache Cordova website the way to update a plugin is by removing and then re-adding it, e.g.:

cordova plugin rm org.apache.cordova.file

cordova plugin add org.apache.cordova.file

No mention of a way 'update' all installed plugins at once though.

Outras dicas

I believe you can re-run 'cordova plugin add _' and it will overwrite any existing plugins with the latest one it finds in the registry.

There is not 'cordova plugin update' command.

Some plugin will don't have id same as in the old Cordova version. So, you should get all the current plugin, remove and add it again for each plugin.

cordova plugin rm org.apache.cordova.device
cordova plugin add cordova-plugin-device
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top