{ "id": "172647", "key": "AC-6027", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2018-12-02T22:20:24.000+0000", "created": "2018-11-20T17:07:48.000+0000", "labels": [], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-12-02T22:20:25.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "Packaging for Android and Testing on Pixel 2 Android P 9.0\r\n\r\nIn my alloy.js file i've linked to a commonjs file\r\n\r\n//alloy.js\r\nvar dpi = require('/ui/dpi');\r\n//as this method is call before the index page open it causes the app to not load\r\nAlloy.CFG.borderWidth = dpi.dipUnitsToPixels(6);\r\n\r\n\r\n//dpi.js\r\nexports.dipUnitsToPixels = function(dipUnits) {\r\n\tvar DENSITY_SMALL_LDPI = 120;\r\n\tvar DENSITY_BASELINE_MDPI = 160;\r\n\tvar DENSITY_HIGH_HDPI = 240;\r\n\tvar DENSITY_EXTRA_HIGH_XHDPI = 320;\r\n\tvar ret;\r\n\r\n\r\n\tswitch (Ti.Platform.displayCaps.dpi) {\r\n\t\tcase DENSITY_SMALL_LDPI:\r\n\t\t\tret = (dipUnits * (Ti.Platform.displayCaps.dpi / DENSITY_SMALL_LDPI));\r\n\t\t\tbreak;\r\n\r\n\t\tcase DENSITY_BASELINE_MDPI:\r\n\t\t\tret = (dipUnits * (Ti.Platform.displayCaps.dpi / DENSITY_BASELINE_MDPI));\r\n\t\t\tbreak;\r\n\r\n\t\tcase DENSITY_HIGH_HDPI:\r\n\t\t\tret = (dipUnits * (Ti.Platform.displayCaps.dpi / DENSITY_HIGH_HDPI));\r\n\t\t\tbreak;\r\n\r\n\t\tcase DENSITY_EXTRA_HIGH_XHDPI:\r\n\t\t\tret = (dipUnits * (Ti.Platform.displayCaps.dpi / DENSITY_EXTRA_HIGH_XHDPI));\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tret = dipUnits;\r\n\t}\r\n\r\n\treturn ret;\r\n};\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android P 9.0 commonjs module error", "creator": { "name": "dpenney", "key": "dpenney", "displayName": "David Penney", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dpenney", "key": "dpenney", "displayName": "David Penney", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Axway Appcelerator Studio, build: 5.1.1.201809051655\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.13.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 32.0GB\r\n\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.13\r\n Core Package = 7.0.7\r\n\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\n node-appc Version = 0.2.44\r\n\r\nTitanium SDKs\r\n 7.5.0.GA\r\n Version = 7.5.0\r\n Install Location = /Users/davepenney/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA\r\n Platforms = iphone, android\r\n git Hash = 2e5a7423d0\r\n git Timestamp = 11/15/2018 21:52\r\n node-appc Version = 0.2.47\r\n\r\n", "comment": { "comments": [ { "id": "443845", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi! What error are you experiencing exactly?", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-11-22T13:13:41.000+0000", "updated": "2018-11-22T13:13:41.000+0000" }, { "id": "443982", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~dpenney],\r\n\r\nCan you please share more information about the issue you are experiencing? It would be helpful if you provide error logs, screenshot which displays the issue properly.\r\nThanks", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-11-28T08:20:01.000+0000", "updated": "2018-11-28T08:20:01.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }