{ "id": "131151", "key": "ALOY-1035", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-03T14:34:14.000+0000", "created": "2014-06-02T21:13:25.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-3.3.0", "qe-testadded", "regression" ], "versions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" } ], "issuelinks": [ { "id": "38032", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "110843", "key": "ALOY-577", "fields": { "summary": "Theme assets not removed in orphan file cleanup", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "38083", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "129873", "key": "ALOY-1002", "fields": { "summary": "Platform-specific folders within a widget's assets are copied unnecessarily to the Resources folder", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2014-06-06T22:01:32.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": "13603", "name": "Styling", "description": "TSS, dynamic styling, styling API" }, { "id": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" } ], "description": "h5. Problem description\r\nThemes Assets images are not properly used when the image files are put in the \"themes//assets\" folder instead that in platform specific folder \"themes//assets/\"\r\n\r\nReproducible on iOS, Android and MobileWeb.\r\nWorks fine using Alloy 1.3.1 (so is a regression).\r\n\r\n\r\nh5. Steps to reproduce\r\nGet the code from https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-577\r\n\r\n1.\r\nRun the App on iOS, Android or MobileWeb\r\nResult: two Alloy Icons are displayed (on a red background, as correctly applied from the themes/red/styles/app.tss). Icons are the red.png and blue.png icons inside \"app/assets/\" folder. See screenshot_140_red.png\r\nExpected result: a different icon should be displayed on top (the one in \"app/themes/red/assets/red.png\"). See screenshot_131_red.png\r\n\r\n2.\r\nChange config.json file: \r\n{code}\r\n\"theme\":\"red\"\r\n{code}\r\n\r\nto \r\n\r\n{code}\r\n\"theme\":\"blue\"\r\n{code}\r\nthen build and run.\r\n\r\nResult: same two Alloy Icons are displayed (on a blue background, as correctly applied from the themes/blue/styles/app.tss) . Icons are the red.png and blue.png icons inside \"app/assets/\" folder. See screenshot_140_blue.png\r\nExpected result: a different icon should be displayed on bottom (the one in \"app/themes/blue/assets/blue.png\"). See screenshot_131_blue.png\r\n\r\nh5. Further steps\r\nAs explained in the description, the issue seems to be reproducible only when the Assets image files are put in the \"app/themes/assets/\" folder. If put in a specific platform folder, for example iphone, android or mobileweb, they work as expected.\r\n\r\n3. \r\nAfter step #2, create a platform folder, for example: \"app/themes/blue/assets/mobileweb\".\r\nRun on MobileWeb. \r\nResult: Image in \"app/themes/blue/assets/mobileweb/\" folder is correctly displayed (just like screenshot_131_blue.png)\r\n\r\n", "attachment": [ { "id": "48540", "filename": "screenshot_131_blue.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-02T21:13:25.000+0000", "size": 41083, "mimeType": "image/png" }, { "id": "48541", "filename": "screenshot_131_red.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-02T21:13:25.000+0000", "size": 66176, "mimeType": "image/png" }, { "id": "48542", "filename": "screenshot_140_blue.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-02T21:13:25.000+0000", "size": 35076, "mimeType": "image/png" }, { "id": "48543", "filename": "screenshot_140_red.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-02T21:13:25.000+0000", "size": 58734, "mimeType": "image/png" } ], "flagged": false, "summary": "Themes: Assets images not being applied as expected", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.3.0.v20140530163312\r\nAlloy 1.4.0-beta\r\nAppcelerator Studio 3.3.0.201405271647\r\nCLI 3.3.0-beta2", "closedSprints": [ { "id": 117, "state": "closed", "name": "2014 Sprint 11 Alloy", "startDate": "2014-05-27T16:00:55.737Z", "endDate": "2014-06-07T04:00:00.000Z", "completeDate": "2014-06-09T14:18:58.490Z", "originBoardId": 124 } ], "comment": { "comments": [ { "id": "307326", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR: https://github.com/appcelerator/alloy/pull/424\r\n\r\nMerged to master and 1_4_X\r\n\r\nFunctional test:\r\n\r\nTest using the steps to reproduce above.\r\n\r\nYou can also use the ALOY-577 test app. Build and check the Resources/iphone directory for the asset images. Then, change the theme name in config.json and build again. The theme assets have been replaced correctly and no orphan assets remain.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-03T14:34:14.000+0000", "updated": "2014-06-03T14:34:14.000+0000" }, { "id": "307910", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed also using latest Alloy 1.4.0-beta2\r\n\r\nTiSDK 3.3.0.v20140605150555\r\nAlloy 1.4.0-beta2 \r\nAppcelerator Studio 3.3.0.201405271647\r\nCLI 3.3.0-beta2\r\n\r\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-06T22:01:18.000+0000", "updated": "2014-06-06T22:01:18.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }