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

Asymetry in cordova build updating platform versions (Android/iOS)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0
    • None
    • cordova-cli
    • None
    • OSX

    Description

      The version attribute from config.xml updates fields with different semantic in Android vs iOS.

      Both platforms have 2 different version numbers. One acts as the "public" version number (published on the markets, etc) and the other acts as a "private" build number (changing with each development iteration)

      The current behavior is:

      So, android updates the visible version, but iOS updates the private one.

      This should be synced… I think it makes sense to have the config.xml version be the public one.

      This means update the iOS tooling to fill the CFBundleShortVersionString instead.

      That way, CFBundleVersion and android:versionCode remain "private versions", maybe using the build number from a continous integration server…

      Attachments

        1. ios_parser.js.patch
          0.6 kB
          Abel Muiño

        Issue Links

          Activity

            People

              agrieve Andrew Grieve
              amuino Abel Muiño
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: