Skip to content

Commit

Permalink
Merge pull request #200 from skydoves/update/baseline-profiles
Browse files Browse the repository at this point in the history
Update Baseline Profiles
  • Loading branch information
skydoves authored Nov 12, 2022
2 parents c4ecfa4 + ebbd5f3 commit e0b56b4
Show file tree
Hide file tree
Showing 5 changed files with 214 additions and 158 deletions.
3 changes: 2 additions & 1 deletion benchmark-landscapist-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ android {
dependencies {
implementation(project(":landscapist"))
implementation(project(":landscapist-animation"))
implementation(project(":landscapist-placeholder"))
implementation(project(":landscapist-palette"))
implementation(project(":landscapist-placeholder"))
implementation(project(":landscapist-transformation"))

implementation(project(":glide"))
implementation(project(":coil"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ import com.skydoves.landscapist.components.LocalImageComponent
fun CoilImageProfiles() {
CoilImage(
modifier = Modifier.size(120.dp),
imageModel = "https://user-images.githubusercontent.com/" +
"24237865/75087936-5c1d9f80-553e-11ea-81d3-a912634dd8f7.jpg",
imageModel = {
"https://user-images.githubusercontent.com/" +
"24237865/75087936-5c1d9f80-553e-11ea-81d3-a912634dd8f7.jpg"
},
component = LocalImageComponent.current
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ import com.skydoves.landscapist.glide.GlideImage
fun GlideImageProfiles() {
GlideImage(
modifier = Modifier.size(120.dp),
imageModel = "https://user-images.githubusercontent.com/" +
"24237865/75087936-5c1d9f80-553e-11ea-81d3-a912634dd8f7.jpg",
imageModel = {
"https://user-images.githubusercontent.com/" +
"24237865/75087936-5c1d9f80-553e-11ea-81d3-a912634dd8f7.jpg"
},
component = LocalImageComponent.current
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import com.skydoves.landscapist.components.imageComponent
import com.skydoves.landscapist.palette.PalettePlugin
import com.skydoves.landscapist.placeholder.placeholder.PlaceholderPlugin
import com.skydoves.landscapist.placeholder.shimmer.ShimmerPlugin
import com.skydoves.landscapist.transformation.blur.BlurTransformationPlugin

class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
Expand All @@ -42,6 +43,7 @@ class MainActivity : ComponentActivity() {
highlightColor = Color.Transparent
)
+CrossfadePlugin()
+BlurTransformationPlugin()
+PalettePlugin()
}

Expand Down
Loading

0 comments on commit e0b56b4

Please sign in to comment.