{ "id": "164136", "key": "TIMOB-24063", "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" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-12-20T04:58:14.000+0000", "created": "2016-10-21T14:29:39.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-01-27T19:22:58.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\nIf a Windows Platform module requires specific capabilities to function then a module developer should be able to use the timodule.xml file (in a similar way to Android modules and permissions) to specify capabilities that are required. Then at build time these should be included with any capabilities a users app may need", "attachment": [], "flagged": false, "summary": "Windows: Allow a developer to specify required capabilities in their timodule file", "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": "OS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-63\r\nAppc NPM: 4.2.8-9\r\nTi SDK: 6.0.0.v20161021005158\r\nAppc Studio: 4.8.0.2016101713", "closedSprints": [ { "id": 784, "state": "closed", "name": "2016 Sprint 26 SDK", "startDate": "2016-12-17T01:24:57.928Z", "endDate": "2016-12-31T01:24:00.000Z", "completeDate": "2017-01-03T02:15:01.548Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "402983", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/901", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-12-08T13:24:05.000+0000", "updated": "2016-12-08T13:24:05.000+0000" }, { "id": "405519", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified improvement. I was able to create a module for windows and then add capabilities in to the {{timodule.xml}}; the capabilities i added can be found in https://github.com/appcelerator/titanium_mobile_windows/pull/901.\r\n\r\n*Steps taken to verify*\r\n1. Go to {{file}} -> {{new}} -> {{Mobile Module Project}} in Appc studio\r\n2. Entered the details for the module ( {{Project name}}, {{Module Id}} )\r\n3. Selected the {{windows}} option \r\n4. Pressed {{Next}} and then {{finish}} \r\n5. Open the {{timodule.xml}}\r\n6. Added the following code to the windows section in the {{timodule.xml}}: (https://github.com/appcelerator/titanium_mobile_windows/pull/901)\r\n{code:java}\r\n\r\n \r\n \r\n \r\n\t \r\n{code}\r\n7. Packaged the application \r\n8. Selected {{Titanium SDK}} as the output location and pressed {{finish}}\r\n9. Opened up a windows application and added the module (Go to the application {{tiapp.xml}} and then clicked on the green plus button to add the created module\r\n10. ran the application on a emulator and windows phone \r\n11. Once the application opened I checked if my application had the capabilities by going in to {{C:\\Users\\USERNAME\\.titanium\\vsbuild\\YOUR_APP_NAME\\Package.xxx.appxmanifest.in}} and i saw the following:\r\n{code:java}\r\n\r\n \r\n \r\n \r\n{code}\r\n\r\n*Environment*\r\n{code:java}\r\nAppc Studio version: 4.8.1.201701192045 \r\nDevice: Lumia 640 LTE (RM-1073) (OS Build 10.0.14393.693)\r\nMobile emulator: 10.0.14393.0 1080p 6inch 2gb\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.6.0 \r\nnpm Version = 2.11.3\r\n \r\nTitanium SDK:\r\nSDK Version = 6.1.0.v20170126175503\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-27T19:22:48.000+0000", "updated": "2017-01-27T19:22:48.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }