File tree 3 files changed +3
-5
lines changed
src/main/java/com/github/awxkee/avifcoil
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ repositories {
32
32
```
33
33
34
34
``` groovy
35
- implementation 'com.github.awxkee:avif-coder:1.0.21 ' // or any version above picker from release tags
35
+ implementation 'com.github.awxkee:avif-coder:1.0.23 ' // or any version above picker from release tags
36
36
```
37
37
38
38
# Also supports coil integration
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ afterEvaluate {
17
17
create<MavenPublication >(" mavenJava" ) {
18
18
groupId = " com.github.awxkee"
19
19
artifactId = " avif-coder-coil"
20
- version = " 1.0.20 "
20
+ version = " 1.0.23 "
21
21
from(components.findByName(" release" ))
22
22
artifact(" androidSourcesJar" )
23
23
}
Original file line number Diff line number Diff line change @@ -8,9 +8,7 @@ import android.graphics.drawable.BitmapDrawable
8
8
import android.util.Size
9
9
import coil.ImageLoader
10
10
import coil.decode.DecodeResult
11
- import coil.decode.DecodeUtils
12
11
import coil.decode.Decoder
13
- import coil.decode.isHeif
14
12
import coil.fetch.SourceResult
15
13
import coil.request.Options
16
14
import coil.size.Scale
@@ -115,7 +113,7 @@ class HeifDecoder(
115
113
result : SourceResult ,
116
114
options : Options ,
117
115
imageLoader : ImageLoader
118
- ) = if (DecodeUtils .isHeif(result.source.source())) {
116
+ ) = if (HeifCoder () .isHeif(result.source.source().readByteArray ())) {
119
117
HeifDecoder (result, options, imageLoader)
120
118
} else null
121
119
}
You can’t perform that action at this time.
0 commit comments