{ "id": "159253", "key": "ALOY-1485", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2016-04-01T14:00:56.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "17974", "name": "alloy 1.8.0", "archived": false, "released": true, "releaseDate": "2016-03-16" }, { "id": "18005", "name": "alloy 1.8.5", "archived": false, "released": true, "releaseDate": "2016-03-30" } ], "issuelinks": [ { "id": "51207", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "155573", "key": "ALOY-1365", "fields": { "summary": "Improve how Alloy works with i18n and platform folders", "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": "Critical", "id": "1" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-04-01T14:05:41.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" } ], "description": "Take the following scenario:\r\n\r\n# I have an Alloy app that targets iOS and Android but only has a {{/platform/android}}, no {{/platform/ios}}.\r\n# I upgraden from Alloy 1.7.35 to 1.8.0, which includes ALOY-1365.\r\n# I continue to work on the iOS version of my app and get a warning to add {{/platform}} to my {{.gitignore}} file. Weird, because \r\nwhy would I stop versioning that if it contains important stuff for Android?\r\n# After a while I switch to work on the Android version and it says:\r\n\r\n{code}\r\n[ERROR] Detected legacy \"/platform\" directory in project directory.\r\n[ERROR] Please move the \"/platform\" directory to \"/app/platform\" for Alloy 1.8.0 or later.\r\n[ERROR] Alloy compiler failed\r\n{code}\r\n\r\nThis is confusing because didn't I work on my iOS app successfully using Alloy 1.8.0 without having moved the folder?\r\n\r\nAlso, when I'd now move {{/i18n}} to {{/app/i18n}} as it suggests it would now also include an {{ios}} folder which contains a {{alloy_generated}} file.\r\n\r\nI think it would be better to do the check (and have the {{alloy_generated}} file in the root of {{/platform}} and not in the platform folders. It would then:\r\n\r\n* Already have failed to build when I started working on IOS after the upgrade.\r\n* The warning would not be confusing since it would only show on the second build after dealing with...\r\n* The error would not be confusing since it is about the root folder and not the platform one.\r\n* The {{/platform/ios}} would not have been generated, easing the relocation.", "attachment": [], "flagged": false, "summary": "Warning on relocation of platform folder confusing if it contains only one platform", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }