mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

Docs: * https://developer.android.com/build/publish-library/configure-pub-variants#single-pub-var * https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/dsl/PublishingOptions This resolves the following warning from Android Gradle Plugin 7.2.2 and helps unblock the upgrade to AGP 8.0.1: > Software Components will not be created automatically for Maven > publishing from Android Gradle Plugin 8.0. To opt-in to the future > behavior, set the Gradle property > `android.disableAutomaticComponentCreation=true` in the > `gradle.properties` file or use the new publishing DSL. > > Affected Modules: `lib-cast`, `lib-common`, `lib-container`, > `lib-database`, `lib-datasource`, `lib-datasource-cronet`, > `lib-datasource-okhttp`, `lib-datasource-rtmp`, `lib-decoder`, > `lib-effect`, `lib-exoplayer`, `lib-exoplayer-all (legacy)`, > `lib-exoplayer-dash`, `lib-exoplayer-hls`, `lib-exoplayer-ima`, > `lib-exoplayer-rtsp`, `lib-exoplayer-smoothstreaming`, > `lib-exoplayer-workmanager`, `lib-extractor`, `lib-media2 (legacy)`, > `lib-mediasession (legacy)`, `lib-muxer`, `lib-session`, > `lib-transformer`, `lib-ui`, `lib-ui-leanback`, `test-utils`, > `test-utils-robolectric` Issue: androidx/media#409 PiperOrigin-RevId: 533464133
UI module
Provides UI components for media playback.
Getting the module
The easiest way to use the module is to add it as a gradle dependency:
implementation 'androidx.media3:media3-ui:1.X.X'
where 1.X.X
is the version, which must match the version of the other media
modules being used.
Alternatively, you can clone this GitHub project and depend on the module locally. Instructions for doing this can be found in the top level README.