{ "id": "151305", "key": "TIMOB-19549", "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": "16778", "description": "Release 5.0.1", "name": "Release 5.0.1", "archived": false, "released": true, "releaseDate": "2015-09-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-09-20T09:57:56.000+0000", "created": "2015-09-18T20:39:08.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2015-09-22T20:41: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": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "10207", "name": "Tooling" } ], "description": "JS files in the Resources dir are getting minified. This is due to a bug introduced in Ti SDK 5.0.0.\r\n\r\nTo reproduce, do:\r\n\r\n{code}\r\nti clean\r\n{code}\r\n\r\n{code}\r\nti build -p ios -T device --build-only --skip-js-minify\r\n{code}\r\n\r\nAt this point, since we did't minify the JS files, the {{build/iphone/assets}} dir will contain symlinks to the original files in the Resources dir. titanium_prep happily encrypts them and all is good.\r\n\r\n{code}\r\nti build -p ios -T device --build-only\r\n{code}\r\n\r\nNow the iOS build will minify and then encrypt. Except this time, when we write the minified JS code to the assets dir, the destination exists and it's a symlink! When it writes to the symlinked JS file, it modifies the original in the Resources dir.", "attachment": [], "flagged": false, "summary": "iOS: JS files in Resources get minified if minification is not \"skipped\"", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 495, "state": "closed", "name": "2015 Sprint 19 Tooling", "startDate": "2015-09-14T16:11:58.378Z", "endDate": "2015-09-26T01:11:00.000Z", "completeDate": "2015-09-28T18:59:46.802Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "364315", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master PR: https://github.com/appcelerator/titanium_mobile/pull/7206\r\n5_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/7207", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-09-18T20:41:14.000+0000", "updated": "2015-09-18T20:41:14.000+0000" }, { "id": "364384", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "APPROVED. PRs merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-20T09:57:38.000+0000", "updated": "2015-09-20T09:57:38.000+0000" }, { "id": "364395", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To all, into order to install the update, do:\r\n\r\n[appc] ti sdk install --default --branch 5_0_X 5.0.0.v20150920030708", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-20T15:54:40.000+0000", "updated": "2015-09-20T15:54:40.000+0000" }, { "id": "364703", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11 (15A279b)\r\nStudio 4.3.0.201509151348\r\nTi SDK 5.0.1.v20150922062312\r\nAppc NPM 4.2.0\r\nAppc CLI 5.0.2-19\r\nTi CLI 5.0.4\r\nAlloy 1.7.10\r\nArrow 1.2.62\r\nXcode 7.0 (7A218)\r\nNode v0.10.37\r\nJava 1.7.0_45\r\npreproduction\r\n\r\nOriginal JS files are not minified on builds.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-22T20:41:21.000+0000", "updated": "2015-09-22T20:41:21.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }