[TIMOB-9597] CodeProcessor: Implement platform specific API validation Code Processor plugin
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-09-11T00:44:11.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Sprint 2012-18 API, 2012 Sprint 18 |
Components | Code Processor |
Labels | api |
Reporter | Bryan Hughes |
Assignee | Praveen Innamuri |
Created | 2012-06-17T18:18:46.000+0000 |
Updated | 2017-03-06T22:07:57.000+0000 |
Description
We need to implement a Code Processor plugin that will detect when a program accesses a platform specific API for a platform other than the one being compiled against and throw an error.
For example, the following code should throw a compiler error when compiled for Mobile Web:
if (Ti.Platform.osname !== "android") {
console.log(Titanium.UI.iOS.AdView)
}
Closing ticket due to time passed.