cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-8651) Restoring platforms and plugins causes plugin install to be triggered twice
Date Fri, 27 Mar 2015 14:29:55 GMT


ASF subversion and git services commented on CB-8651:

Commit e6c940d2adc501e08ca6e7a1a969191c2daef4df in cordova-lib's branch refs/heads/master
from [~TimBarham]
[;h=e6c940d ]

CB-8651 Restoring platforms causes plugin install to be triggered twice  (close #196)

If you add a platform and there are plugins listed in config.xml, those plugins get added
twice. One during prepare(), when we add all plugins listed in config.xml, and once in platform.add(),
when we add all installed plugins to the new platform.

Both these cases are needed in different scenarios, so the easiest fix seemed to be to check
for and ignore plugins that have already been installed for a platform, in installPluginsForNewPlatform().

> Restoring platforms and plugins causes plugin install to be triggered twice
> ---------------------------------------------------------------------------
>                 Key: CB-8651
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>            Reporter: Connor Pearson
>            Assignee: Tim Barham
>            Priority: Minor
> Using the basic starter app with the following config.xml:
> {code:xml}
> <?xml version='1.0' encoding='utf-8'?>
> <widget id="io.cordova.hellocordova" version="0.0.1" xmlns=""
>     <name>HelloCordova</name>
>     <content src="index.html" />
>     <access origin="*" />
>     <engine name="ios" version="3.8.0" />
>     <feature name="Device">
>         <param name="id" value="org.apache.cordova.device" />
>     </feature>
> </widget>
> {code}
> Running cordova prepare ios without a platforms or plugins directory produces this output:
> {quote}
> Restoring platform ios@3.8.0 referenced on config.xml
> Adding ios project...
> iOS project created with cordova-ios@3.8.0
> Discovered org.apache.cordova.device in config.xml. Installing to the project
> Fetching plugin "org.apache.cordova.device" via plugin registry
> Installing "org.apache.cordova.device" for ios
> Plugin "org.apache.cordova.device" already installed on ios.
> {quote}
> It looks like Cordova is trying to install the plugin twice.

This message was sent by Atlassian JIRA

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

View raw message