{ "id": "105770", "key": "TIMOB-11913", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-12-17T20:30:01.000+0000", "created": "2012-11-30T20:22:50.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "alloy", "cli" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "23233", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "100005", "key": "ALOY-223", "fields": { "summary": "Move optimizer.js runtime to checks for iPhone vs. iPad vs. Universal to compile time where possible", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-24T17:53:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "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.\r\n\r\nThis 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. ", "attachment": [], "flagged": false, "summary": "CLI: Make distinction between iPhone and iPad at compile time during Universal build", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "231720", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "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.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-12-17T20:30:01.000+0000", "updated": "2012-12-17T20:30:01.000+0000" }, { "id": "231726", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I figured as much. Just wondering if you knew some voodoo with the build process I didn't. Thanks.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-17T21:17:03.000+0000", "updated": "2012-12-17T21:17:03.000+0000" }, { "id": "415587", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T17:53:25.000+0000", "updated": "2017-03-24T17:53:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }