{ "id": "103858", "key": "ALOY-342", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "14770", "description": "Alloy 0.3.4", "name": "Alloy 0.3.4", "archived": false, "released": true, "releaseDate": "2012-12-14" }, { "id": "14773", "description": "2012 Sprint 24", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-07T23:15:54.000+0000", "created": "2012-10-24T19:20:08.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "notable" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:25:37.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" } ], "description": "You should be able to create platform-specific views, styles, and controllers using the {{alloy generate}} command. Because platform-specific generators only make sense for views, controllers, and styles, only the {{alloy generate controller}} and {{alloy generate view}} commands will make use of the new *--platform* option for the CLI. If you attempt to use the *--platform* option with other generators, it will be ignored and a warning will be issued.\r\n\r\nh4. example 1\r\n{code}\r\nalloy generate controller myname --platform ios\r\n{code}\r\n\r\nThe above would generate the following files:\r\n* - app/views/ios/myname.xml\r\n* - app/controllers/ios/myname.js\r\n* - app/styles/ios/myname.tss\r\n\r\nh4. example 2\r\n{code}\r\nalloy generate view path/to/myname --platform android\r\n{code}\r\n\r\nThe above would generate the following files\r\n* - app/views/android/path/to/myname.xml\r\n* - app/styles/android/path/to/myname.tss", "attachment": [], "flagged": false, "summary": "Allow 'alloy generate' to create platform-specific files", "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": [], "maxResults": 0, "total": 0, "startAt": 0 } } }