Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Picasso#rememberPainter extension function under new :picasso-compose module #2295

Merged
merged 1 commit into from
May 25, 2022

Conversation

gamepro65
Copy link
Collaborator

Introduces a new :picasso-compose module which exposes a Picasso#rememberPainter function for use with Compose UI. To achieve this Picasso exposes a new .into(DrawableTarget) that way we can provide a PicassoDrawable to the Painter which will keep the API consistent with how we load .into(ImageView).

picasso-compose-ui.mp4

Copy link
Collaborator

@jrodbx jrodbx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@@ -0,0 +1,4 @@
POM_ARTIFACT_ID=picasso-compose
POM_NAME=Picasso Compose
POM_DESCRIPTION=A Compose UI plugin for Picasso.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
POM_DESCRIPTION=A Compose UI plugin for Picasso.
POM_DESCRIPTION=Compose UI support for Picasso.

build.gradle Outdated
@@ -28,6 +28,11 @@ buildscript {
truth: 'com.google.truth:truth:1.1.3',
robolectric: 'org.robolectric:robolectric:4.6.1',
mockito: 'org.mockito:mockito-core:3.0.0',
appCompat: 'androidx.appcompat:appcompat:1.3.1',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

build.gradle Outdated
appCompat: 'androidx.appcompat:appcompat:1.3.1',
drawablePainter: 'com.google.accompanist:accompanist-drawablepainter:0.19.0',
composeUi: 'androidx.compose.ui:ui:1.1.1',
composeUiTooling: 'androidx.compose.ui:ui-tooling:1.1.1',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

@gamepro65 gamepro65 marked this pull request as ready for review May 25, 2022 20:38
@gamepro65 gamepro65 merged commit 2df8d85 into master May 25, 2022
@gamepro65 gamepro65 deleted the cdrury/composeUI branch May 25, 2022 20:55
@arriolac
Copy link
Contributor

arriolac commented Jun 9, 2022

Thanks for providing this—this is great! Is there an issue we can follow to see when the picasso-compose artifact will be available on Maven?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants