{ "id": "167433", "key": "TIMOB-24654", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-09T15:55:10.000+0000", "created": "2017-05-03T17:24:12.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "merge-6.1.0", "mobilesdk", "module", "user_experience", "validate" ], "versions": [], "issuelinks": [ { "id": "54818", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "161603", "key": "MOD-2267", "fields": { "summary": "SyncServer Client: Getting error \"dlopen failed: /data/app/com.app.synctest-2/lib/arm/libappcelerator.syncserver.client.so: has text relocations\" when building for android", "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": "55097", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "161519", "key": "TIMOB-23590", "fields": { "summary": "iOS/Android: Recompile appcelerator.syncserver.client module against latest SDK", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "54816", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "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": "54819", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "148984", "key": "TIMOB-19914", "fields": { "summary": "Creation of Packaged JavaScript and Hybrid Modules: it doesn't work properly", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "54985", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "167975", "key": "TIMOB-24745", "fields": { "summary": "Android: Cannot build CommonJS modules with 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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "54820", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "161519", "key": "TIMOB-23590", "fields": { "summary": "iOS/Android: Recompile appcelerator.syncserver.client module against latest SDK", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "54817", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "155961", "key": "MOD-2212", "fields": { "summary": "5.2.0 not compiling CommonJS modules", "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" } }, "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-08T15:49:58.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": "10207", "name": "Tooling" } ], "description": "When I create a pure Javascript Module, any exported method is accessible.\r\n\r\nIn detail for the module I've:\r\n# Created a new Mobile Module Project, from Appcelerator Studio, with id (for example) it.module.test\r\n# Inside _assets_ folder, I've created a js file called _it.module.test.js_\r\n# Into _it.module.test.js_ I have: \r\n{code:javascript}\r\nmodule.exports = { \r\n something: \"hi\" \r\n}\r\n{code}\r\n\r\nNow I package this module directly from Appcelerator Studio and install this module inside a Test Application.\r\n\r\nInto this application I do:\r\n{code:javascript}\r\nvar module = require(\"it.module.test\");\r\nTi.API.info(module.something);\r\n{code}\r\n\r\nAnd the result is *null*.\r\n\r\nThe problem is that the native module classes are being called instead of the CommonJS ones as per the docs.\r\n\r\n__UPDATE__\r\n\r\nAfter several tests, it seems that the problem is the Titanium SDK 4.0.0.\r\nWhen I create the module project inside Appcelerator Studio and selecting a previous version of Titanium SDK (3.4.1 for example) all works perfectly with the same code. ", "attachment": [], "flagged": false, "summary": "Android: Hybrid CommonJS and Native Modules don't export the commonjs code", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Appcelerator Studio 4.0.1\r\nTitanium SDK 4.0.0GA\r\nMac OSX Yosemite", "comment": { "comments": [ { "id": "419363", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "6_1_X PR was here https://github.com/appcelerator/titanium_mobile/pull/9036 and is merged.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-05-09T15:55:05.000+0000", "updated": "2017-05-09T15:55:05.000+0000" }, { "id": "419420", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed for 6.2.0. For 6.1.0, the PR was merged so I tested it on the installed SDK where the fix appears, 6.1.0.v20170509114242\r\nNode Version: 6.10.1\r\nNPM Version: 3.10.10\r\nMac OS: 10.12.4\r\nAppc CLI: 6.2.0\r\nAppc CLI NPM: 4.2.9\r\nTitanium SDK version: 6.1.0.v20170509114242, and locally installed 6.2.0\r\nAppcelerator Studio, build: 4.8.1.201612050850\r\nXcode 8.3.2\r\nAndroid 6.0.1 device\r\n\r\nI used Chris's demo code above, and followed the appropriate test steps. I installed the app and saw an alert pop up with a message \"hi\".", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-09T22:00:54.000+0000", "updated": "2017-05-09T22:00:54.000+0000" }, { "id": "420441", "author": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "body": "Using the 6.0.1.RC I'm unable to build.\r\nHere is the error:\r\n```\r\nndk.build.local:\r\n\r\ncompile:\r\n [javac] Compiling 3 source files to /Volumes/Data/Development/Appcelerator/Modules/commonjs-test/android/build/classes\r\n [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6\r\n [javac] /Volumes/Data/Development/Appcelerator/Modules/commonjs-test/android/build/generated/java/CommonJsSourceProvider.java:2\r\n6: error: cannot access AssetCryptImpl\r\n [javac] AssetCryptImpl source = new AssetCryptImpl();\r\n [javac] ^\r\n [javac] bad source file: /Volumes/Data/Development/Appcelerator/Modules/commonjs-test/android/build/generated/java/it/andreav\r\nitale/commonjs/test/AssetCryptImpl.java\r\n [javac] file does not contain class it.andreavitale.commonjs.test.AssetCryptImpl\r\n [javac] Please remove or make sure it appears in the correct subdirectory of the sourcepath.\r\n [javac] 1 error\r\n\r\n\r\nBUILD FAILED\r\n/Users/Andrea/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.v20170524162819/module/android/build.xml:249: Compile failed\r\n; see the compiler error output for details.\r\n```\r\n", "updateAuthor": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-25T16:35:44.000+0000", "updated": "2017-05-25T16:35:44.000+0000" }, { "id": "420498", "author": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "body": "Sorry for the previous comment. I'm unable to edit it to wrap my log in a gist.\r\nI found a reason: building with {{ant}} will give me the error above, building with {{app ti run -p android --build-only}} the build process ends without errors.\r\n\r\nBut now I found another issue: the build fails when there are two or more js files inside the {{/assets/}} folder. Here is a log that I hope can helps you to find a solution: [build log error|https://gist.github.com/AndreaVitale/32c06ad366202ee31c5e5419a5a6fbb1]", "updateAuthor": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-26T13:17:46.000+0000", "updated": "2017-05-26T13:17:46.000+0000" }, { "id": "421089", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "The issue [~Andrea.Vitale] mentions is actually breaking our ability to recompile the sync server client module from TIMOB-23590. Looking into it now.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-06-06T15:35:54.000+0000", "updated": "2017-06-06T15:35:54.000+0000" }, { "id": "421092", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "6_1_X/6.1.1 PR: https://github.com/appcelerator/titanium_mobile/pull/9117\r\nmaster/6.2.0 PR: https://github.com/appcelerator/titanium_mobile/pull/9116", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-06-06T16:01:18.000+0000", "updated": "2017-06-06T16:01:18.000+0000" }, { "id": "421521", "author": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "body": "Verified the fix, it works!\r\n\r\nThank you.", "updateAuthor": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-08T15:49:58.000+0000", "updated": "2017-06-08T15:49:58.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }