Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27929] Liveview reload on Device reads wrong config.json environment

GitHub Issuen/a
TypeBug
PriorityCritical
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 8.3.0, Release 9.0.0, Release 9.0.2
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterThijs
AssigneeEwan Harris
Created2020-06-03T09:46:33.000+0000
Updated2021-02-22T20:01:48.000+0000

Description

When reloading LiveView when deployed to device the environment property from config.json is read wrongly. To reproduce, add this to config.json
	"env:development": {
		"env": "dev"
	},
	"env:test": {
		"env": "test"
	},
	"env:production": {
		"env": "prod"
	},
Add this to index.js
console.log(Ti.App.deployType, Alloy.CFG.env);
Log on first compile will say test test Log on liveview reload will say test dev *Expected result* On device builds the test environment should always be read.

Comments

No comments

JSON Source