{ "id": "174104", "key": "TIMOB-27398", "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": "20884", "name": "Release 8.2.1", "archived": false, "released": true, "releaseDate": "2019-10-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-10-04T15:59:08.000+0000", "created": "2019-09-07T18:19:22.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "assets", "engSchedule", "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2019-10-04T15:59:08.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": "{code}\r\nOperating System\r\n Name = Fedora\r\n Version = 30\r\n Architecture = 64bit\r\n # CPUs = 12\r\n Memory = 15.3GB\r\n\r\nNode.js\r\n Node.js Version = 10.16.3\r\n npm Version = 6.9.0\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.15\r\n Core Package = 7.1.1\r\n\r\nTitanium CLI\r\n CLI Version = 5.2.1\r\n node-appc Version = 0.2.49\r\n{code}\r\n\r\nI have some local websites in my \"/app/assets/www/\" folder to display charts and barcodes. While it worked fine with 8.0.2.GA I have some big issues with the latest 8.1.1.GA or CLI version listed above. Every compile a different item out of the \"/app/assets/www\" is missing!\r\n\r\n !Screenshot_20190907_200524.png|thumbnail! \r\n\r\non the left side is my folder. I've open the APK inside a zip tool: the middle is the first run, the right image is the last run. Some files are the same but some files are missing. \r\nI've tried to rename the files but that didn't work either", "attachment": [ { "id": "66936", "filename": "assets.zip", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-11T19:46:22.000+0000", "size": 89408, "mimeType": "application/zip" }, { "id": "66930", "filename": "Screenshot_20190907_200524.png", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-07T18:15:32.000+0000", "size": 77421, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Random assets missing after compiling", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1163, "state": "closed", "name": "2019 Sprint 19", "startDate": "2019-09-09T20:43:13.091Z", "endDate": "2019-09-22T20:43:00.000Z", "completeDate": "2019-09-23T15:37:35.874Z", "originBoardId": 114 }, { "id": 1165, "state": "closed", "name": "2019 Sprint 20", "startDate": "2019-09-23T15:38:43.949Z", "endDate": "2019-10-06T15:38:00.000Z", "completeDate": "2019-10-07T18:33:11.953Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "451192", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Looks like it started with 8.1.0.GA since in 8.0.2.GA I see all files.\r\nFiles are also missing in `[appname]/build/android/bin/assets/Resources/www/`\r\nEvery second build I see the files missing, so I guess it has todo with incremental builds (e.g. https://github.com/appcelerator/titanium_mobile/pull/11024, https://github.com/appcelerator/titanium_mobile/pull/10702, https://github.com/appcelerator/titanium_mobile/pull/10958)", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-08T11:28:44.000+0000", "updated": "2019-09-08T11:56:46.000+0000" }, { "id": "451310", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~michael], is it possible for you to share the contents of your www folder? I wasn't able to reproduce this yet and it may be that this depends references between those HTML/JS/CSS files.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-11T19:42:26.000+0000", "updated": "2019-09-11T19:42:26.000+0000" }, { "id": "451311", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "sure. They are attached. \r\n\r\nIf I clean the folder and run a new build again I see the HTML/CSS files in the folder and after some seconds the JS files appear. Running a second build without a clean the HTML/CSS files stay and the JS files get removed and don't appear again (and are missing in the APK of course)", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-11T19:47:39.000+0000", "updated": "2019-09-11T19:47:39.000+0000" }, { "id": "451355", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks! I couldn't reproduce the exact same issue you are seeing but the build is erroring out for me with your provided assets example. Working on a fix right now!", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-13T11:21:20.000+0000", "updated": "2019-09-13T11:21:20.000+0000" }, { "id": "451361", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR(master): https://github.com/appcelerator/titanium_mobile/pull/11214\r\nPR(8_2_X): https://github.com/appcelerator/titanium_mobile/pull/11215", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-13T17:16:22.000+0000", "updated": "2019-09-13T17:16:22.000+0000" }, { "id": "451365", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Awesome! Works fine. Tested it multiple times and all assets are there. One minor issue: it will still minify those files and they get bigger. Eg. hyph.js is already minified and 139kb in my assets folder. After compiling appc will touch it again and it is 143kb (bin/assets/Ressources) cause it will add spaces around elements that had no space before\r\n\r\n!http://migaweb.de/Screenshot_20190913_201438.png!\r\n\r\nIt still works but I would rather not have it touch my code files in the assets folder if it makes it bigger :)\r\n\r\n", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-13T18:19:12.000+0000", "updated": "2019-09-13T18:19:12.000+0000" }, { "id": "451366", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is due to Alloy trying to optimize all JS files by running it through babel and applying a few plugins. During that process the whitespaces are added it seems.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-13T18:31:48.000+0000", "updated": "2019-09-13T18:31:48.000+0000" }, { "id": "451411", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR passed. Waiting on Jenkins", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-09-16T20:35:23.000+0000", "updated": "2019-09-16T20:35:23.000+0000" }, { "id": "451412", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR merged.", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-09-16T20:53:00.000+0000", "updated": "2019-09-16T20:53:00.000+0000" }, { "id": "451853", "author": { "name": "eboateng", "key": "eboateng", "displayName": "Ebenezer Boateng", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug fixed - verified in SDK version *8.2.1.v20191003075717* and *8.3.0.v20191003144543*", "updateAuthor": { "name": "eboateng", "key": "eboateng", "displayName": "Ebenezer Boateng", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-04T15:32:35.000+0000", "updated": "2019-10-04T15:32:35.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }