audio_session icon indicating copy to clipboard operation
audio_session copied to clipboard

please upgrade media2-session to 1.3.0

Open gubaojian opened this issue 1 year ago • 2 comments

[Processor] Library '/Users/efurture/.gradle/caches/modules-2/files-2.1/androidx.media2/media2-session/1.2.1/f927563711e36371c19b2e86fb7ccf1c3f259ca4/media2-session-1.2.1.aar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.

gubaojian avatar Jul 01 '24 09:07 gubaojian

Media2 is fully deprecated, it would have to be migrated to Media3

Version 1.3 Version 1.3.0

January 10, 2024

androidx.media2:media2-*:1.3.0 is released. Version 1.3.0 contains these commits.

Important changes since 1.2.0

androidx.media2 is now fully deprecated. Use androidx.media3 instead.

under3415 avatar Aug 03 '24 22:08 under3415

Migration to media3 is a larger project which will need to be coordinated with audio_service, but certainly before then there should be an audio_session release supporting media2-session-1.3.0 so it has a pub history apps can point to if necessary.

ryanheise avatar Aug 04 '24 01:08 ryanheise

I don't think Media3 actually provides compat wrappers that audio_session uses. According to:

https://stackoverflow.com/a/66410738/13949389

it seems that we should be using androidx.media over androidx.media2 it has wider compatibility and media2 was deprecated while media was not.

P.S. The reason for pinning this to media2-session 1.2.1 was because it supported a lower minSdk, but that is probably no longer relevant today.

ryanheise avatar Dec 14 '24 03:12 ryanheise

The latest release of audio-session now uses the latest androidx.media rather than media2.

ryanheise avatar Dec 14 '24 07:12 ryanheise