Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9525

Dependent plugins not restored with versions from config.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.2.0
    • None
    • cordova-lib
    • None
    • OSX

    Description

      When I have a config.xml that uses a custom git branch of the cordova-plugin-file and the npm version of cordova-plugin-file-transfer, the npm version of cordova-plugin-file is installed before the git branch. This causes the app to use the npm version rather than the git branch as specified in config.xml.

      Test case:
      Create a new cordova project, replace the config.xml with the following, run cordova prepare.

      <?xml version='1.0' encoding='utf-8'?>
      <widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
          <name>HelloCordova</name>
          <description>
              A sample Apache Cordova application that responds to the deviceready event.
          </description>
          <author email="dev@cordova.apache.org" href="http://cordova.io">
              Apache Cordova Team
          </author>
          <content src="index.html" />
          <plugin name="cordova-plugin-whitelist" version="1" />
          <access origin="*" />
          <allow-intent href="http://*/*" />
          <allow-intent href="https://*/*" />
          <allow-intent href="tel:*" />
          <allow-intent href="sms:*" />
          <allow-intent href="mailto:*" />
          <allow-intent href="geo:*" />
          <platform name="android">
              <allow-intent href="market:*" />
          </platform>
          <platform name="ios">
              <allow-intent href="itms:*" />
              <allow-intent href="itms-apps:*" />
          </platform>
          <engine name="android" spec="~4.1.1" />
          <plugin name="cordova-plugin-file" spec="git://github.com/apache/cordova-plugin-file.git" />
          <plugin name="cordova-plugin-file-transfer" spec="~1.2.1" />
      </widget>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dpogue Darryl Pogue
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: