{ "id": "155961", "key": "MOD-2212", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2016-03-24T18:59:02.000+0000", "priority": null, "labels": [ "android" ], "versions": [], "issuelinks": [ { "id": "53898", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "148855", "key": "TIMOB-23490", "fields": { "summary": "iOS: Hybrid CommonJS and Native modules don't export commonjs", "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 } } } }, { "id": "54817", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "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 } } } }, { "id": "55162", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "168303", "key": "TIMOB-24796", "fields": { "summary": "iOS: Hybrid CommonJS and Native modules don't handle multiple js files", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-03-06T18:52:38.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "Attached testmodule\r\n\r\nDoes not compile and show this error:\r\n\r\n[javac] Compiling 3 source files to /Users/flaviolacer/Documents/Appcelerator_Studio_Workspace/testmodule/android/build/classes\r\n[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6\r\n[javac] /Users/flaviolacer/Documents/Appcelerator_Studio_Workspace/testmodule/android/build/generated/java/CommonJsSourceProvider.java:26: error: cannot access AssetCryptImpl\r\n[javac] \t\tAssetCryptImpl source = new AssetCryptImpl();\r\n[javac] \t\t^\r\n[javac] bad source file: /Users/flaviolacer/Documents/Appcelerator_Studio_Workspace/testmodule/android/build/generated/java/testmodule/module/AssetCryptImpl.java\r\n[javac] file does not contain class testmodule.module.AssetCryptImpl\r\n[javac] Please remove or make sure it appears in the correct subdirectory of the sourcepath.\r\n[javac] 1 error", "attachment": [ { "id": "58714", "filename": "testmodule.zip", "author": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-24T18:53:47.000+0000", "size": 5272092, "mimeType": "application/zip" } ], "flagged": false, "summary": "5.2.0 not compiling CommonJS modules", "creator": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android - MAC OSX - El Capitan Titanium 5.2.0", "comment": { "comments": [ { "id": "380645", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nPlease provide a complete set to steps to follow for us to test in our environment. Maybe your module needs to be built in Android platform for it to work with Appcelerator. Please follow the guide here http://docs.appcelerator.com/platform/latest/#!/guide/Android_Module_Quick_Start for Android module development. \r\n\r\nThanks.\r\n\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-24T19:58:30.000+0000", "updated": "2016-03-24T19:58:30.000+0000" }, { "id": "380650", "author": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I created a basic module, compiled and works fine. Inserted a class in js (in assets) and stopped to compile. \r\n\r\nOpen the zip attached and try to compile.\r\n\r\nRegards.", "updateAuthor": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-24T20:58:59.000+0000", "updated": "2016-03-24T20:58:59.000+0000" }, { "id": "380702", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWhen you include a common js file in asset folder you need to add CommonJsSourceProvider.java to recognize the asset.\r\nFor example, see the link here https://github.com/xissy/titanium-mobile-sdk/blob/master/module/android/generated/CommonJsSourceProvider.java\r\n\r\nThanks.\r\n\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-25T16:36:54.000+0000", "updated": "2016-03-25T16:36:54.000+0000" }, { "id": "380730", "author": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\nI'dont know what you are talking about. If you include an common js you have to add CommonJsSourceProvider.java to recognize the asset? This is not right because the \"generated\" directory is automatically generated. Did you tried to compile my example? \r\n\r\nThis started to happen when i updated the sdk to 5.2.0. I created a new one and seems to be a problem with the sdk.\r\n\r\nPlease, compile and you will see the error.\r\n\r\nRegards. ", "updateAuthor": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-26T03:49:02.000+0000", "updated": "2016-03-26T03:49:02.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }