{ "id": "161876", "key": "TIMOB-23661", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "18327", "name": "windowslib 0.4.22", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-09-15T04:10:09.000+0000", "created": "2016-07-20T13:21:27.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-5.4.0" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-01-20T19:48:10.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\nCurrently when running {{appc ti info \\-t windows}} the CLI will print out the below, showing a 'selected' SDK. This is confusing to a user as there is no way for them to actually select an SDK for it to be shown in the output, all selection is done during build time depending on the {{--wp-sdk}} value passed in or the OS version on the device/emulator. To stop this confusion {{(selected)}} should be removed\r\n\r\n{code}\r\nMicrosoft (R) Windows Phone SDK\r\n 10.0\r\n Path = C:\\Program Files (x86)\\Windows Kits\\10\\\r\n 8.1 (selected)\r\n Path = C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Remove the concept of a selected Windows SDK in ti info", "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 10 Pro\r\nAppc CLI Core: 5.4.0-33\r\nAppc CLI NPM: 4.2.7\r\nTi SDK: 5.3.0.GA, 5.4.0.v20160713141635\r\nAppc Studio: 4.7.0.201607130543", "closedSprints": [ { "id": 707, "state": "closed", "name": "2016 Sprint 19 SDK", "startDate": "2016-09-10T00:17:15.164Z", "endDate": "2016-09-24T00:17:00.000Z", "completeDate": "2016-09-26T05:17:04.253Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "396061", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I found that {{selected}} property is actually used to decide default Windows SDK as final fallback when no {{\\-\\-wp-sdk}} is specified. But the problem is there's no way to change its value like Ewan noted. I also found that there's {{windows.wpsdk.selectedVersion}} config property implemented in [cli/lib/info.js|https://github.com/appcelerator/titanium_mobile_windows/blob/master/cli/lib/info.js#L32]. This configuration property seems to be meant to specify default Windows SDK and it should be the way to change \"selected\" Windows SDK, but seems like this property doesn't work. \r\n\r\nSo I think the real problem in this ticket is, \r\n\r\n*There's no way to change selected Windows SDK*.\r\n\r\n*Steps to reproduce (Windows Phone SDK)*\r\n\r\n# {{appc ti info -p windows -json}} and see which Windows Phone SDK is marked {{selected}}\r\n# {{appc ti config windows.wpsdk.selectedVersion 10.0}} \r\n# {{appc ti info -p windows -json}} and see if Windows 10.0 Phone SDK is marked {{selected}}\r\n\r\n*Expected*\r\n\r\n* Windows 10.0 SDK is selected\r\n\r\n*Actual*\r\n\r\n* Windows 10.0 SDK is not selected\r\n\r\n*Steps to reproduce (Windows SDK)*\r\n\r\n# {{appc ti info -p windows -json}} and see which Windows SDK is marked {{selected}}\r\n# {{appc ti config windows.sdk.selectedVersion 10.0}} \r\n# {{appc ti info -p windows -json}} and see if Windows 10.0 SDK is marked {{selected}}\r\n\r\n*Expected*\r\n\r\n* Windows 10.0 SDK is selected\r\n\r\n*Actual*\r\n\r\n* Windows 10.0 SDK is not selected\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-14T01:14:05.000+0000", "updated": "2016-09-15T04:09:31.000+0000" }, { "id": "396140", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "titanium_mobile_windows: https://github.com/appcelerator/titanium_mobile_windows/pull/869\r\nwindowslib: https://github.com/appcelerator/windowslib/pull/57\r\ntitanium_mobile: https://github.com/appcelerator/titanium_mobile/pull/8383", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-14T18:31:26.000+0000", "updated": "2016-09-14T18:31:26.000+0000" }, { "id": "404967", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified improvement, using {{appc ti config windows.sdk.selectedVersion}} i was able to verify the changes in the selected windows SDK. These are the steps i took to verify the changes. \r\n\r\n*Windows Phone SDK*\r\n1. Used {{appc ti config windows.wpsdk.selectedVersion 8.1}} to change windows phone SDK to 8.1.\r\n2. Used {{appc ti info -p windows}} to verify the selected windows phone SDK version was 8.1. \r\n{code:java}\r\nMicrosoft (R) Windows Phone SDK\r\n 10.0\r\n Path = C:\\Program Files (x86)\\Windows Kits\\10\\\r\n 8.1 (selected)\r\n Path = C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\\r\n{code}\r\n3. Used {{appc ti config windows.wpsdk.selectedVersion 10.0}} to change windows phone SDK to 10.0.\r\n4. Used {{appc ti info -p windows}} to verify the selected windows phone SDK version was 10.0. \r\n{code:java}\r\nMicrosoft (R) Windows Phone SDK\r\n 10.0 (selected)\r\n Path = C:\\Program Files (x86)\\Windows Kits\\10\\\r\n 8.1\r\n Path = C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\\r\n{code}\r\n\r\n*Windows SDK*\r\n1. Used {{appc ti config windows.sdk.selectedVersion 8.1}} to change windows SDK to 8.1.\r\n2. Used {{appc ti info -p windows}} to verify the selected windows SDK version was 8.1. \r\n3. Used {{appc ti config windows.sdk.selectedVersion 10.0}} to change windows SDK to 10.0.\r\n{code:java}\r\nMicrosoft (R) Windows Phone SDK\r\n 10.0 (selected)\r\n Path = C:\\Program Files (x86)\\Windows Kits\\10\\\r\n 8.1\r\n Path = C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\\r\n{code}\r\n\r\n*Environment*\r\n{code:java}\r\n\r\nOperating System\r\nName = Microsoft Windows 10 Pro\r\nVersion = 10.0.14393\r\nArchitecture = 64bit\r\n# CPUs = 4\r\nMemory = 17034395648\r\n \r\nNode.js\r\nNode.js Version = 4.4.4\r\nnpm Version = 2.11.3\r\n \r\nTitanium SDK\r\nSDK Version = 6.1.0.v20170118152304\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-20T19:47:59.000+0000", "updated": "2017-01-20T19:47:59.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }