[TIMOB-24717] iOS: Resolve iOS 8 deprecations for NSDayCalendarUnit
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2017-06-26T12:57:15.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 6.2.0 |
| Components | iOS |
| Labels | qe-6.2.0 |
| Reporter | Vijay Singh |
| Assignee | Vijay Singh |
| Created | 2017-05-23T05:05:03.000+0000 |
| Updated | 2017-06-26T15:02:31.000+0000 |
Description
In SDK 6.0.0, we updated the default minimum iOS target to 8.0 as a result of the Xcode 8.x version that is now supported. Doing that, our iOS SDK core shows some deprecation-warnings regarding API's that should be replaced in iOS 8 and later.
Replace NSDayCalendarUnit with NSCalendarUnitDay etc. (search and replace, easy ones)
This is subset of ticket TIMOB-24335.
PR: https://github.com/appcelerator/titanium_mobile/pull/9075
Verified as fixed, ran test cases provided by documentation against Ti SDK 6.1.0.GA & Master, against iOS 8/9/10. Tested On: iPhone 7 10.3.2 Device & Simulator iPhone 6S 9.3 / 8.1 Simulators Mac OS Sierra (10.12.5) Ti SDK: 6.2.0.v20170626070527 Appc NPM: 4.2.9 App CLI: 6.2.2 Xcode 8.3.3 Node v4.6.0 *Closing ticket.*