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

CLI not updating platform config files with app version from config.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 2.9.0
    • None
    • None

    Description

      As an example, when creating a new app, the www/config.xml file has the following entry:

      <widget id="io.cordova.hellocordova" version="2.0.0" ...

      But after cordova prepare android (as an example) the platforms/android/AndroidManifest.xml has:

      <manifest ... android:versionCode="1" android:versionName="1.0"

      It does update AndroidManifest.xml with the package from the config.xml, but not the version information.

      Even if android:versionName was updated using version from config.xml, there would still need to be some provision for android:versionCode

      All of this is also needed for iOS (in AppName-Info.plist) and I would imagine the other platforms as well.

      Attachments

        Activity

          People

            filmaj Filip Maj
            devgeeks Tommy-Carlos Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: