[TIMOB-14629] CLI: iOS Symbols wrongly imported from metadata.json
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-11-02T00:02:12.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 22, 2013 Sprint 22 Core, Release 3.2.0 |
Components | CLI, iOS |
Labels | cli, exports, ios, json, metadata, module, qe-closed-3.2.0 |
Reporter | Martin Guillon |
Assignee | Chris Barber |
Created | 2013-07-20T15:11:12.000+0000 |
Updated | 2013-12-20T01:04:37.000+0000 |
[Moved to description]
UPDATE! I've actually redone this logic. First I have a platform agnostic symbol locator called jsanalyze.js: https://github.com/cb1kenobi/titanium_mobile/blob/timob-14976/node_modules/titanium-sdk/lib/jsanalyze.js. I've already implemented this in the new Android build and I'll be updating iOS in the next week or two. :)
wow i see a lot of things that i want :P Thanks for the clarification Chris. Merging right away! :D
Pull request: https://github.com/appcelerator/titanium_mobile/pull/4898
Guidance for testing?
To test, you need a module that is written in JavaScript, but wrapped in a native module. I have no clue how to do this from scratch.
Sadly i can't attach a file :s Here you go it should be working http://www.sendspace.com/file/pkw3kw
Also for future reference, i update the module build system to make sure assets are updated correctly before module build. I know it s done in the command line but it s REALLy good to have it from xcode. Cant really make a PR for that right now but here is the diff for future reference !http://i.imgur.com/cY2To5n.png!
Closing ticket as fixed. While using [this sample test case](http://www.sendspace.com/file/pkw3kw), I was able to verify the following: 0. After building the module from build.py, verified the metadata.json appears in the root level of the module 1. After importing the module into a Titanium app, was able to install to device, run on simulator, and adhoc package the app without any errors 2. With this code in app.js:
Verified the native camera controls appear after launching app (see commonjs.test.js from the test case). Tested on: Appcelerator Studio, build: 3.2.0.201312181652 SDK build: 3.2.0.v20131218153242 CLI: 3.2.0-cr3 Alloy: 1.3.0-cr2 Xcode: 5.0.2 Devices: ios simulator (6.1, 7.0.3), iphone 5 (6.1.3), iphone 5s (7.0.2)