{ "id": "150677", "key": "AC-318", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-08-25T13:27:31.000+0000", "created": "2015-08-25T13:20:27.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "48777", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "141852", "key": "ALOY-1210", "fields": { "summary": "Alloy: Add support for DIST in the Project Configuration File", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-08-25T13:27:31.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": [], "description": "Thanks to ALOY-680, you can differentiate between AdHoc and Appstore/Play Store builds in code (such as in alloy.js or your controllers). However, you cannot differentiate between such builds in the config.json.\r\n\r\nWe use different endpoints for AdHoc builds (Installr/TestFlight beta builds) vs our production releases. Currently, we have to manually copy & paste the contents of the config.json file to support such builds. This has resulted in mistakes. While we can use external tooling, like a grunt script, to manipulate the files, it would be best if Alloy itself supported something like:\r\n\r\n{code}\r\n{\r\n \"env:development\": {\"url\":\"https://dev.example.com\"},\r\n \"env:test\":{\"url\":\"https://test.example.com\"},\r\n \"env:production\":{\"url\":\"https://production.example.com\"},\r\n \"dist:adhoc\":{\"url\":\"https://adhoc.example.com\"},\r\n \"dist:store\":{\"url\":\"https://production.example.com\"},\r\n}\r\n{code}\r\n\r\nGiven that we need this support for both iOS and Android, the key can't be {{env:adhoc}}. In the above proposal, {{dist:adhoc}} and {{dist:store}} would need to override {{env:production}}\r\n\r\nUltimately, it would be great to use AdHoc/Store variables in TSS and XML files as well.", "attachment": [], "flagged": false, "summary": "Support AdHoc vs. Production keys in config.json file", "creator": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "361109", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Duplicate of ALOY-1210", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-08-25T13:27:31.000+0000", "updated": "2015-08-25T13:27:31.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }