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

Improvement/ Minor Android code improvement in MediaPlaybackService #330

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

kot331107
Copy link
Contributor

As #325 is still unconfirmed I'd like to push this minor code improvement.

Tested in Android app for about last two weeks.

@tvanlaerhoven
Copy link
Member

@kot331107 I remember now we had this shorthand code before; there is a compatibility issue with apps targeting API 33 and lower though:

ServiceCompat.startForeground was added in core-ktx 1.12 (), which requires target SDK 34.
Although 34 will soon be required for store submissions, we see some customers are still targeting 33.

So maybe let's wait a bit before upgrading to 34 and core-ktx 1.12?

@tvanlaerhoven tvanlaerhoven self-requested a review August 6, 2024 10:10
@kot331107
Copy link
Contributor Author

So maybe let's wait a bit before upgrading to 34 and core-ktx 1.12?

@tvanlaerhoven I'm down, you're correct 👍

…er into minor-Android-code-improvement

# Conflicts:
#	android/src/main/java/com/theoplayer/media/MediaPlaybackService.kt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants