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 new allowConversionToBitmap flag, fixes #773 #775

Merged
merged 7 commits into from
Jun 11, 2021

Conversation

edenman
Copy link
Contributor

@edenman edenman commented Jun 10, 2021

This allows animated transformations and normal transformations to
coexist on the same request. If this flag is set to false:

  • A normal bitmap result will have normal transformations applied to it
  • An animated result will be left intact which allows
    animatedTransformations to apply.

This allows animated transformations and normal transformations to
coexist on the same request.  If this flag is set to false:

- A normal bitmap result will have normal transformations applied to it
- An animated result will be left intact which allows
  animatedTransformations to apply.
@edenman
Copy link
Contributor Author

edenman commented Jun 10, 2021

Wasn't sure how to re-generate coil-base/api/coil-base.api...tried assemble_docs.sh but that didn't do it

@colinrtwhite
Copy link
Member

Awesome, thanks for adding this! You'll need to run ./gradlew apiDump to updated the API file. Also you'll need to add a new @Deprecated(HIDDEN)-annotated constructor and copy function for Options to maintain binary compatibility (like this).

@edenman
Copy link
Contributor Author

edenman commented Jun 10, 2021

Updated, ptal

@colinrtwhite
Copy link
Member

@edenman Looks like there are just a couple minor ktlint warnings left.

@edenman
Copy link
Contributor Author

edenman commented Jun 11, 2021

Also had a test failure on api 19, fixed that and the ktlint stuff

Copy link
Member

@colinrtwhite colinrtwhite left a comment

Choose a reason for hiding this comment

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

@edenman Awesome, thanks for implementing this!

@colinrtwhite colinrtwhite merged commit 1c1897c into coil-kt:main Jun 11, 2021
colinrtwhite pushed a commit that referenced this pull request Oct 5, 2022
* Add new allowConversionToBitmap flag, fixes #773

This allows animated transformations and normal transformations to
coexist on the same request.  If this flag is set to false:

- A normal bitmap result will have normal transformations applied to it
- An animated result will be left intact which allows
  animatedTransformations to apply.

* Update api, add instructions to contributing.md

* Add binary compatibility copy method

* Add binary compatibility constructor too

* Move decoder to ImageLoader to fix tests on pre-28

* Fix ktlint errors

* Fix test failure on pre-21
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.

2 participants