{ "id": "175431", "key": "TIMOB-28079", "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": [ { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" }, { "id": "21129", "name": "Release 9.2.2", "archived": false, "released": true, "releaseDate": "2020-10-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-10-27T22:44:11.000+0000", "created": "2020-08-11T22:12:41.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ACA", "analytics", "android", "crash" ], "versions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-10-27T22:44:11.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": "*Summary:*\r\nThe ACA (AMPLIFY Crash Analytics) module, if included, was intended to be loaded on app startup before requiring/importing any other JS file on app startup. This way, if a crash occurs in any of the operations that happen before the \"app.js\" gets loaded, it will be handled by the ACA module. This is no longer happening as of Titanium 8.1.0.\r\n\r\n*Cause:*\r\nMost of the JS files loaded in our \"ti.main.js\" were switched over from using {{require()}} to {{import}} statements as of Titanium 8.1.0. JavaScript's {{import}} statements are \"hoisted\", which means they are effectively executed at the top of the source file and not where they're actually written.\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/common/Resources/ti.main.js\r\n\r\nWhen you do a build of the SDK, you can see the babel transpiled/polyfilled result in the following directories. Here you can see the actual load order.\r\n{code}\r\ntitanium_mobile/dist/tmp/common/Resources//ti.main.js\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: ACA module no longer loaded first on startup as of 8.1.0", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1209, "state": "closed", "name": "2020 Sprint 22", "startDate": "2020-10-27T02:33:00.000Z", "endDate": "2020-11-07T02:33:00.000Z", "completeDate": "2020-11-06T17:45:42.610Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457312", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12205", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-22T18:29:39.000+0000", "updated": "2020-10-22T18:29:39.000+0000" }, { "id": "457347", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for jenkins.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-26T18:47:51.000+0000", "updated": "2020-10-26T18:47:51.000+0000" }, { "id": "457348", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master for 9.3.0 target. Backport PR for 9_2_X merged for 9.2.2 target.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-10-26T19:00:26.000+0000", "updated": "2020-10-26T19:05:07.000+0000" }, { "id": "457366", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in SDK 9.2.2.v20201026120850 & 9.3.0.v20201027120230.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-27T22:44:05.000+0000", "updated": "2020-10-27T22:44:05.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }