You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Steve Gill (JIRA)" <ji...@apache.org> on 2015/11/12 08:10:11 UTC

[jira] [Comment Edited] (CB-9976) Updating to cordovaLib 5.4.0 breaks ios installed plugins

    [ https://issues.apache.org/jira/browse/CB-9976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15001775#comment-15001775 ] 

Steve Gill edited comment on CB-9976 at 11/12/15 7:09 AM:
----------------------------------------------------------

Restoring plugins from config.xml works but still has issues with missing metadata in cordova_plugins.js and cordova-js-src not being deleted.

Also I think the purpose of storing cordova_plugins.js and plugins/ in platform_www was so cordova_plugins.js doesn't have to be generated on every prepare. 

The writing of cordova_plugins.js used to happen on every prepare. Now with the common workflow, it happens only on plugin add/remove/update and restore. Need to add this step back into the prepare step or add a new check that determines if it needs to be generated again.


was (Author: stevegill):
Restoring plugins from config.xml works but still has issues with missing metadata in cordova_plugins.js and cordova-js-src not being deleted.

Also I think the purpose of storing cordova_plugins.js and plugins/ in platform_www was so cordova_plugins.js doesn't have to be generated on every prepare. 

The writing of cordova_plugins.js used to happen on every prepare. Now with the common workflow, it happens only on plugin add/remove/update and restore. Need to add this step back into the prepare step. 

> Updating to cordovaLib 5.4.0 breaks ios installed plugins
> ---------------------------------------------------------
>
>                 Key: CB-9976
>                 URL: https://issues.apache.org/jira/browse/CB-9976
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>            Reporter: Steve Gill
>
> cordova_plugins.js doesn't get created for ios when updating from an older cli to a newer cli. 
> Have to remove and add plugins manually to get plugins working again.
> Reproduce (need to use npm < 3):
> npm install -g cordova@5.3.3
> cordova create helloWorld
> cd helloWorld
> cordova platform add ios
> cordova plugin add cordova-plugin-device
> cordova prepare (helloWorld/platforms/ios/www/cordova_plugins.js is created)
> npm install -g cordova@5.4.0
> cordova prepare (helloWorld/platforms/ios/www/cordova_plugins.js doesn't exist)
> `helloWorld/platforms/ios/ios.json` is also incorrect in the updated version. 



--
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