Skip to content

Commit

Permalink
Upgraded to 2.0.9, upgraded coil
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Nov 16, 2024
1 parent 7a6a6d8 commit 1ab6b2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions avifcoillibrary/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ afterEvaluate {
create<MavenPublication>("mavenJava") {
groupId = "com.github.awxkee"
artifactId = "avif-coder-coil"
version = "2.0.8"
version = "2.0.9"
from(components.findByName("release"))
// artifact("androidSourcesJar")
}
Expand Down Expand Up @@ -63,6 +63,6 @@ dependencies {
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
api("io.coil-kt.coil3:coil:3.0.2")
api("com.github.awxkee:avif-coder:2.0.8")
api("io.coil-kt.coil3:coil:3.0.3")
api("com.github.awxkee:avif-coder:2.0.9")
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ public class AnimatedAvifDecoder(
),
preheatFrames = preheatFrames,
firstFrameAsPlaceholder = true
).apply {
setBounds(0, 0, dstWidth, dstHeight)
}
)
} else {
BitmapDrawable(
options.context.resources,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,11 @@ public class AnimatedDrawable(
}

override fun getIntrinsicHeight(): Int {
return bounds.height()
return frameStore.height
}

override fun getIntrinsicWidth(): Int {
return bounds.width()
return frameStore.width
}

override fun setColorFilter(colorFilter: ColorFilter?) {
Expand Down

0 comments on commit 1ab6b2e

Please sign in to comment.