{ "id": "122982", "key": "TIMOB-15837", "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": "15711", "description": "2013 Sprint 24", "name": "2013 Sprint 24", "archived": true, "released": true, "releaseDate": "2013-11-29" }, { "id": "15713", "description": "2013 Sprint 24 Core", "name": "2013 Sprint 24 Core", "archived": true, "released": true, "releaseDate": "2013-11-29" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-28T06:58:37.000+0000", "created": "2013-11-27T10:10:47.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_android", "qe-3.2.0", "qe-closed-3.2.0", "qe-testadded" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-03-07T01:03:06.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": "Steps Followed:\r\n1. Create an alloy project.\r\n2. launch the project on android emulator.\r\n\r\nActual Result:\r\nIt fails and gives an 'Alloy module not found' as an uncaught exception.\r\n\r\nPlease refer the attached console log file and screen shot for more clarification.", "attachment": [ { "id": "44227", "filename": "alloy_module missing.png", "author": { "name": "schowbey", "key": "schowbey", "displayName": "Shreya Chowbey", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T10:10:47.000+0000", "size": 225029, "mimeType": "image/png" }, { "id": "44228", "filename": "alloy module missing.txt", "author": { "name": "schowbey", "key": "schowbey", "displayName": "Shreya Chowbey", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T10:10:47.000+0000", "size": 21762, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: platform-specific Resources folder not working for commonjs modules", "creator": { "name": "schowbey", "key": "schowbey", "displayName": "Shreya Chowbey", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "schowbey", "key": "schowbey", "displayName": "Shreya Chowbey", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Windows 8.1\r\nAppcelerator Studio, build -3.2.0.201311261642\r\nmobilesdk-3.2.0.v20131126144841-win\r\ntitanium -3.2.0-beta\r\ntitanium-code-processor -1.1.0-beta\r\nacs -1.0.8\r\nalloy -1.3.0", "comment": { "comments": [ { "id": "281692", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Was able to reproduce.\n\nWindows 8\nTiSDK 3.2.0.v20131126144841\nAlloy 1.3.0-beta\nCLI 3.2.0-beta\nTitanium Studio 3.2.0.201311262027\n\n1. Create a new default project in Titanium Studio and run on the emulator from Titanium Studio (Android version tested 2.3.3)\n2. Once run, the described issue is shown.\n3. Checking into the Resources folder, I see the 'alloy.js' file in the Resources/android/ folder. \n\nThe same behavior is also reproducible if creating and building a new Alloy project from CLI. ", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T19:33:33.000+0000", "updated": "2013-11-27T19:33:33.000+0000" }, { "id": "281697", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can someone please attempt the equivalent issue with a traditional Titanium app so we can determine if this is even an Alloy issue, or if it just happens to occur in an alloy app since alloy uses platform-specific folders. This is untested, but give something like this a shot.\n\nh3. app.js\n{code:javascript}\nrequire('alloy').sayHi();\n{code}\n\nh3. android/alloy.js\n{code:javascript}\nexports.sayHi = function() { alert('hi'); };\n{code}", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T19:39:58.000+0000", "updated": "2013-11-27T19:39:58.000+0000" }, { "id": "281703", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can reproduce the issue also with a classic project following Tony's latest comment. \nSo, it seems related to platform-specific folders usage. ", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T19:56:51.000+0000", "updated": "2013-11-27T19:56:51.000+0000" }, { "id": "281755", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5044\n3_2_X pull request: https://github.com/appcelerator/titanium_mobile/pull/5045", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-28T02:38:40.000+0000", "updated": "2013-11-28T02:38:40.000+0000" }, { "id": "281791", "author": { "name": "schowbey", "key": "schowbey", "displayName": "Shreya Chowbey", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified this issue as fixed on,\nMac 10.9\nAppcelerator Studio, build: 3.2.0.201311261642\nmobilesdk-3.2.0.v20131127194046-osx\nalloy-1.0.3-beta\n\nBut verification on Windows OS was blocked by TISTUD-5815 Windows: Android configuration fails \n", "updateAuthor": { "name": "schowbey", "key": "schowbey", "displayName": "Shreya Chowbey", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-28T16:53:16.000+0000", "updated": "2013-11-28T16:53:16.000+0000" }, { "id": "282168", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nWindows 8.1\nTitanium Studio, build: 3.2.0.201311262027\nTitanium SDK, build: 3.2.0.v20131127194046\nCLI: 3.2.0-beta\nAlloy: 1.3.0-beta\n\nCreated an alloy project and a classic project built and installed to Android emulator and device.\nUsed code from description and code from comments.\nBoth successfully launched.\nClosing.\n\n", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-03T19:01:20.000+0000", "updated": "2013-12-03T19:01:20.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }