diff --git a/gradle.properties b/gradle.properties index f1d917fe5..43ec80927 100644 --- a/gradle.properties +++ b/gradle.properties @@ -49,3 +49,5 @@ detekt.use.worker.api=true # https://kotlinlang.org/docs/dokka-migration.html#migrate-your-project org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true +org.jetbrains.dokka.experimental.tryK2=true +org.jetbrains.dokka.experimental.tryK2.nowarn=true diff --git a/pillarbox-player/src/main/java/ch/srgssr/pillarbox/player/session/PillarboxMediaLibrarySession.kt b/pillarbox-player/src/main/java/ch/srgssr/pillarbox/player/session/PillarboxMediaLibrarySession.kt index 2081f1fe9..8b98582e1 100644 --- a/pillarbox-player/src/main/java/ch/srgssr/pillarbox/player/session/PillarboxMediaLibrarySession.kt +++ b/pillarbox-player/src/main/java/ch/srgssr/pillarbox/player/session/PillarboxMediaLibrarySession.kt @@ -7,13 +7,13 @@ package ch.srgssr.pillarbox.player.session import android.app.PendingIntent import androidx.annotation.IntRange import androidx.media3.common.MediaItem +import androidx.media3.common.MediaMetadata import androidx.media3.session.LibraryResult import androidx.media3.session.MediaLibraryService import androidx.media3.session.MediaLibraryService.MediaLibrarySession import androidx.media3.session.MediaSession import androidx.media3.session.SessionError import ch.srgssr.pillarbox.player.PillarboxPlayer -import ch.srgssr.pillarbox.player.session.PillarboxMediaLibrarySession.Builder import ch.srgssr.pillarbox.player.utils.PendingIntentUtils import com.google.common.collect.ImmutableList import com.google.common.util.concurrent.Futures @@ -21,8 +21,7 @@ import com.google.common.util.concurrent.ListenableFuture /** * An extended [PillarboxMediaSession] for the [PillarboxMediaLibraryService]. - * Build an instance with [Builder] and return it from [PillarboxMediaLibraryService.onGetPillarboxSession] - * or [PillarboxMediaLibraryService.onGetSession] with [PillarboxMediaLibrarySession.mediaSession]. + * Build an instance with [Builder] and return it from [PillarboxMediaLibraryService.onGetSession] with [PillarboxMediaLibrarySession.mediaSession]. * * @see MediaLibrarySession * @see PillarboxMediaLibraryService