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

`cordova-android` version pinned to 6.3.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: cordova@7.1.0
    • Fix Version/s: None
    • Component/s: cordova-lib
    • Labels:
      None
    • Environment:

      macOS: 10.12.6
      cordova-lib: 7.1.0

      Description

      When there are no version specified for the `android` platform in `config.xml`, `cordova platform add` takes the pinned version into account, which is currently 6.3.0 but 6.4.0 of `cordova-android` is available via npm.

      ```
      $ cordova create cordova-platform-test
      Creating a new cordova project.
      $ cd cordova-platform-test/
      $ grep cordova-android config.xml package.json
      $ cordova platform add android --verbose
      No scripts found for hook "before_platform_add".
      No version supplied. Retrieving version from config.xml...
      Grabbing pinned version.
      Using cordova-fetch for cordova-android@~6.3.0
      saving
      Running command: npm install cordova-android@~6.3.0 --production --save
      Command finished with error code 0: npm install,cordova-android@~6.3.0,-production,-save

      ...

      Prepared android project successfully
      No scripts found for hook "after_prepare".
      Saving android@6.3.0 into platforms.json
      --save flag or autosave detected
      Saving android@~6.3.0 into config.xml file ...
      adding android to cordova.platforms array in package.json
      No scripts found for hook "after_platform_add".
      ```

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              metafunk Tom Sullivan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: