Skip to content

Commit

Permalink
version 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Bagnolati committed Jul 12, 2024
1 parent abf73f3 commit c0939d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Empty file.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
applicationId = "com.bagnolati.learnoflegends"

versionCode = 5
versionName = "1.2.1" // X.Y.Z; X = Major, Y = minor, Z = Patch level
versionCode = 6
versionName = "1.3.0" // X.Y.Z; X = Major, Y = minor, Z = Patch level

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.PreviewParameter
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import coil.compose.AsyncImage
import coil.request.ImageRequest
import com.bagnolati.learnoflegends.core.model.Item
import com.bagnolati.learnoflegends.core.ui.preview.ItemsPreviewParameterProvider
import com.bagnolati.learnoflegends.core.ui.preview.ThemePreviews
Expand Down Expand Up @@ -56,7 +58,11 @@ fun ItemCard(
AsyncImage(
modifier = Modifier
.fillMaxSize(),
model = item.image.full,
model =
ImageRequest.Builder(LocalContext.current)
.data(item.image.full)
.crossfade(true)
.build(),
contentDescription = null,
placeholder = painterResource(id = uiR.drawable.ic_default_placeholder),
contentScale = ContentScale.Crop
Expand Down

0 comments on commit c0939d4

Please sign in to comment.