Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11913] CLI: Make distinction between iPhone and iPad at compile time during Universal build

GitHub Issuen/a
TypeStory
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2012-12-17T20:30:01.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsCLI
Labelsalloy, cli
ReporterTony Lukasavage
AssigneeChris Barber
Created2012-11-30T20:22:50.000+0000
Updated2017-03-24T17:53:25.000+0000

Description

As far as I know, right now, the CLI does not give a distinction between iPhone and iPad during a universal build. It would be ideal if we could make this distinction at compile time. If we were able to make this distinction for all iOS builds, Alloy would be able to further improve the runtime performance of apps by eliminating unnecessary platform conditionals at runtime. Ideally this distinction would be available as a parameter that could be used in the Alloy hook into the CLI process. This is already done for Android, iOS, and Mobileweb for all Ti.Platform.name conditional checks. If we were able to make the above distinction, we could do the same for all Ti.Platform.osname conditionals on iOS, just as we do now for Android and Mobileweb.

Comments

  1. Chris Barber 2012-12-17

    By definition, universal builds can be either iPhone or iPad. At compile time, there is no way to know if the app is going to be run on iPhone or iPad. You'll have to add platform specific checks in the Alloy runtime code.
  2. Tony Lukasavage 2012-12-17

    I figured as much. Just wondering if you knew some voodoo with the build process I didn't. Thanks.
  3. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source