Skip to content

Conversation

ahmedfolly
Copy link

Using functional programming in the initWithUrl function handles the states of downloading pdf easily, and makes the code of this function easy to understand.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for contributing to this project. This is your first pull request and we are so glad to have you onboard. We will review the request and get back to you soon. We love your contributions! Join our Discord community here to discuss this PR or ask questions.

@@ -102,6 +103,46 @@ class PdfRendererView @JvmOverloads constructor(
})
}

fun proWithUrl(
Copy link
Owner

Choose a reason for hiding this comment

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

What is proWithUrl? Mind adding comments and improve naming.

Copy link
Author

Choose a reason for hiding this comment

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

Updated version of initWithUrl fun.
Just pass to it function types as a @param.

Copy link
Owner

Choose a reason for hiding this comment

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

I am still confused with the naming.

@afreakyelf
Copy link
Owner

Hi, would you mind cleaning up your PR and rebasing please. Thank you!

@ahmedfolly
Copy link
Author

ahmedfolly commented Apr 20, 2025 via email

@afreakyelf
Copy link
Owner

Please remove .idea from your committed changes as well.

@ahmedfolly
Copy link
Author

ahmedfolly commented Apr 21, 2025 via email

@afreakyelf
Copy link
Owner

afreakyelf commented Apr 22, 2025

Hey @ahmedfolly, I still see .idea files and conflicts in your commit. Can you please exclude them and resolve them? Thank you!

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

Successfully merging this pull request may close these issues.

2 participants