Skip to content

Remove obsolete @TargetApi annotations for Lollipop (API 21)#50686

Closed
mateoguzmana wants to merge 2 commits into
facebook:mainfrom
mateoguzmana:refactor/remove-obsolete-sdk-version-checks
Closed

Remove obsolete @TargetApi annotations for Lollipop (API 21)#50686
mateoguzmana wants to merge 2 commits into
facebook:mainfrom
mateoguzmana:refactor/remove-obsolete-sdk-version-checks

Conversation

@mateoguzmana
Copy link
Copy Markdown
Collaborator

@mateoguzmana mateoguzmana commented Apr 13, 2025

Summary:

Static code analysis detected obsolete SDK version checks.

Since the minimum supported SDK version is API 24, these checks for API 21 are no longer necessary and can be safely removed.

Changelog:

[INTERNAL] - Remove obsolete @TargetApi annotations for LOLLIPOP (API 21)

Test Plan:

yarn test-android
yarn android

CI should be green.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 13, 2025
@mateoguzmana mateoguzmana changed the title Remove obsolete @TargetApi annotations for LOLLIPOP Remove obsolete @TargetApi annotations for LOLLIPOP (API 21) Apr 13, 2025
@mateoguzmana mateoguzmana changed the title Remove obsolete @TargetApi annotations for LOLLIPOP (API 21) Remove obsolete @TargetApi annotations for LOLLIPOP (API 21) Apr 13, 2025
@mateoguzmana mateoguzmana marked this pull request as ready for review April 13, 2025 10:39
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Apr 13, 2025
@mateoguzmana mateoguzmana changed the title Remove obsolete @TargetApi annotations for LOLLIPOP (API 21) Remove obsolete @TargetApi annotations for Lollipop (API 21) Apr 13, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@rshest has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Apr 14, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@rshest merged this pull request in 6f2357a.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @mateoguzmana in 6f2357a

When will my fix make it into a release? | How to file a pick request?

uffoltzl pushed a commit to uffoltzl/react-native that referenced this pull request Apr 18, 2025
…ook#50686)

Summary:
Static code analysis detected obsolete SDK version checks.

Since [the minimum supported SDK version is API 24](react-native-community/discussions-and-proposals#802), these checks for API 21 are no longer necessary and can be safely removed.

## Changelog:

[INTERNAL] - Remove obsolete TargetApi annotations for LOLLIPOP (API 21)

Pull Request resolved: facebook#50686

Test Plan:
```sh
yarn test-android
yarn android
```

CI should be green.

Reviewed By: cortinico

Differential Revision: D72948073

Pulled By: rshest

fbshipit-source-id: 1dd1415364d19f115771de3643cdc023a247d851
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants