Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
use coil 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nachtien committed Jan 3, 2022
1 parent 65d9f2d commit f89d53d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down Expand Up @@ -66,4 +66,4 @@ publishing {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
}
Expand Down Expand Up @@ -478,4 +478,4 @@ class BeagleImplementation(val uiManager: UiManagerContract) : BeagleContract {
fun hideKeyboard() = currentActivity?.currentFocus?.hideKeyboard() ?: Unit

internal fun setupRecyclerView(recyclerView: GestureBlockingRecyclerView) = listManager.setupRecyclerView(recyclerView)
}
}

0 comments on commit f89d53d

Please sign in to comment.