{ "id": "119787", "key": "TIMOB-15119", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-09-12T17:20:34.000+0000", "created": "2013-09-11T09:45:55.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "iOS", "mobilesdk", "module", "titanium" ], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-29T22:22:31.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When we add multiple JS files inside assets folder and use common JS (require pattern) between JS calling in Native iOS Module development then it does not work.\r\n\r\nSteps to reproduce:\r\n1: Create a native iOS module. let say module name is test and id is com.example.test.\r\n2: Create two or more java script files inside assets folder.\r\n3: Rename one js file to **com.example.test.js** and require another js file inside com.example.test.js\r\n4: Try to use objective C API exposed through module as well as common JS pattern based APIs exposed from JS files in app.js.\r\n5: try to build and run the module now.\r\n\r\nResult: it will fail, as it won't be able to find JS file which is required in **com.example.test.js**.\r\n\r\n\r\nNote: For shorter and quick test about the above described process, simply use the below mentioned/attached module zips and after unzip try to build them.\r\nError message will describe the issue properly.\r\n\r\ntest.zip and testone.zip are two module zips created using TiSDK version 3.1.2.GA and 2.1.4.GA respectively.", "attachment": [ { "id": "42394", "filename": "test.zip", "author": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-09-11T09:45:55.000+0000", "size": 116297, "mimeType": "application/zip" }, { "id": "42395", "filename": "testone.zip", "author": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-09-11T09:45:55.000+0000", "size": 107267, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Support multiple JS files in native/Hybrid module development.", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Mobile SDK, iOS, Module Development.", "comment": { "comments": [ { "id": "270869", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2013-09-12T16:55:09.000+0000", "updated": "2013-09-12T16:55:09.000+0000" }, { "id": "270874", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Appears to be a duplicate of (or at least related to) the linked ticket. Closing based on user feedback.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-12T17:20:34.000+0000", "updated": "2013-09-12T17:20:34.000+0000" }, { "id": "273123", "author": { "name": "ralph", "key": "ralph", "displayName": "ralph valeriote", "active": true, "timeZone": "America/New_York" }, "body": "I am not able to get this to work. I've tried the posted solution without luck. Can someone post a working example? Varun?\r\n", "updateAuthor": { "name": "ralph", "key": "ralph", "displayName": "ralph valeriote", "active": true, "timeZone": "America/New_York" }, "created": "2013-09-27T04:09:45.000+0000", "updated": "2013-09-27T04:09:45.000+0000" }, { "id": "416294", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket with reference to the linked issues.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T22:22:31.000+0000", "updated": "2017-03-29T22:22:31.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }