{ "id": "148895", "key": "TIMOB-19039", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-24T19:07:42.000+0000", "created": "2015-06-17T22:26:32.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-4.1.0" ], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [ { "id": "48165", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "149018", "key": "TIMOB-19057", "fields": { "summary": "Windows: Test Todo list sample", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "48143", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "148813", "key": "TIMOB-19031", "fields": { "summary": "Windows: Update Ti.buildHash and Ti.buildDate properties on CI build", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2017-03-31T22:21:44.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen getting the version, buildHash and buildDate properties they are logged as the following\r\n\r\n{code}\r\n__TITANIUM_VERSION__\r\n__TITANIUM_BUILD_HASH__\r\n__TITANIUM_BUILD_DATE__\r\n{code}\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'black'});\r\n \r\nvar lbl = Ti.UI.createLabel({\r\n text: 'Hello!'\r\n});\r\n\r\nlbl.addEventListener('click', function(e){\r\n console.log(Titanium.version)\r\n console.log(Titanium.buildHash);\r\n console.log(Titanium.buildDate);\r\n});\r\n \r\nwin.add(lbl);\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. Using the above code build to a windows emulator\r\n\r\nh5.Actual Result\r\n\r\nThe logging contains the value \r\n\r\n{code}\r\n__TITANIUM_VERSION__\r\n__TITANIUM_BUILD_HASH__\r\n__TITANIUM_BUILD_DATE__\r\n{code}\r\n\r\nh5.Expected Result\r\n\r\nThe values should be values like \r\n\r\n{code}\r\n4.1.0\r\nc7717ab\r\n2015/06/16 22:52\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Titanium.version does not return correct values", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 8.1\r\nTi CLI: 4.1.0-dev\r\nTi SDK: 4.1.0.v20150616225249\r\nLumia 928: 8.1\r\nWindows Phone emulator 8-1-1", "closedSprints": [ { "id": 436, "state": "closed", "name": "2015 Sprint 13 Windows", "startDate": "2015-06-20T23:02:43.965Z", "endDate": "2015-07-04T23:02:00.000Z", "completeDate": "2015-07-06T14:03:22.174Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "355667", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Changing this ticket to just Ti.version as TIMOB-19031 fixed the buildHash and buildDate properties.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-06-22T18:51:41.000+0000", "updated": "2015-06-22T18:51:41.000+0000" }, { "id": "355872", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ropening.\r\n\r\nTitanium.version does not return any value.\r\n{code}\r\n[INFO] : \r\n[INFO] : aac7571\r\n[INFO] : 6/22/2015 15:18\r\n{code}\r\n\r\nEnvironment:\r\nAppc Studio: 4.1.0.201506221807\r\nTi SDK: 4.1.0.v20150624102755\r\nTi CLI: 4.0.1\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.1.0-1\r\nAPPC CLI: 4.1.0-3 \r\nWindows emulator : 8.1\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-24T18:35:19.000+0000", "updated": "2015-06-24T18:35:19.000+0000" }, { "id": "355875", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "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.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-06-24T19:07:42.000+0000", "updated": "2015-06-24T19:07:42.000+0000" }, { "id": "356125", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cwilliams], I am still seeing the issue of no logs for Titanium.version in 4.1.0.v20150626084425. \r\nIs the fix in yet ?", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-26T21:50:40.000+0000", "updated": "2015-06-26T21:50:40.000+0000" }, { "id": "356536", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~cwilliams] in the source it's still set to an empty string:\r\nhttps://github.com/appcelerator/titanium_mobile_windows/blob/master/Source/TitaniumKit/src/TiModule.cpp#L50", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-07-01T11:57:53.000+0000", "updated": "2015-07-01T11:57:53.000+0000" }, { "id": "416588", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed, if there are any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T22:21:44.000+0000", "updated": "2017-03-31T22:21:44.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }