Skip to content

Commit

Permalink
Merge pull request #216 from imashnake0/coil-3
Browse files Browse the repository at this point in the history
Upgrade to Coil 3
  • Loading branch information
imashnake0 authored Dec 28, 2024
2 parents 21a3238 + 20a28ad commit 8f958e2
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ dependencies {
implementation(libs.compose.ui.toolingPreview)

// Coil
implementation(libs.coil.compose)
implementation(libs.bundles.coil)

// Kotlin
implementation(libs.kotlin.coroutines.android)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ import androidx.compose.ui.viewinterop.AndroidView
import androidx.core.content.res.ResourcesCompat
import androidx.core.text.HtmlCompat
import androidx.hilt.navigation.compose.hiltViewModel
import coil.compose.AsyncImage
import coil.request.ImageRequest
import coil3.compose.AsyncImage
import coil3.request.ImageRequest
import coil3.request.crossfade
import com.imashnake.animite.R
import com.imashnake.animite.api.anilist.sanitize.media.Media
import com.imashnake.animite.core.Constants
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
implementation(libs.boswelja.composeMarkdown.material3)

// Coil
implementation(libs.coil.compose)
implementation(libs.bundles.coil)

// Kotlin
implementation(libs.kotlin.coroutines.android)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package com.imashnake.animite.core.extensions

import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
import coil.request.ImageRequest
import coil3.request.ImageRequest
import coil3.request.crossfade
import com.imashnake.animite.core.Constants

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.LayoutDirection
import androidx.compose.ui.unit.dp
import coil.compose.AsyncImage
import coil3.compose.AsyncImage
import com.imashnake.animite.core.R
import com.imashnake.animite.core.extensions.crossfadeModel
import com.imashnake.animite.core.extensions.landscapeCutoutPadding
Expand Down
10 changes: 8 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ datastore = "1.1.1"

# COIL
# https://github.com/coil-kt/coil/blob/main/CHANGELOG.md.
coil = "2.7.0"
coil = "3.0.4"

# Compose
# https://developer.android.com/jetpack/androidx/releases/compose.
Expand Down Expand Up @@ -110,7 +110,8 @@ compose-test-ui-testJunit4 = { group = "androidx.compose.ui", name = "ui-test-ju
apollo-runtime = { group = "com.apollographql.apollo3", name = "apollo-runtime" }
apollo-cache-memory = { group = "com.apollographql.apollo3", name = "apollo-normalized-cache", version.ref = "apollo" }
apollo-cache-sqlite = { group = "com.apollographql.apollo3", name = "apollo-normalized-cache-sqlite", version.ref = "apollo" }
coil-compose = { group = "io.coil-kt", name = "coil-compose", version.ref = "coil" }
coil-compose = { group = "io.coil-kt.coil3", name = "coil-compose", version.ref = "coil" }
coil-network = { group = "io.coil-kt.coil3", name = "coil-network-okhttp", version.ref = "coil" }
boswelja-composeMarkdown-material3 = { group = "io.github.boswelja.markdown", name = "material3", version.ref = "composeMarkdown" }
kotlin-coroutines-android = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "coroutines" }
kotlin-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "coroutines" }
Expand All @@ -132,3 +133,8 @@ compose = [
"compose-runtime",
"compose-ui",
]

coil = [
"coil-compose",
"coil-network"
]
2 changes: 1 addition & 1 deletion profile/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies {
implementation(libs.boswelja.composeMarkdown.material3)

// Coil
implementation(libs.coil.compose)
implementation(libs.bundles.coil)

// Kotlin
implementation(libs.kotlin.coroutines.android)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
import coil.compose.AsyncImage
import coil3.compose.AsyncImage
import com.boswelja.markdown.material3.MarkdownDocument
import com.boswelja.markdown.material3.m3TextStyles
import com.imashnake.animite.api.anilist.sanitize.profile.User
Expand Down

0 comments on commit 8f958e2

Please sign in to comment.