From b6797719cc78c8fb625499f0451dba82d7b457e9 Mon Sep 17 00:00:00 2001 From: LuftVerbot <97435834+LuftVerbot@users.noreply.github.com> Date: Sat, 14 Sep 2024 13:49:40 +0200 Subject: [PATCH] Last changes --- app/build.gradle.kts | 4 ++-- .../dev/brahmkshatriya/echo/playback/ByteChannelDataSource.kt | 1 - common/build.gradle.kts | 2 +- .../java/dev/brahmkshatriya/echo/common/models/Streamable.kt | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f1e0418e..ae14f9f9 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -68,6 +68,8 @@ dependencies { implementation("androidx.media3:media3-exoplayer-dash:1.4.1") implementation("androidx.media3:media3-exoplayer-hls:1.4.1") + implementation("io.ktor:ktor-utils:2.3.0") + implementation("androidx.core:core-splashscreen:1.0.1") implementation("androidx.palette:palette-ktx:1.0.0") @@ -89,8 +91,6 @@ dependencies { implementation("com.github.Kyant0:taglib:1.0.0-alpha17") - implementation("io.ktor:ktor-utils:2.3.0") - //TODO : use fetch instead of download manager // implementation("com.github.tonyofrancis.Fetch:xfetch2:3.1.6") diff --git a/app/src/main/java/dev/brahmkshatriya/echo/playback/ByteChannelDataSource.kt b/app/src/main/java/dev/brahmkshatriya/echo/playback/ByteChannelDataSource.kt index a0dfcf8a..74bc8e5d 100644 --- a/app/src/main/java/dev/brahmkshatriya/echo/playback/ByteChannelDataSource.kt +++ b/app/src/main/java/dev/brahmkshatriya/echo/playback/ByteChannelDataSource.kt @@ -35,7 +35,6 @@ class ByteChannelDataSource : BaseDataSource(true) { val audio = dataSpec.customData as Streamable.Audio.Channel val requestedPosition = dataSpec.position - // Attempt to seek to the requested position channel = audio.channel this.audio = audio diff --git a/common/build.gradle.kts b/common/build.gradle.kts index 08f2e89e..dcd78589 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -16,7 +16,7 @@ kotlin { dependencies { api("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1") - implementation("io.ktor:ktor-utils:2.3.0") + api("io.ktor:ktor-utils:2.3.0") } publishing { diff --git a/common/src/main/java/dev/brahmkshatriya/echo/common/models/Streamable.kt b/common/src/main/java/dev/brahmkshatriya/echo/common/models/Streamable.kt index 6fd8eba8..eef8c3ad 100644 --- a/common/src/main/java/dev/brahmkshatriya/echo/common/models/Streamable.kt +++ b/common/src/main/java/dev/brahmkshatriya/echo/common/models/Streamable.kt @@ -1,7 +1,6 @@ package dev.brahmkshatriya.echo.common.models import dev.brahmkshatriya.echo.common.models.Request.Companion.toRequest -import io.ktor.utils.io.ByteChannel import io.ktor.utils.io.ByteReadChannel import kotlinx.serialization.Serializable import java.io.InputStream