{ "id": "173023", "key": "AC-6144", "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": "2019-03-06T22:26:46.000+0000", "created": "2019-02-20T00:57:54.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-03-06T22:26:50.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": [], "description": "I use libraries like moment.js , linq.js.\r\n\r\nIn 7.4.0 I have code like this in my app.js\r\n\r\nfunction include(file) {\r\n return eval(Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, file).read().text);\r\n}\r\n\r\ninclude('ui/common/moment.js');\r\ninclude('ui/common/linq.min.js');\r\ninclude('ui/common/mustache.js');\r\n\r\nAnd then thought my code files I can reference moment(). etc.....is there a workaround for this in 7.5.0 SDK\r\n\r\n", "attachment": [], "flagged": false, "summary": "SDK 7.5.0 breaks support for external javascript libraries", "creator": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "446172", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Which platform are you having this issue on? Android? iOS?\r\nI assume iOS.\r\n\r\nBecause Android didn't support {{File.read()}} of JS files for device/production builds until 7.5.0 as can be seen here [TIMOB-16678].\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-20T01:39:22.000+0000", "updated": "2019-02-20T01:39:22.000+0000" }, { "id": "446203", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Why not use {{require}}?\r\n{code:js}\r\nconst moment = require('./moment.js');\r\nconsole.log(moment().endOf('day').fromNow());\r\n\r\n// in 13 hours\r\n{code}", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-20T19:02:32.000+0000", "updated": "2019-02-20T19:02:32.000+0000" }, { "id": "446230", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~peterladis], Can you follow up here? did you follow Gary's guide on using require instead of include? Let us know. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-02-21T16:55:52.000+0000", "updated": "2019-02-21T16:55:52.000+0000" }, { "id": "446354", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~peterladis],\r\n Did you manage to follow Gary's suggestion and test this on SDK\r\n7.5.1.GA . Please update it on your end by executing *appc ti sdk install latest* and let us know the results.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-02-27T11:18:57.000+0000", "updated": "2019-02-27T11:18:57.000+0000" }, { "id": "446475", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nWe haven't heard back from you since our last response. I am just following up to check the status of this case and if you need further help on it. \r\n", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-03-04T09:28:46.000+0000", "updated": "2019-03-04T09:28:46.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }