{ "id": "144507", "key": "AC-1568", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-09-29T01:53:24.000+0000", "created": "2015-02-11T22:03:15.000+0000", "labels": [ "Alloy.CFG", "config.json" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:38:02.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": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hello,\r\n\r\nWhen using the config.json I expect that when I change the file, it will be changed next time I run the application on an emulator or device.\r\n\r\nA few times today this was not the case. When doing a project -> clean worked for some reason.\r\n\r\nA sample config.json I used:\r\n{code}\r\n{\r\n \"global\": {\r\n \"TMDB\": {\r\n \"API_KEY\": \"SOME_KEY\"\r\n },\r\n \"COLORS\": {\r\n \"ACTION_BAR_COLOR\": \"#0e83cd\",\r\n \"MAIN_COLOR\": \"#0e83cd\"\r\n },\r\n \"URLS\": {\r\n \"IMAGES\": {\r\n \"POSTER\": \"http://image.tmdb.org/t/p/w500\"\r\n },\r\n \"SEARCH\": {\r\n \"MOVIE\": \"http://api.themoviedb.org/3/search/movie\"\r\n },\r\n \"MOVIES\": {\r\n \"ID\": \"http://api.themoviedb.org/3/movie/{id}\",\r\n \"NOW_PLAYING\": \"http://api.themoviedb.org/3/movie/now_playing\",\r\n \"UPCOMING\": \"http://api.themoviedb.org/3/movie/upcoming\",\r\n \"POPULAR\": \"http://api.themoviedb.org/3/movie/popular\",\r\n \"TOP_RATED\": \"http://api.themoviedb.org/3/movie/top_rated\",\r\n \"TRAILERS\": \"http://api.themoviedb.org/3/movie/{id}/videos\",\r\n \"REVIEWS\": \"http://api.themoviedb.org/3/movie/{id}/reviews\",\r\n \"CREDITS\":\"http://api.themoviedb.org/3/movie/{id}/credits\",\r\n \"DERP\":\"http://api.themoviedb.org/3/movie/{id}/derp\"\r\n }\r\n },\r\n \"TAB_PAGES\": [\r\n \"nowplaying\",\r\n \"upcoming\",\r\n \"popular\",\r\n \"toprated\"\r\n ]\r\n },\r\n \"env:development\": {},\r\n \"env:test\": {},\r\n \"env:production\": {},\r\n \"os:android\": {},\r\n \"os:blackberry\": {},\r\n \"os:ios\": {},\r\n \"os:mobileweb\": {},\r\n \"dependencies\": {\r\n \"nl.fokkezb.pullToRefresh\": \"2.1.0\"\r\n }\r\n}\r\n{code}\r\n\r\nI cannot reproduce the problem everyone time, and it only seems to happen on Android (Tested it with Genymotion emulators).\r\n\r\nRegards,\r\nPatrick\r\n", "attachment": [], "flagged": false, "summary": "Alloy CFG is not always generated correctly, uses an old config.json", "creator": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android", "comment": { "comments": [ { "id": "343014", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nThis is normal behave. Alloy uses the config.json file, located in the project's app directory, to specify global values, conditional environment and platform values, and widget dependencies. Some of those config properties will be saved in build folder after running, and will not be re-written in order to accelerate next build.\r\n\r\nIf you do change something in config.json file or tiapp.xml file, the best practice is clean the probject before next running. \r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-02-12T01:19:19.000+0000", "updated": "2015-02-12T01:19:19.000+0000" }, { "id": "343258", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "[~Serfenia] I think you might be running into ALOY-1206 which is fixed for Alloy 1.7. If not, changing the config.json file should trigger its re-processing the next time you build the app. If that's not happening, then this could indicate a bug. Please try to narrow down a reproducable set of conditions so that we can be sure we're able to see the issue and know when it's been resolved.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-02-13T13:53:38.000+0000", "updated": "2015-02-13T13:53:38.000+0000" }, { "id": "362378", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nI have tested this issue in updated environment. This is not a bug for latest Appcelerator version. Not sure if this is still an issue for you. It doesn't appear to be based on our latest tests. Please let me know how I can help further. \r\n\r\n*Test Environments:*\r\n\r\nCLI Version :4.0.1\r\nTitanium SDK Version:4.1.0.GA\r\nAndroid: Google Galaxy Nexus:4.1.1 - API 16 - 720x1280\r\nAppc Studio: Appcelerator Studio, build: 4.1.1.201507141126\r\nAlloy: 1.7.6\r\niOS Simulator: iPhone 4s\r\n\r\n\r\n\r\n*Test Case:*\r\n\r\n* Create a alloy project.\r\n* Paste sample code into *app>config.json*.\r\n* Run the project\r\n\r\n*Test code:*\r\n\r\n*config.json*\r\n\r\n{code}\r\n\r\n{\r\n \"global\": {\r\n \"TMDB\": {\r\n \"API_KEY\": \"SOME_KEY\"\r\n },\r\n \"COLORS\": {\r\n \"ACTION_BAR_COLOR\": \"#0e83cd\",\r\n \"MAIN_COLOR\": \"#0e83cd\"\r\n },\r\n \"URLS\": {\r\n \"IMAGES\": {\r\n \"POSTER\": \"http://image.tmdb.org/t/p/w500\"\r\n },\r\n \"SEARCH\": {\r\n \"MOVIE\": \"http://api.themoviedb.org/3/search/movie\"\r\n },\r\n \"MOVIES\": {\r\n \"ID\": \"http://api.themoviedb.org/3/movie/{id}\",\r\n \"NOW_PLAYING\": \"http://api.themoviedb.org/3/movie/now_playing\",\r\n \"UPCOMING\": \"http://api.themoviedb.org/3/movie/upcoming\",\r\n \"POPULAR\": \"http://api.themoviedb.org/3/movie/popular\",\r\n \"TOP_RATED\": \"http://api.themoviedb.org/3/movie/top_rated\",\r\n \"TRAILERS\": \"http://api.themoviedb.org/3/movie/{id}/videos\",\r\n \"REVIEWS\": \"http://api.themoviedb.org/3/movie/{id}/reviews\",\r\n \"CREDITS\":\"http://api.themoviedb.org/3/movie/{id}/credits\",\r\n \"DERP\":\"http://api.themoviedb.org/3/movie/{id}/derp\"\r\n }\r\n },\r\n \"TAB_PAGES\": [\r\n \"nowplaying\",\r\n \"upcoming\",\r\n \"popular\",\r\n \"toprated\"\r\n ]\r\n },\r\n \"env:development\": {},\r\n \"env:test\": {},\r\n \"env:production\": {},\r\n \"os:android\": {},\r\n \"os:blackberry\": {},\r\n \"os:ios\": {},\r\n \"os:mobileweb\": {},\r\n \"dependencies\": {}\r\n}\r\n{code}\r\n\r\n\r\n*Test Result:*\r\n\r\nAlloy CFG is always generated correctly.\r\n\r\nThanks", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-06T07:04:16.000+0000", "updated": "2015-09-29T01:52:57.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }