{ "id": "109540", "key": "ALOY-515", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "14873", "description": "2013 Sprint 04", "name": "2013 Sprint 04", "archived": true, "released": true, "releaseDate": "2013-02-25" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-02-12T13:29:13.000+0000", "created": "2013-02-12T06:01:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam" ], "versions": [ { "id": "15103", "description": "Alloy 0.3.6", "name": "Alloy 0.3.6", "archived": false, "released": true, "releaseDate": "2013-01-19" } ], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-22T13:21:07.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": "12327", "name": "Documentation" } ], "description": "h6.Feature\r\nDocument constants used throughout alloy examples. From a default Alloy project use the following controller and global configuration file. *OS_ANDROID* will get through both iOS and Android platforms.\r\n\r\nh6.app/config.json\r\n{code}\r\n{\r\n\t\"global\": {}, \r\n\t\"myKeys\": { \"key1\": 1, \"key2\": 2},\r\n\t\"env:development\": {}, \r\n\t\"env:test\": {}, \r\n\t\"env:production\": {}, \r\n\t\"dependencies\": {}\r\n}\r\n{code}\r\n\r\nh6.Controller\r\n- app/controllers/index.js \r\n{code}\r\nfunction doClick(e) { \r\n //alert($.label.text);\r\n if(OS_ANDROID){\r\n \talert('it is android');\r\n\t}else{\r\n \talert('it is not android');\r\n\t}\r\n}\r\n\r\n$.index.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Document constants used throughout alloy examples", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 3.0 & 3.1 CU Builds\r\niOS 6 & Android 2.3\r\nAlloy 0.3.6", "comment": { "comments": [ { "id": "238102", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't reproduce this. Perhaps there's something wrong in the rest of the code you haven't shown. I created a new alloy project, used a simple index.xml and the index.js given above with the config.json. The OS_ANDROID conditional works exactly as expected, showing the appropriate alerts based on the platform. Tested with 0.3.x and 1.0.X branch of alloy and TiSDK 3.0.0.GA. Closing this ticket. ", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-12T13:27:55.000+0000", "updated": "2013-02-12T13:29:29.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }