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

Order of plugins in config.xml modified during build

    XMLWordPrintableJSON

    Details

      Description

      Running cordova build android or cordova build ios changes the order in which plugins are listed in the config.xml (arranging them alphabetically).

      This causes problems when manually resolving dependencies, e.g. when installing a specific version of a dependency first by having it higher up in the list.

      Example:
      Original config.xml content:
      ...
      <plugin name="cordova-plugin-device" spec="^1.1.6" />
      <plugin name="cordova-plugin-camera" spec="^2.4.1" />
      <plugin name="cordova-plugin-whitelist" spec="^1.3.2" />
      <engine name="android" spec="^6.2.3" />
      <engine name="ios" spec="^4.4.0" />
      ...

      After cordova build:
      ...
      <engine name="android" spec="^6.2.3" />
      <engine name="ios" spec="^4.4.0" />
      <plugin name="cordova-plugin-camera" spec="^2.4.1" />
      <plugin name="cordova-plugin-device" spec="^1.1.6" />
      <plugin name="cordova-plugin-whitelist" spec="^1.3.2" />
      ...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                auso Audrey So
                Reporter:
                antweb_ih Anton Weber
              • Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: