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

Android: "Ti.buildHash" property always returns null

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.0
    • Fix Version/s: Release 7.5.0
    • Component/s: Android
    • Labels:
    • Story Points:
      1
    • Sprint:
      2018 Sprint 12 SDK, 2018 Sprint 13 SDK, 2018 Sprint 14 SDK, 2018 Sprint 15 SDK, 2018 Sprint 16 SDK, 2016 Sprint 17 SDK, 2018 Sprint 18 SDK, 2018 Sprint 19 SDK

      Description

      Summary:
      The Ti.buildHash property always returns null on Android. This has been happening since Titanium 6.0.0.
      (This is not an issue on iOS.)

      Steps to reproduce:

      • Build and run the below code on Android.
      • On app startup, an alert displays the buildHash.
      • Note that it displays it as "undefined". (This is the bug.)

      alert("Ti.buildHash = " + Ti.buildHash);
      

      Cause:
      Our "android.js" build script expects to receive option.gitHash with a capital 'H' here...
      https://github.com/appcelerator/titanium_mobile/blob/master/build/android.js#L22

      But our "scons-build.js" and "scons-cleanbuild.js" scripts are passing in a lowercase githash.
      https://github.com/appcelerator/titanium_mobile/blob/master/build/scons-build.js
      https://github.com/appcelerator/titanium_mobile/blob/master/build/scons-cleanbuild.js

      Note:
      The buildHash is mostly needed to distinguish between an RC and GA version of Titanium. We log the Titanium version on app startup and this is helpful to better provide tech-support for the community.

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
              Tester:
              Lokesh Choudhary
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code