wordpress-mobile / wordpress-mobile/WordPress-Android

Update deprecated functions of Intent and Bundle on Java files

Open
#18,066 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Task Tech Debt
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

The following functions were deprecated in Android 13:
Intent.getParcelableExtra()
Intent.getSerializableExtra()
Bundle.getParcelable()
Bundle.getParcelableArrayList()
Bundle.getSerializable()

These functions on Kotlin files have been updated using CompatExtensions functions but have not been updated for Java files. While these functions are not currently blockers, they should be updated when converting to Kotlin or if they become blockers in the future.

The issue was initiated by this comment.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate Java usages of the listed deprecated Intent and Bundle functions, then compare the Kotlin updates in pull request 18061 and its CompatExtensions usage. The work is done when the relevant Java calls use the compatible approach and the Android 13 deprecation warnings are addressed; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, kotlin
Domain
mobile-dev
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.