[TIMOB-24063] Windows: Allow a developer to specify required capabilities in their timodule file
| GitHub Issue | n/a |
| Type | Improvement |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-12-20T04:58:14.000+0000 |
| Affected Version/s | Release 6.0.0 |
| Fix Version/s | Release 6.1.0 |
| Components | Windows |
| Labels | qe-6.0.0 |
| Reporter | Ewan Harris |
| Assignee | Kota Iguchi |
| Created | 2016-10-21T14:29:39.000+0000 |
| Updated | 2017-01-27T19:22:58.000+0000 |
Description
Description
If 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
Comments
JSON Source
https://github.com/appcelerator/titanium_mobile_windows/pull/901
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. *Steps taken to verify* 1. Go tofile->new->Mobile Module Projectin Appc studio 2. Entered the details for the module (Project name,Module Id) 3. Selected thewindowsoption 4. PressedNextand thenfinish5. Open thetimodule.xml6. Added the following code to the windows section in thetimodule.xml: (https://github.com/appcelerator/titanium_mobile_windows/pull/901)7. Packaged the application 8. Selected<manifest> <Capabilities> <DeviceCapability Name="location" /> </Capabilities> </manifest>Titanium SDKas the output location and pressedfinish9. Opened up a windows application and added the module (Go to the applicationtiapp.xmland then clicked on the green plus button to add the created module 10. ran the application on a emulator and windows phone 11. Once the application opened I checked if my application had the capabilities by going in toC:\Users\USERNAME\.titanium\vsbuild\YOUR_APP_NAME\Package.xxx.appxmanifest.inand i saw the following:*Environment*<Capabilities> <Capability Name="internetClient" /> <DeviceCapability Name="location"/> </Capabilities>