{ "id": "64027", "key": "TIMOB-3395", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11248", "name": "Sprint 2011-13", "archived": true, "released": true, "releaseDate": "2011-04-04" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-30T14:26:42.000+0000", "created": "2011-04-15T03:43:46.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "10256", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "64783", "key": "TIMOB-3712", "fields": { "summary": "Confirm TIMOB-3395", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-31T11:56:40.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": "{html}

See Helpdesk\r\n74171

\r\n

JS source should not be available in production apk if\r\ncompilation is turned on.

{html}", "attachment": [], "flagged": false, "summary": "Android: JS source remains in APK after production build.", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130646", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [1f28139158d5517c9801bb84d6e93af188f6bcbd])\ndon't include js source files when compiling for production mode.\nalso remove binding JSON files from the generated APK
\n[#3395 state:fixed-in-qa] \nhttps://github.com/appcelerator/titanium_mobile/commit/1f28139158d5...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:43:47.000+0000", "updated": "2011-04-15T03:43:47.000+0000" }, { "id": "130647", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

To test this, build an application for Distribution, and open or\nextract the resulting APK with an unzipping program. Under the\n\"assets/Resources\" folder, there should be no .js files.

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:43:47.000+0000", "updated": "2011-04-15T03:43:47.000+0000" }, { "id": "166226", "author": { "name": "connysvensson", "key": "connysvensson", "displayName": "connysvensson", "active": true, "timeZone": "Europe/Berlin" }, "body": "But it also removes potential JavaScript files that you're using in a local webview. You might even include big JavaScript libraries/frameworks that you use inside your webview, for example jQuery Mobile. These JavaScript files should not be deleted. Is there an option to ignore deletion of JavaScripts files for certain directory paths?", "updateAuthor": { "name": "connysvensson", "key": "connysvensson", "displayName": "connysvensson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-09-15T14:47:18.000+0000", "updated": "2011-09-15T14:47:18.000+0000" }, { "id": "166258", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "just rename the files you don't want converted to .jsx. There is no ignore option at them moment.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-15T17:49:22.000+0000", "updated": "2011-09-15T17:49:22.000+0000" }, { "id": "172261", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Currently occurs with both Rhino and v8 packaged .apks. SDK 1.8.0.1.v20111109152300", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-10T17:13:10.000+0000", "updated": "2011-11-10T17:13:10.000+0000" }, { "id": "172372", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "With V8, things work a little differently -- we actually bundle the obfuscated JS files directly instead of compiling to classes like we did with Rhino (there is no need for immediate bytecode form w/ V8). We'll probably need to change the test plan..", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-11T13:42:21.000+0000", "updated": "2011-11-11T13:42:21.000+0000" }, { "id": "172373", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FWIW, Rhino bytecode compilation is currently known to be disabled as well (we plan on re-enabling it soon, and with that we can remove JS for Rhino APKs)", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-11T13:43:09.000+0000", "updated": "2011-11-11T13:43:09.000+0000" }, { "id": "175149", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We need to revisit this when we re-enable bytecode compilation for rhino", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-07T02:22:07.000+0000", "updated": "2011-12-07T02:22:07.000+0000" }, { "id": "189345", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Forgot to mark this as resolved", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-30T14:26:42.000+0000", "updated": "2012-03-30T14:26:42.000+0000" }, { "id": "189347", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120329191102\r\nRuntime: v8, rhino\r\nTitanium Studio, build: 2.0.0.201203291340\r\nDevice: LG Slate (3.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-30T14:32:39.000+0000", "updated": "2012-03-30T14:32:39.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }