diff --git a/build.gradle b/build.gradle index 4efc664f..7c85d621 100644 --- a/build.gradle +++ b/build.gradle @@ -16,14 +16,14 @@ buildscript { moshiVersion = "1.12.0" okHttpVersion = "4.9.1" ktorVersion = "1.6.5" - coilVersion = "1.4.0" + coilVersion = "2.0.0-alpha06" } repositories { google() mavenCentral() } dependencies { - classpath "com.android.tools.build:gradle:7.0.3" + classpath "com.android.tools.build:gradle:7.0.4" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30" } } @@ -66,4 +66,4 @@ publishing { } } } -} \ No newline at end of file +} diff --git a/internal-core/src/main/java/com/pandulapeter/beagle/core/BeagleImplementation.kt b/internal-core/src/main/java/com/pandulapeter/beagle/core/BeagleImplementation.kt index bb85b16b..89a903eb 100644 --- a/internal-core/src/main/java/com/pandulapeter/beagle/core/BeagleImplementation.kt +++ b/internal-core/src/main/java/com/pandulapeter/beagle/core/BeagleImplementation.kt @@ -10,7 +10,7 @@ import androidx.fragment.app.FragmentActivity import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleOwner import coil.ImageLoader -import coil.fetch.VideoFrameFileFetcher +import coil.decode.VideoFrameDecoder import com.pandulapeter.beagle.BeagleCore import com.pandulapeter.beagle.common.configuration.Appearance import com.pandulapeter.beagle.common.configuration.Behavior @@ -118,8 +118,8 @@ class BeagleImplementation(val uiManager: UiManagerContract) : BeagleContract { behavior.logBehavior.loggers.forEach { it.register(::log, ::clearLogEntries) } behavior.networkLogBehavior.networkLoggers.forEach { it.register(::logNetworkEvent, ::clearNetworkLogEntries) } videoThumbnailLoader = ImageLoader.Builder(application) - .componentRegistry { - add(VideoFrameFileFetcher(application)) + .components { + add(VideoFrameDecoder.Factory()) } .build() } @@ -478,4 +478,4 @@ class BeagleImplementation(val uiManager: UiManagerContract) : BeagleContract { fun hideKeyboard() = currentActivity?.currentFocus?.hideKeyboard() ?: Unit internal fun setupRecyclerView(recyclerView: GestureBlockingRecyclerView) = listManager.setupRecyclerView(recyclerView) -} \ No newline at end of file +}