Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/replace deprecations in app module #3661

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

jpelgrom
Copy link
Member

Summary

Update a lot of code marked as deprecated in the app module to the new, non-deprecated alternative. and/or update annotation to ignore. This should clean up the number of warnings during a build.

Did a quick test of functionality on an up-to-date Android 13 device and an older version, everything appears to work as expected.

Two major deprecations are not handled in this PR as it is already quite large:

  • ExoPlayer 2 -> androidx.media3
  • onCreateOptionsMenu/onPrepareOptionsMenu/onOptionsItemSelected -> MenuProvider

Screenshots

n/a

Link to pull request in Documentation repository

n/a

Any other notes

Copy link
Member

@dshokouhi dshokouhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats a lot of deprecations! Thank you!

@jpelgrom
Copy link
Member Author

And it's not even all of them 😄

@JBassett JBassett merged commit bc10363 into home-assistant:master Jul 17, 2023
4 checks passed
@jpelgrom jpelgrom deleted the lint-deprecated branch July 17, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants