{ "id": "154605", "key": "TIMOB-20294", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-02-10T12:50:52.000+0000", "created": "2016-01-31T17:38:02.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "compiler", "ios", "warning", "xcode" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" }, { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" }, { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-08-06T17:49:10.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": "For the upcoming Titanium Mobile 5.4.0 release, we need to get rid of the warnings we currently have when building the SDK (as well as deploying Titanium Apps).\r\n\r\nThis is a similar effort as TIMOB-16697 did in the past.", "attachment": [], "flagged": false, "summary": "iOS: Resolve Xcode compiler warnings", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 580, "state": "closed", "name": "2016 Sprint 3 SDK", "startDate": "2016-01-30T01:31:48.991Z", "endDate": "2016-02-13T01:31:00.000Z", "completeDate": "2016-02-15T05:32:40.725Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "375565", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7657\r\n\r\nTesting steps: Run the Xcode project and ensure it doesn't fail.\r\n\r\nEDIT: Here is a demo case calling all changed methods:\r\n{code:javascript}\r\n\r\nvar win = Ti.UI.createWindow({layout: \"vertical\",backgroundColor: \"#fff\", orientationModes: [0,1,2,3]});\r\nwin.open();\r\n\r\n////////// ---\r\n\r\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, \"test_two.txt\");\r\nfile.resolve();\r\n\r\n////////// ---\r\n\r\nvar player = Ti.Media.createSound({url:'http://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3'});\r\nplayer.addEventListener(\"resume\", function() {\r\n\tTi.API.warn(\"resumed\");\r\n});\r\nplayer.play();\r\n\r\nsetTimeout(function() {\r\n\tplayer.pause();\r\n\tsetTimeout(function() {\r\n\t\tplayer.play();\r\n\t\tplayer.stop();\r\n\t},500);\r\n},500);\r\n\r\n////////// ---\r\n\r\nvar videoPlayer = Titanium.Media.createVideoPlayer({\r\n autoplay : true,\r\n height : 300,\r\n width : 300,\r\n\turl: Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'movie.mp4'),\r\n mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,\r\n scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT\r\n});\r\n\r\nwin.add(videoPlayer);\r\n\r\n////////// ---\r\n\r\nTi.API.warn(win.orientationModes);\r\n\r\n////////// ---\r\n\r\nTi.UI.Clipboard.clearData('unknown');\r\n\r\n////////// ---\r\n\r\nvar btn = Ti.UI.createButton({title: \"Open dialog\", top: 30});\r\nbtn.addEventListener(\"click\", function() {\r\n\tvar emailDialog = Ti.UI.createEmailDialog();\r\n\temailDialog.addAttachment(Ti.Filesystem.getFile('cricket.wav').read());\r\n\temailDialog.open();\r\n});\r\nwin.add(btn);\r\n\r\n////////// ---\r\n\r\nvar web = Ti.UI.createWebView({\r\n\ttop: 30,\r\n\twidth: 100,\r\n\theight: 100,\r\n\tbackgroundColor: \"#f00\",\r\n\tdata: Ti.Filesystem.getFile('examples/local_webview.html').read()\r\n});\r\nweb.addEventListener(\"load\", function() {\r\n\tTi.API.warn(\"Data loaded!\");\r\n});\r\nwin.add(web);\r\n\r\n////////// ---\r\n\r\nwin.setToolbar([Ti.UI.createButton({title: \"Test\"})]);\r\n\r\n////////// ---\r\n\r\n// SplitView API is already removed from public API and replaced with Ti.UI.iOS.SplitView,\r\n// so we don't need to validate the events here\r\n\r\n////////// ---\r\n\r\nwin.setBackgroundImage(Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, \"default_app_logo.png\").read());\r\n\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-01-31T18:00:36.000+0000", "updated": "2016-02-05T16:55:29.000+0000" }, { "id": "440046", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:10.000+0000", "updated": "2018-08-06T17:49:10.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }