{ "id": "175071", "key": "TIMOB-27929", "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": [], "resolution": null, "resolutiondate": null, "created": "2020-06-03T09:46:33.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" }, { "id": "20033", "name": "Release 9.0.0", "archived": false, "released": true, "releaseDate": "2020-03-18" }, { "id": "21018", "name": "Release 9.0.2", "archived": false, "released": true, "releaseDate": "2020-05-19" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2021-02-22T20:01:48.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": [], "description": "When reloading LiveView when deployed to device the environment property from config.json is read wrongly. \r\n\r\nTo reproduce, add this to {{config.json}}\r\n{code:json}\r\n\t\"env:development\": {\r\n\t\t\"env\": \"dev\"\r\n\t},\r\n\t\"env:test\": {\r\n\t\t\"env\": \"test\"\r\n\t},\r\n\t\"env:production\": {\r\n\t\t\"env\": \"prod\"\r\n\t},\r\n{code}\r\n\r\nAdd this to {{index.js}}\r\n{code:js}\r\nconsole.log(Ti.App.deployType, Alloy.CFG.env);\r\n{code}\r\n\r\nLog on first compile will say {{test test}}\r\nLog on liveview reload will say {{test dev}}\r\n\r\n*Expected result*\r\nOn device builds the {{test}} environment should always be read.", "attachment": [], "flagged": false, "summary": "Liveview reload on Device reads wrong config.json environment", "creator": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "thijsalbers", "key": "thijsalbers", "displayName": "Thijs", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on Android Device", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }