{ "id": "90280", "key": "TIMOB-8750", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "2014-11-05T18:27:47.000+0000", "created": "2012-04-16T17:43:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core", "exalture" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-13T18:10:20.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4. Problem Description\r\nWhen creating a distribution build for the Google market, it will break the app. \r\n\r\nh4. Actual Results\r\nThe app is broken when built for distribution.\r\n\r\nh4. Expected results\r\nThe app working just fine (as the build to test/ build to device does).\r\n\r\nh4. Test Case\r\n1. Grab the code ( Included app source code in the internal comments)\r\n2. Import it as project.\r\n3. Build it to a device/emulator (open the app, Go to kalendar, then medecine, press +) - It will work fine.\r\n4. Remove it from device/emulator.\r\n5. Build the project for distribution. (open the app, go to kalendar, then medicine, press +) - it will crash. \r\n\r\nh4. HD discussion\r\nhttp://support-admin.appcelerator.com/display/APP-412855\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Production builds are breaking app events", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 1.8.0.1, 1.8.2\r\nJavascript Engine: V8 \r\nPlatform & version: Android 2.3, 3.1, \r\nDevice Details: Android emulator and Acer iconia A500 \r\nHost Operating System: OS X 10.7.3 \r\nTitanium Studio version: 1.0.9", "comment": { "comments": [ { "id": "191322", "author": { "name": "henrik.hoff@purplescout.se", "key": "henrik.hoff@purplescout.se", "displayName": "Henrik Hoff", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We found a solution for this in the js code today:\r\nThe \"undefined\" reference was caused by trying to register an eventListener with a function that was defined later in the scope. In the JS interpreter on Android, this is apparently fine, but in the JS to bytecode compiler, this is forbidden.\r\n\r\nBut perhaps this should be handled by the compiler in some way, so that the user (we) get warned about this?", "updateAuthor": { "name": "henrik.hoff@purplescout.se", "key": "henrik.hoff@purplescout.se", "displayName": "Henrik Hoff", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-17T06:37:50.000+0000", "updated": "2012-04-17T06:37:50.000+0000" }, { "id": "330851", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving as directed.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-05T18:27:48.000+0000", "updated": "2014-11-05T18:27:48.000+0000" }, { "id": "411445", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-13T18:10:20.000+0000", "updated": "2017-03-13T18:10:20.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }