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
Changing this ticket to just Ti.version as TIMOB-19031 fixed the buildHash and buildDate properties.
Ropening. Titanium.version does not return any value.
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
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.
[~cwilliams], I am still seeing the issue of no logs for Titanium.version in 4.1.0.v20150626084425. Is the fix in yet ?
[~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
Closing ticket as fixed, if there are any problems, please file a new ticket.