Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4546] App deployed with development settings

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2016-11-02T19:26:10.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
Labelsandroid, config.json
ReporterCreative
AssigneeShak Hossain
Created2016-10-12T07:56:21.000+0000
Updated2016-11-03T09:47:15.000+0000

Description

Yesterday I published the Android version of an app; later I found out it used the development config in config.json instead of production. I have had this issue once before and it is likely because of the message: [INFO] : [config.json] config.json unchanged, using cached config.json... I've got a strong feeling this isnt working properly. I had just updated my config.json, (I believe without using AppcStudio -> Project -> Clean... before I packaged the project) and it used the development config. Later I built the iOS app (not knowing the issue on the Android package yet) and it appeared to build correctly. I hereby suggest: dont use any sort of "cache" function for such simple files as config.json. This file is likely not gonna be bigger than 200 lines and not caching it is probably the easiest fix.

Comments

  1. Sharif AbuDarda 2016-10-12

    Thanks for your request. It's always better to do a clean in the project before the production build.
  2. Creative 2016-11-03

    Please reopen this report. If you change something in the config.json, it sometimes doesnt recognize that change. Unfortunately I cant reproduce a testcase. It might be OS dependent (Mac/Windows/Linux). The easiest fix is to exclude this config.json from being cached and I think that is a much safer solution since its such an important file to have correct. I'm sure more people have encountered this issue.

JSON Source