Skip to content

Commit

Permalink
212 upgrade coil to 260 (#213)
Browse files Browse the repository at this point in the history
* chore: remove unused code

* build: upgrade coil to 2.6.0

* chore: update example

* chore: update example
  • Loading branch information
duguyihou authored May 31, 2024
1 parent 8d01475 commit 715e04a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
implementation 'androidx.lifecycle:lifecycle-process:2.6.1'
implementation "io.coil-kt:coil:2.4.0"
implementation "io.coil-kt:coil-gif:2.4.0"
implementation "io.coil-kt:coil-video:2.4.0"
implementation "io.coil-kt:coil-svg:2.4.0"
implementation "io.coil-kt:coil:2.6.0"
implementation "io.coil-kt:coil-gif:2.6.0"
implementation "io.coil-kt:coil-video:2.6.0"
implementation "io.coil-kt:coil-svg:2.6.0"
implementation "com.github.Commit451.coil-transformations:transformations:2.0.2"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.turboimage

import android.os.Build.VERSION.SDK_INT
import android.widget.ImageView.ScaleType
import androidx.swiperefreshlayout.widget.CircularProgressDrawable
import coil.Coil.imageLoader
import coil.Coil.setImageLoader
import coil.ImageLoader
Expand Down
4 changes: 2 additions & 2 deletions example/src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const routesData = [
{ name: 'MemoryCache', destination: RouteName.MemoryCache },
{ name: 'UrlCache', destination: RouteName.UrlCache },
{ name: 'DataCache', destination: RouteName.DataCache },
{ name: 'Prefetch', destination: RouteName.Prefetch },
{ name: 'Prefetch (WIP)', destination: RouteName.Prefetch },
],
},
{
Expand All @@ -31,7 +31,7 @@ export const routesData = [
{
title: 'Other Formats',
data: [
{ name: 'SVG', destination: RouteName.SVG },
{ name: 'SVG (Experimental)', destination: RouteName.SVG },
{ name: 'Gif', destination: RouteName.Gif },
],
},
Expand Down
1 change: 1 addition & 0 deletions example/src/screens/TurboImageScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const TurboImageScreen = () => {
style={styles.card}
blurhash={item.blurhash}
resize={size}
cachePolicy="dataCache"
/>
);
};
Expand Down

0 comments on commit 715e04a

Please sign in to comment.