Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26201] TiAPI: Remove all deprecated API's (<= SDK 7.0)

GitHub Issuen/a
TypeStory
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2019-12-16T19:34:43.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.0.0
ComponentsAndroid, iOS
Labelsn/a
ReporterYordan Banev
AssigneeChristopher Williams
Created2018-07-11T14:11:25.000+0000
Updated2020-02-12T15:13:53.000+0000

Description

There are many API's (321 in total) that are currently deprecated in the SDK. All API's that have been deprecated before 5.x (e.g. 3.2, 4.0 etc) should go away these days. Some major examples: - Titanium.Android.Calendar -> Ti.Calendar (since 3.2.0) - PENDING_INTENT_FOR_* (since 2.0.0) - Android geolocation legacy mode (since 2.0.0) - Ti.Network.SOCKET_* (since 1.7.0) We could likely save a good amount of compile time for both docs-gen and the SDK itself by removing this. (Edit by Hans: Renamed the ticket to handle all deprecations, not just Ti.Calendar.Event).

Comments

  1. Hans Knöchel 2018-07-11

    [~cwilliams] Are you okay with removing them all together? Any design thoughts on the upper limit of removal? Everything < SDK 5.0? Or <= SDK 5.0?
  2. Ewan Harris 2018-07-11

    Apologies for butting in, but I think we're fine to remove anything that's been deprecated since before the last major (so 7.0 for 8.0) based off https://docs.appcelerator.com/platform/latest/#!/guide/Axway_Appcelerator_Deprecation_Policy ?
  3. Hans Knöchel 2018-07-12

    If everyone agrees on that, sure! I'd love to rip it all out.
  4. Hans Knöchel 2018-07-25

    Ready for review. [~kiguchi] Do we have Windows API's that have been deprecated in <= 7.0.0? Then we should clone this for Windows and clean up there as well.
  5. Kota Iguchi 2018-07-25

    Thanks for heads up, created TIMOB-26236 to track this for Windows.
  6. Christopher Williams 2019-12-16

    This was kind of an ongoing effort across multiple PRs: - https://github.com/appcelerator/titanium_mobile/pull/11368 - https://github.com/appcelerator/titanium_mobile/pull/11386 - https://github.com/appcelerator/titanium_mobile/pull/11362 The individual PRs list the removals and updated the docs. I likely will not get absolutely every pre-7.0.0 API done in time for 9.0.0 release. But I've whittled it down considerably.
  7. Christopher Williams 2019-12-16

    Note also that I created a package.json script to report the APIs that have been long-deprecated but not yet marked removed: https://github.com/appcelerator/titanium_mobile/pull/11366 So gathering the future listings of what to double-check and remove should be easier.
  8. Samir Mohammed 2020-02-12

    Closing ticket, verified code changes in SDK version 9.0.0.v20200211122336.

JSON Source