{ "id": "137723", "key": "ALOY-1157", "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": "16692", "name": "Alloy 1.7.0", "archived": false, "released": true, "releaseDate": "2015-07-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-10-14T20:14:26.000+0000", "created": "2014-10-07T16:03:32.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "16596", "name": "Alloy 1.6.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2014-10-23T20:13:42.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" } ], "description": "*Steps:*\r\n\r\n1. Create a new Alloy app from the advanced/android_density sample\r\n\r\n{code}\r\ntitanium create --name=appname --id=com.domain.appname --platforms=all\r\ncd appname\r\nalloy new . --testapp advanced/android_density\r\n{code} \r\n\r\nNote that the source android_density code includes the following res-* folders each containing 'theImage.png' at different pixel densities.\r\n\r\n{code}\r\n├── assets\r\n│   ├── android\r\n│   │   ├── appicon.png\r\n│   │   ├── default.png\r\n│   │   └── images\r\n│   │   ├── res-hdpi\r\n│   │   │   └── theImage.png\r\n│   │   ├── res-ldpi\r\n│   │   │   └── theImage.png\r\n│   │   ├── res-mdpi\r\n│   │   │   └── theImage.png\r\n│   │   └── res-xhdpi\r\n│   │   └── theImage.png\r\n│   └── images\r\n│   └── theImage.png\r\n{code}\r\n\r\n2. Examine contents of the generated Alloy project's *appname/app/assets* directory. \r\n\r\n*Results*\r\n\r\nThe res-* folders and contents were not copied into the new project's corresponding assets/android/images folder, as shown below:\r\n\r\n{code}\r\n│   ├── assets\r\n│   │   ├── android\r\n│   │   │   ├── appicon.png\r\n│   │   │   ├── default.png\r\n│   │   │   └── images\r\n│   │   │   ├── res-long-land-hdpi\r\n│   │   │   │   └── default.png\r\n│   │   │   ├── res-long-land-ldpi\r\n│   │   │   │   └── default.png\r\n│   │   │   ├── res-long-land-mdpi\r\n│   │   │   │   └── default.png\r\n│   │   │   ├── res-long-land-xhdpi\r\n│   │   │   │   └── default.png\r\n│   │   │   ├── res-long-land-xxhdpi\r\n│   │   │   │   └── default.png\r\n│   │   │   ├── res-long-land-xxxhdpi\r\n│   │   │   │   └── default.png\r\n│   │   │   ├── res-long-port-hdpi\r\n│   │   │   │   └── default.png\r\n│   │   │   ├── res-long-port-ldpi\r\n│   │   │   │   └── default.png\r\n│   │   │   ├── res-long-port-mdpi\r\n{code}\r\n\r\n*Expected*\r\nThe res-* folders and their contents are merged in with the existing assets/android/images folder contents.\r\n\r\n{code}\r\n│   ├── assets\r\n│   │   ├── android\r\n│   │   │   ├── appicon.png\r\n│   │   │   ├── default.png\r\n│   │   │   └── images\r\n│   │   │   ├── res-hdpi\r\n│   │   │   │   └── theImage.png\r\n│   │   │   ├── res-ldpi\r\n│   │   │   │   └── theImage.png\r\n│   │   │   ├── res-mdpi\r\n│   │   │   │   └── theImage.png\r\n│   │   │   ├── res-xhdpi\r\n│   │   │   │   └── theImage.png\r\n│   │   │   ├── res-long-land-xxhdpi\r\n│   │   │   │   └── default.png\r\n│   │   │   ├── res-long-land-xxxhdpi\r\n│   │   │   │   └── default.png\r\n│   │   │   ├── res-long-port-hdpi\r\n│   │   │   │   └── default.png\r\n│   │   │   ├── res-long-port-ldpi\r\n│   │   │   │   └── default.png\r\n│   │   │   ├── res-long-port-mdpi\r\n{code}", "attachment": [], "flagged": false, "summary": "Creating sample app from advanced/android_density doesn't copy resolution-specific image folders ", "creator": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 234, "state": "closed", "name": "2014 Sprint 21 Alloy", "startDate": "2014-10-13T16:36:31.077Z", "endDate": "2014-10-25T01:36:00.000Z", "completeDate": "2014-10-27T13:28:36.470Z", "originBoardId": 124 } ], "comment": { "comments": [ { "id": "327599", "author": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~skypanther], there's a similar issue with Dynamic Styles sample, where the styles/app.tss file doesn't get copied over, which messes up things. So it's not specific to a particular test sample, as you you prolly already guessed.", "updateAuthor": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-10T14:07:28.000+0000", "updated": "2014-10-10T14:07:28.000+0000" }, { "id": "327760", "author": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~skypanther], I submitted a PR that (I think) fixes the issues I've been seeing. The fix was to move the process of copying the contents of the testapp folder after copying the Resources from the host Ti app.\r\n\r\nhttps://github.com/appcelerator/alloy/pull/587", "updateAuthor": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-11T19:00:42.000+0000", "updated": "2014-10-11T19:00:42.000+0000" }, { "id": "328078", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR approved and merged. \r\n\r\nConfirm with steps in description above. Also with\r\n\r\n{{alloy new . --testapp advanced/dynamic_styling}}\r\n\r\nAlso with {{jake test:spec\\[new.js\\]}} and in particular you should see {{\\[PASS\\] alloy new --> executes `alloy new \"/Users/admin/repos/alloy/test/projects/Harness\" --testapp ui/listview` with success}}", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-10-14T20:14:26.000+0000", "updated": "2014-10-14T20:14:26.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }