File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
app/src/main/java/com/awxkee/avif/coil Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import coil3.load
1010import coil3.request.bitmapConfig
1111import coil3.util.DebugLogger
1212import com.awxkee.avif.coil.databinding.ActivityMainBinding
13- import com.github.awxkee.avifcoil.decoder.animation.AnimatedAvifDecoder
13+ import com.github.awxkee.avifcoil.decoder.HeifDecoder
1414
1515class MainActivity : AppCompatActivity () {
1616
@@ -23,14 +23,14 @@ class MainActivity : AppCompatActivity() {
2323
2424 if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .TIRAMISU ) {
2525 binding.imageView.load(
26- data = " file:///android_asset/output .avif" .toUri(),
26+ data = " file:///android_asset/test_alpha .avif" .toUri(),
2727 imageLoader = imageLoader
2828 .newBuilder()
2929 .logger(DebugLogger ())
3030 .components {
31- add(AnimatedAvifDecoder .Factory (preheatFrames = 10 ))
31+ add(HeifDecoder .Factory ())
3232 }
33- .bitmapConfig(Bitmap .Config .ARGB_8888 )
33+ .bitmapConfig(Bitmap .Config .RGBA_1010102 )
3434 .build()
3535 )
3636 }
Original file line number Diff line number Diff line change @@ -64,5 +64,5 @@ dependencies {
6464 androidTestImplementation(" androidx.test.ext:junit:1.1.5" )
6565 androidTestImplementation(" androidx.test.espresso:espresso-core:3.5.1" )
6666 api(" io.coil-kt.coil3:coil:3.0.3" )
67- api(" com.github.awxkee:avif-coder:2.0.10 " )
67+ api(" com.github.awxkee:avif-coder:2.1.0 " )
6868}
Original file line number Diff line number Diff line change 11// Top-level build file where you can add configuration options common to all sub-projects/modules.
22plugins {
3- id(" com.android.application" ) version " 8.7.2 " apply false
3+ id(" com.android.application" ) version " 8.7.3 " apply false
44 id(" org.jetbrains.kotlin.android" ) version " 1.9.0" apply false
55}
Original file line number Diff line number Diff line change 11# Sun Sep 17 23:53:38 MYT 2023
22distributionBase =GRADLE_USER_HOME
33distributionPath =wrapper/dists
4- distributionUrl =https\://services.gradle.org/distributions/gradle-8.9 -bin.zip
4+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.10.2 -bin.zip
55zipStoreBase =GRADLE_USER_HOME
66zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments