{ "id": "169858", "key": "ALOY-1582", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "19783", "name": "CLI Release 6.3.0", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-21T23:14:11.000+0000", "created": "2017-09-21T13:03:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "19920", "name": "Alloy 1.9.14", "archived": false, "released": true, "releaseDate": "2017-09-07" }, { "id": "19928", "name": "Alloy 1.10.4", "archived": false, "released": true, "releaseDate": "2017-09-20" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2017-10-11T23:05:09.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "h5.Description\r\n\r\nWhen using Ti.Platform.osname on Windows with Alloy, it incorrectly reports windows. The correct value is windowsstore or windowsphone\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add {{console.log(Ti.Platform.osname);}} to index.js of an alloy app\r\n# Build for Windows\r\n\r\nh5.Actual\r\n\r\nwindows is logged\r\n\r\nh5.Expected\r\n\r\nwindowsstore for ws-local target, windowsphone for wp-emulator target", "attachment": [], "flagged": false, "summary": "Ti.Platform.osname reports windows", "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": "Appc CLI 6.2.4 (Alloy 1.9.14) / Ti CLI: 5.0.14 (Alloy 1.10.4)\r\nTi SDK: 6.2.1.GA, 7.0.0.v20170920153129", "closedSprints": [ { "id": 949, "state": "closed", "name": "2017 Sprint 19 Tooling", "startDate": "2017-09-10T21:25:25.151Z", "endDate": "2017-09-24T21:25:00.000Z", "completeDate": "2017-09-25T17:50:29.468Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "428243", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Master pr: https://github.com/appcelerator/alloy/pull/851", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-09-21T13:29:07.000+0000", "updated": "2017-09-21T13:29:07.000+0000" }, { "id": "428979", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Validated the fix with this environment:\r\nNode Version: 6.10.3\r\nNPM Version: 3.10.10\r\nWindows OS: 10.0.15063.0\r\nWindows Phone: 10.0.15063.0\r\nAppc CLI: 6.3.0-master.14\r\nAppc CLI NPM: 4.2.9\r\nTitanium SDK version:6.2.2", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-11T23:05:02.000+0000", "updated": "2017-10-11T23:05:02.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }