Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1358] Android - add support for .buildHash and .buildDate

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:58.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M04
ComponentsAndroid
Labelsandroid, feature
ReporterThomas Huelbert
AssigneeDon Thorp
Created2011-04-15T02:50:21.000+0000
Updated2011-04-17T01:55:58.000+0000

Description

Titanium.buildHash and Titanium.buildDate return null on android, return values on iOS.

[DST] Implementation Note: Log the information at the top of each builder.py run with our other diagnostic information at the INFO level. This will make it easier to diagnose then going into the app.

Comments

  1. Don Thorp 2011-04-15

    site_scons/package.py builds version.txt and drops it into the mobilesdk/OS/VERSION dir. Then it looks like support/iphone/builder.py processes the file to make it available to the application.

  2. Thomas Huelbert 2011-04-15

    Hey Bill, on iOS Titanium.buildDate returns the date in mm/dd/year, while on android its year/mm/dd - is it desirable or necessary for these to return the same format? Other wise this is resolved.

  3. Thomas Huelbert 2011-04-15

    wrong ticket for this comment, pls ignore

  4. Bill Dawson 2011-04-15

    (from [385f47fb6c9f857e2b6e87e1d432242be84acf4b]) [#1358] We were off-by-one when parsing the build hash http://github.com/appcelerator/titanium_mobile/commit/385f47fb6c9f857e2b6e87e1d432242be84acf4b"> http://github.com/appcelerator/titanium_mobile/commit/385f47fb6c9f8...

  5. Bill Dawson 2011-04-15

    I never answered Thomas's earlier question. ... From my perspective it's fine as-is. I was using pre-existing code that we already had for getting the hash, date, etc., and didn't see a need to re-invent the wheel. I mean it's certainly not the only thing that is different between what users see when they build iPhone versus Android. I think it's okay, but if I'm out-voted, let me know. :)

  6. Bill Dawson 2011-04-15

    (from [9ad2e16bf5183ac47c90d9b7501eab7ab784b13c]) [#1358] Also added display of the build version, timestamp and hash at application startup, in the default uncaught handler and the analytics event for exceptions http://github.com/appcelerator/titanium_mobile/commit/9ad2e16bf5183ac47c90d9b7501eab7ab784b13c"> http://github.com/appcelerator/titanium_mobile/commit/9ad2e16bf5183...

  7. Bill Dawson 2011-04-15

    (from [1c05216249dc5a6025ecb0765df9ce023912cedd]) [#1358] Also added display of the build version, timestamp and hash at application startup, in the default uncaught handler and the analytics event for exceptions http://github.com/appcelerator/titanium_mobile/commit/1c05216249dc5a6025ecb0765df9ce023912cedd"> http://github.com/appcelerator/titanium_mobile/commit/1c05216249dc5...

  8. Bill Dawson 2011-04-15

    don, exec. decision req'd, see my October 1st, 2010 @ 04:37 PM comment

  9. Bill Dawson 2011-04-15

    don agreed with me that it's okay as-is. Okay with Thomas to close?

  10. Thomas Huelbert 2011-04-15

    Titanium SDK version: 1.5.0 (12/04/10 08:46 b7b9e78)

JSON Source