[TIMOB-11913] CLI: Make distinction between iPhone and iPad at compile time during Universal build
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-12-17T20:30:01.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | CLI |
Labels | alloy, cli |
Reporter | Tony Lukasavage |
Assignee | Chris Barber |
Created | 2012-11-30T20:22:50.000+0000 |
Updated | 2017-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.
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.
I figured as much. Just wondering if you knew some voodoo with the build process I didn't. Thanks.
Closing ticket as invalid with reference to the above comments.