Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9597] CodeProcessor: Implement platform specific API validation Code Processor plugin

GitHub Issuen/a
TypeSub-task
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-09-11T00:44:11.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Sprint 2012-18 API, 2012 Sprint 18
ComponentsCode Processor
Labelsapi
ReporterBryan Hughes
AssigneePraveen Innamuri
Created2012-06-17T18:18:46.000+0000
Updated2017-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)
}

Comments

  1. Lee Morris 2017-03-06

    Closing ticket due to time passed.

JSON Source