Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16674

Android build/package: versionName loses zeros after the decimal

    Details

    • Sprint:
      2014 Sprint 10 Tooling

      Description

      When publishing an app to Google Play, if the versionName has trailing zeros (e.g. 3.0, 3.10), those zeros are lost by the build process, so that in AndroidManifest.xml, versionName comes out as, for example, 3 instead of 3.0.

      Example tiapp.xml snippet:

      <android xmlns:android="http://schemas.android.com/apk/res/android">
      <manifest android:installLocation="auto"
      android:versionCode="15" android:versionName="3.0">

      You can see that versionName is set to "3.0", a string. In AndroidManifest.xml, you get this:

      <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.MyCompany.MyAppName" android:versionCode="15" android:versionName="3" android:installLocation="auto">

      I noticed that in _build.js, versionName is sometimes being treated as a
      number, and sometimes as a string.

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              bitshftr Shawn Lipscomb
              Reviewer:
              Tim Poulsen
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-18505
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration