Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbel committed May 25, 2024
1 parent e26629a commit 3199b54
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 5 additions & 1 deletion core/ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ kotlin {
sourceSets {
commonMain.dependencies {
implementation(project(":core:persistence"))
implementation(libs.bundles.coil.common)
/*implementation(libs.bundles.coil.common)*/
implementation(libs.bundles.constraintlayout.common)
implementation(compose.components.resources)
implementation(compose.foundation)
Expand Down Expand Up @@ -57,6 +57,10 @@ android {
compileSdk = libs.versions.compile.sdk.get().toInt()
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

compileOptions {
sourceCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
targetCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

package org.michaelbel.movies.ui.compose

/*import coil3.compose.AsyncImage
import coil3.compose.LocalPlatformContext
import coil3.request.ImageRequest
import coil3.request.crossfade*/
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
Expand All @@ -11,19 +15,11 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.dp
import coil3.compose.AsyncImage
import coil3.compose.LocalPlatformContext
import coil3.request.ImageRequest
import coil3.request.crossfade
import org.jetbrains.compose.resources.ExperimentalResourceApi
import org.jetbrains.compose.resources.stringResource
import org.michaelbel.movies.persistence.database.entity.pojo.AccountPojo
import org.michaelbel.movies.persistence.database.ktx.letters
import org.michaelbel.movies.ui.accessibility.MoviesContentDescriptionCommon
import org.michaelbel.movies.ui.ktx.lettersTextFontSizeSmall
import org.michaelbel.movies.ui.theme.MoviesTheme

Expand All @@ -33,16 +29,16 @@ fun AccountAvatar(
fontSize: TextUnit,
modifier: Modifier
) {
if (account.avatarUrl.isNotEmpty()) {
AsyncImage(
if (account.avatarUrl.isNotEmpty() || false) {
/*AsyncImage(
model = ImageRequest.Builder(LocalPlatformContext.current)
.data(account.avatarUrl)
.crossfade(true)
.build(),
contentDescription = stringResource(MoviesContentDescriptionCommon.AccountAvatarImage),
modifier = modifier.clip(CircleShape),
contentScale = ContentScale.Crop
)
)*/
} else {
Box(
modifier = modifier.border(
Expand Down

0 comments on commit 3199b54

Please sign in to comment.