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

Can't use "DNS Soa Serial number format" as Android versionCode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • cordova-android
    • None

    Description

      If you use the DNS Soa Serial number format format (ie. YYYYmmddss) as your Android versionCode it will be too big for an integer value, as the platforms/android/build.gradle script suffixes it with a "0".

      For example, today's versionCode could be 2015080601.

      The build script will suffix it with a "0", and cast it as an integer. So it becomes 20,150,806,010 but its too high for and integer, whose max value is 2,147,483,647.

      Then the build script fails.

      Worst part : it used to work, so I can't upgrade my apps on Google Play !

      Attachments

        Issue Links

          Activity

            People

              bowserj Joey Robert Bowser
              pa-de-solminihac Pierre-Alexis de Solminihac
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: