{ "id": "170789", "key": "TIMOB-25672", "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": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-01-23T19:24:49.000+0000", "created": "2018-01-14T15:34:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "bug", "ios", "memoryleak", "merge-7.0.2" ], "versions": [ { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-01-24T22:14:34.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": "We currently have a number of (non-critical) warnings in the iOS source, caused by some PR's over the last months. Examples\r\n* Unknown selector-warnings because of text-field changes (selector is in place, but not referenced correctly)\r\n* Unknown selector-warning because of APSAnalytics (a recent updated missed to expose it)\r\n* Deprecating warnings (about AUTHORIZATION_AUTHORIZED which is technically identical to AUTHORIZATION_ALWAYS)\r\n* Missing 1024x1024px launch-screen (development-only, missing since Xcode 9 update)\r\n* Fix memory leaks\r\n* Fix an issue where the VideoPlayer would crash after closing and waiting for deallocation (~ 30s)\r\n* Fix an issue where the thumbnail-generation of the video-player would block the UI\r\n\r\nTo fix this, it requires two small PR's to aps_sdk and titanium_mobile", "attachment": [], "flagged": false, "summary": "iOS: Address 10+ compiler warnings and general issues in source project", "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, "comment": { "comments": [ { "id": "433135", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (aps_sdk/master): https://github.com/appcelerator/aps_sdk/pull/308\r\nPR (titanium_mobile/master): https://github.com/appcelerator/titanium_mobile/pull/9733\r\nPR (titanium_mobile/7_0_X): https://github.com/appcelerator/titanium_mobile/pull/9734\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n title: 'TIMOB-25672 Test-Suite',\r\n backgroundColor: '#fff',\r\n layout: 'vertical'\r\n});\r\n \r\nvar btn1a = Ti.UI.createButton({\r\n title: 'Test #1a (Video Player Thumbnail Generator)',\r\n top: 50\r\n});\r\n \r\nbtn1a.addEventListener('click', function() {\r\n var video = Ti.Media.createVideoPlayer({\r\n url: 'http://techslides.com/demos/sample-videos/small.mp4'\r\n });\r\n \r\n var thumbnail = video.requestThumbnailImagesAtTimes([1], Titanium.Media.VIDEO_TIME_OPTION_EXACT, function(e) {\r\n var newWin = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n });\r\n newWin.add(Ti.UI.createImageView({\r\n image: e.image\r\n }));\r\n nav.openWindow(newWin);\r\n });\r\n});\r\n \r\nvar btn1b = Ti.UI.createButton({\r\n title: 'Test #1b (Video Player KVO)',\r\n top: 50\r\n});\r\n \r\nbtn1b.addEventListener('click', function() {\r\n var video = Ti.Media.createVideoPlayer({\r\n url: 'http://techslides.com/demos/sample-videos/small.mp4'\r\n });\r\n var newWin = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n });\r\n newWin.add(video);\r\n nav.openWindow(newWin);\r\n});\r\n\r\nvar btn2 = Ti.UI.createButton({\r\n title: 'Test #2 (Base64-decode)',\r\n top: 50\r\n});\r\n \r\nbtn2.addEventListener('click', function() {\r\n var blob = Ti.Utils.base64decode('dGlyb2NrcyE=');\r\n Ti.API.info('Decoded: ' + blob.text);\r\n});\r\n \r\nvar btn3 = Ti.UI.createButton({\r\n title: 'Test #3 (List-View selectedItems)',\r\n top: 50\r\n});\r\n \r\nbtn3.addEventListener('click', function() {\r\n var win = Ti.UI.createWindow();\r\n var list = Ti.UI.createListView({\r\n sections: [Ti.UI.createListSection({\r\n items: [{\r\n properties: {\r\n title: 'Test'\r\n }\r\n }]\r\n })]\r\n });\r\n win.addEventListener('open', function() {\r\n Ti.API.warn('# of selected items (before): ' + list.selectedItems.length);\r\n });\r\n list.addEventListener('itemclick', function(e) {\r\n Ti.API.warn('# of selected items (in selection): ' + list.selectedItems.length);\r\n });\r\n win.add(list);\r\n nav.openWindow(win);\r\n});\r\n \r\nwin.add(btn1a);\r\nwin.add(btn1b);\r\nwin.add(btn2);\r\nwin.add(btn3);\r\n \r\nvar nav = Ti.UI.iOS.createNavigationWindow({\r\n window: win\r\n});\r\n \r\nnav.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-01-14T15:37:00.000+0000", "updated": "2018-01-17T11:31:05.000+0000" }, { "id": "433488", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-23T00:44:44.000+0000", "updated": "2018-01-23T00:44:44.000+0000" }, { "id": "433621", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix is found in:\r\nSDK 7.0.2.v20180124113923\r\nSDK 7.1.0.v20180124115505\r\n", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-24T22:14:34.000+0000", "updated": "2018-01-24T22:14:34.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }