[TIMOB-23769] iOS: Deprecated warnings are thrown in unrelated API's
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-08-15T18:45:07.000+0000 |
Affected Version/s | Release 5.4.0 |
Fix Version/s | Release 5.5.0 |
Components | iOS |
Labels | deprecated, ios, qe-5.5.0, regression |
Reporter | Hans Knöchel |
Assignee | Hans Knöchel |
Created | 2016-08-12T12:19:05.000+0000 |
Updated | 2016-09-16T21:08:48.000+0000 |
Ok, after some more research, I found the reason for the warnings. We reused certain proxies like
Ti.UI.iPhone.TableViewCellSelectionStyle
andTi.UI.iPhone.ListViewCellSelectionStyle
because they return the same values, so we had a classTiUIiPhoneTableViewCellSelectionStyleProxy
that was used by both. Now we deprecated it, so only the warning forTableViewCellSelectionStyle
was thrown. What we need to do is to create own classes to throw specific deprecated warnings, until we remove the classes in a later release (probably 7.0.0 or 8.0.0). I guess the same happens forSystemButton
but will need to check that as well. PR (master): https://github.com/appcelerator/titanium_mobile/pull/8226 PR (5_5_X): https://github.com/appcelerator/titanium_mobile/pull/8227 Demo:*Expected behavior (before)*: Some of the logs show
Ti.UI.iPhone.TableView<ProxyName>
instead of the actual proxy name. *Expected behavior (after)*: All logs show the correct deprecated warnings that are related to the namespace.Verified as fixed. Tested on: {noformat} iPhone 6s plus (9.3.1) iPhone 6 (10.0) beta 6 iPhone Simulator (10.0) Mac OSX El Capitan 10.11.6 Studio: 4.7.0.201607250649 Ti SDK: 5.4.0.v20160608165242 Appc NPM: 4.2.7 Appc CLI: 5.5.0-5 Xcode 7.3.1/8 beta 6 Node: v4.4.4 {noformat} *Closing ticket*
I missed the 6_0_X backport: https://github.com/appcelerator/titanium_mobile/pull/8388