{ "id": "167975", "key": "TIMOB-24745", "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": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-06-08T17:47:32.000+0000", "created": "2017-05-29T15:06:19.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "merge-6.1.1" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [ { "id": "54985", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "167433", "key": "TIMOB-24654", "fields": { "summary": "Android: Hybrid CommonJS and Native Modules don't export the commonjs code", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2017-06-09T22:02:25.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": "We fixed Android CommonJS modules for 6.1.0 in TIMOB-24654. Unfortunately, a community member reported that he still cannot build CommonJS modules, when those contain multiple JS files inside the {{assets/}} directory. The test-case can be used from the above ticket, with an additional JS file that is placed in the directory.", "attachment": [], "flagged": false, "summary": "Android: Cannot build CommonJS modules with multiple JS files", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 903, "state": "closed", "name": "2017 Sprint 12 SDK", "startDate": "2017-06-05T00:15:46.290Z", "endDate": "2017-06-19T00:15:00.000Z", "completeDate": "2017-06-19T16:09:22.870Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "420576", "author": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks hans for opening this ticket. \r\n[Here is|https://gist.github.com/AndreaVitale/32c06ad366202ee31c5e5419a5a6fbb1] the error log that I got when I try to with another file, different from {{my.module.id.js}} inside the {{assets}} folder. Removing it, the build process succeeds.\r\nI tried to build using CLI 6.2.0 and 6.2.2 and different version of NDK: from r10e to the latest.", "updateAuthor": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-29T16:29:34.000+0000", "updated": "2017-05-29T16:29:34.000+0000" }, { "id": "421517", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "[~hansknoechel] [~Andrea.Vitale] Do we have any details or test cases about whatever remaining issue we have here? It's not clear to me exactly what is wrong here. I guess the idea is that the build doesn't fail now with multiple js assets but that one or both somehow aren't returning their exports when required?", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-06-08T14:59:27.000+0000", "updated": "2017-06-08T14:59:27.000+0000" }, { "id": "421520", "author": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Chris, I edited the {{_buildModule.js}} with the snippets reported in your [PR here|https://github.com/appcelerator/titanium_mobile/pull/9117] and the problem is solved. I have no more problem at compile time and at runtime. \r\nNow I have problems on iOS. \r\nShould I to create a new ticket for this?\r\n\r\nI'm on Slack if you want to dm with me in a faster way.", "updateAuthor": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-08T15:48:13.000+0000", "updated": "2017-06-08T15:48:13.000+0000" }, { "id": "421579", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in SDK 6.2.0.v20170608114043 & local 6.1.1 build.\r\n\r\n1. Built the https://github.com/appcelerator-modules/appcelerator.syncserver.client module which has multiple {{.js}} files in the {{assets}} folder.\r\n2. Module was built successfully.\r\n\r\nEDIT: Verified the fix with SDK 6.1.1.v20170609120621.\r\nClosing. \r\n\r\nStudio Ver: 4.9.0.201705302345\r\nSDK Ver: 6.2.0.v20170608114043, 6.1.1.v20170609120621\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.9\r\nAppc CLI: 6.2.2\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.9.11\r\nNode Ver: 6.10.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Pixel --- Android 7.1.1\r\n ⇨ google Nexus 5 --- Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-08T23:34:09.000+0000", "updated": "2017-06-09T22:02:14.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }