{ "id": "140781", "key": "TIMOB-18119", "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": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-09T22:32:08.000+0000", "created": "2014-12-02T05:38:52.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.5.0", "qe-assigned" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-12-09T22:32:08.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Ti.UI.iPhone.StatusBar constants are generating following warning message.\r\n{code} [WARN] : Titanium.UI.iPhone.StatusBar.OPAQUE_BLACK DEPRECATED in 3.4.2, in favor of UI.iPhone.StatusBar.LIGHT_CONTENT: REMOVED in 3.5.0 {code}\r\n\r\nThis message is invalid since there is no release version called 3.4.2.\r\n\r\nh5. Steps to reproduce\r\n1. Create a classic app using following code\r\n{code}\r\nvar isDayMode = true,\r\n ios = Ti.Platform.name === 'iPhone OS',\r\n iosFlat = ios && +Ti.Platform.version >= 7,\r\n win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n }),\r\n label = Ti.UI.createLabel({\r\n text: 'Day Mode', textAlign: 'center',\r\n color: '#000', font: { fontSize: 30 },\r\n top: iosFlat ? 60 : 30, bottom: 0\r\n }),\r\n button = Ti.UI.createButton({\r\n title: 'Switch',\r\n color: '#000',\r\n top: iosFlat ? 30 : 0, height: 30\r\n });\r\nbutton.addEventListener('click', function() {\r\n isDayMode = !isDayMode;\r\n if (isDayMode) {\r\n ios && (win.statusBarStyle = Ti.UI.iPhone.StatusBar.DEFAULT);\r\n win.backgroundColor = '#ccc';\r\n label.color = button.color = '#000';\r\n label.text = 'Day Mode';\r\n }\r\n else {\r\n ios && (win.statusBarStyle = Ti.UI.iPhone.StatusBar.TRANSLUCENT_BLACK);\r\n win.backgroundColor = '#444';\r\n label.color = button.color = '#fff';\r\n label.text = 'Night Mode';\r\n }\r\n});\r\nwin.add(label);\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n2. Run on iPhone device\r\n\r\nh5. Actual Result\r\nInvalid warning message is thrown in studio console.\r\n\r\nh5. Expected Result\r\nWarning message should be valid. It should use valid release versions and constant names.\r\nFor Eg: *OPAQUE_BLACK* and *LIGHT_CONTENT* are not used in code.", "attachment": [], "flagged": false, "summary": "iOS: Ti.UI.iPhone.StatusBar constants generate invalid warnings on Studio console.", "creator": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Titanium SDK: 3.5.0.v20141201155733\r\nAppc-Studio: 3.4.1 GA\r\nTitanium CLI: 3.4.1 GA\r\nAlloy : 1.5.1 GA\r\nXcode : 6.1\r\nOS: OSX 10.10.1\r\nDevice : iPhone 6plus (iOS 8.1)", "closedSprints": [ { "id": 258, "state": "closed", "name": "2014 Sprint 24 SDK", "startDate": "2014-11-24T22:28:25.425Z", "endDate": "2014-12-06T01:00:00.000Z", "completeDate": "2014-12-08T17:21:15.171Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "334410", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This instead should say \"deprecated in 3.5.0, removed in 3.6.0\"", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-02T22:36:51.000+0000", "updated": "2014-12-02T22:36:51.000+0000" }, { "id": "334648", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/6422\r\n3_5_X - https://github.com/appcelerator/titanium_mobile/pull/6423\r\n\r\n3.4.2 is a valid release as it is available from the CI build system.\r\nJust updating removed version to 3.6.0", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-03T21:48:04.000+0000", "updated": "2014-12-03T21:48:04.000+0000" }, { "id": "335714", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed using:\r\n\r\nTitanium SDK 3.5.0.v20141208122514\r\nStudio 3.4.1.201410281743 \r\nXcode 6.1.1\r\n\r\nOn: \r\niPad mini, iOS 8.1\r\niPhone 6, iOS 8.2b \r\niPhone 4S Sim, iOS 8.1\r\n\r\nWarning message is as Vishal describes.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-09T22:27:32.000+0000", "updated": "2014-12-09T22:31:59.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }