[TIMOB-23833] Windows: Generate capabilities even when they are defined in tiapp.xml
| GitHub Issue | n/a |
| Type | Improvement |
| Priority | None |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-09-01T01:32:33.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 | Gary Mathews |
| Created | 2016-08-26T18:52:31.000+0000 |
| Updated | 2017-01-31T19:23:05.000+0000 |
Description
Description
In TIMOB-23156 the auto-generation of capabilities based on API usage. Currently, if a user uses an API that needs a capability but is not included in the API capability list in the SDK then they will have to add the capability to the tiapp.xml and then figure out all other capabilities they need, an example of this is TIMOB-23832.
To make the development workflow easier we should always generate the capability list even when the tiapp.xml already contains.
Comments
JSON Source
master: https://github.com/appcelerator/titanium_mobile_windows/pull/842
*TEST CASE* app.js
tiapp.xml<windows> <manifest> <Capabilities> <Capability Name="internetClient" /> <Capability Name="picturesLibrary" /> </Capabilities> </manifest> </windows>RESULT<Capabilities> <Capability Name="internetClient" /> <uap:Capability Name="picturesLibrary" /> <DeviceCapability Name="proximity" /> </Capabilities>Verified improvement, was able to generate capabilities even if they were not defined in the tiapp.xml. The steps I took to verify this include: 1. Create a new app and add the following code to the
app.js2. Then added the following capabilities to thetiapp.xml3. I then ran the following command from the project directory.<windows> <manifest> <Capabilities> <Capability Name="internetClient" /> <Capability Name="picturesLibrary" /> </Capabilities> </manifest> </windows>4. I then went to the following fileC:\Users\Tester\.titanium\vsbuild\genTestv1\win10.x86\packageand checked the capabilities.*Environment*<Capabilities> <Capability Name="internetClient" /> <uap:Capability Name="picturesLibrary" /> <DeviceCapability Name="proximity" /> </Capabilities>