Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19039] Windows: Titanium.version does not return correct values

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-06-24T19:07:42.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsqe-4.1.0
ReporterEwan Harris
AssigneeChristopher Williams
Created2015-06-17T22:26:32.000+0000
Updated2017-03-31T22:21:44.000+0000

Description

Description

When getting the version, buildHash and buildDate properties they are logged as the following
__TITANIUM_VERSION__
__TITANIUM_BUILD_HASH__
__TITANIUM_BUILD_DATE__
var win = Ti.UI.createWindow({backgroundColor:'black'});
 
var lbl = Ti.UI.createLabel({
    text: 'Hello!'
});

lbl.addEventListener('click', function(e){
    console.log(Titanium.version)
    console.log(Titanium.buildHash);
    console.log(Titanium.buildDate);
});
 
win.add(lbl);
win.open();

Steps To Reproduce

1. Using the above code build to a windows emulator

Actual Result

The logging contains the value
__TITANIUM_VERSION__
__TITANIUM_BUILD_HASH__
__TITANIUM_BUILD_DATE__

Expected Result

The values should be values like
4.1.0
c7717ab
2015/06/16 22:52

Comments

  1. Christopher Williams 2015-06-22

    Changing this ticket to just Ti.version as TIMOB-19031 fixed the buildHash and buildDate properties.
  2. Lokesh Choudhary 2015-06-24

    Ropening. Titanium.version does not return any value.
       [INFO] :   
       [INFO] :   aac7571
       [INFO] :   6/22/2015 15:18
       
    Environment: Appc Studio: 4.1.0.201506221807 Ti SDK: 4.1.0.v20150624102755 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-3 Windows emulator : 8.1
  3. Christopher Williams 2015-06-24

    Looks like the fix didn't land on a good 4_1_x build yet. I'm fixing the build now, hopefully a new SDK should be out later today that includes the fix.
  4. Lokesh Choudhary 2015-06-26

    [~cwilliams], I am still seeing the issue of no logs for Titanium.version in 4.1.0.v20150626084425. Is the fix in yet ?
  5. Fokke Zandbergen 2015-07-01

    [~cwilliams] in the source it's still set to an empty string: https://github.com/appcelerator/titanium_mobile_windows/blob/master/Source/TitaniumKit/src/TiModule.cpp#L50
  6. Lee Morris 2017-03-31

    Closing ticket as fixed, if there are any problems, please file a new ticket.

JSON Source