{ "id": "102557", "key": "TIMOB-11238", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14619", "description": "2012 Sprint 23 Core", "name": "2012 Sprint 23 Core", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-14T18:51:21.000+0000", "created": "2012-10-03T00:22:03.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core", "module_webview", "qe-manualtest", "qe-port" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2014-08-14T18:51:21.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": "h3. Issue\r\n\r\nWhen the app is packaged for distribution, .js files are removed. This appears to be causing problems with the javascript files that are referenced by the local html files.\r\n\r\nThis works fine with an iOS app when packaged. The js files are missing from the package but seem to load and execute with no issues. \r\n\r\nh4. Workaround\r\n\r\nThe javascript files can be renamed with .jsx extension and this will disable them from getting removed from the app package.\r\n\r\nh3. Steps to Reproduce\r\n\r\n1. Run the attached test project. \r\n2. When launched in android emulator or on device, the test.js file work update the html file correctly. The apk file still has the test.js resource.\r\n3. When packaged for distribution the test.js file is removed and the html file does not get updated.\r\n4. When the test.html is modified to reference test.jsx, the testcase succeeds\r\n\r\n", "attachment": [ { "id": "32243", "filename": "WebViewWithJSTest.zip", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-10-03T00:22:03.000+0000", "size": 2362489, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: local webviews fail with removed js files when packaged for android", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Platform OS: Android\r\nTitanium SDK: 2.1.3.RC", "comment": { "comments": [ { "id": "221892", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "Also happens in earlier SDK versions. Tested in 2.1.2.GA and 2.0.1.ga2. ", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-10-03T16:34:25.000+0000", "updated": "2012-10-03T16:34:25.000+0000" }, { "id": "226935", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR ready:\n\nhttps://github.com/appcelerator/titanium_mobile/pull/3407", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-11-09T21:48:31.000+0000", "updated": "2012-11-09T21:48:31.000+0000" }, { "id": "235319", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nStudio: 3.0.1.201212181159\r\nSDK: 3.1.0.v20130114171802\r\nAndroid Device: Samsung Galaxy Note (v2.3.6)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-22T10:03:29.000+0000", "updated": "2013-01-22T10:03:29.000+0000" }, { "id": "318701", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "adding port labels", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T18:43:36.000+0000", "updated": "2014-08-14T18:43:36.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }