Skip to content

Add new allowConversionToBitmap flag, fixes #773#775

Merged
colinrtwhite merged 7 commits into
coil-kt:mainfrom
edenman:main
Jun 11, 2021
Merged

Add new allowConversionToBitmap flag, fixes #773#775
colinrtwhite merged 7 commits into
coil-kt:mainfrom
edenman:main

Conversation

@edenman
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

edenman commented Jun 10, 2021

Updated, ptal

Comment thread coil-base/src/main/java/coil/decode/Options.kt
Comment thread CONTRIBUTING.md
@colinrtwhite
Copy link
Copy Markdown
Member

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

@edenman
Copy link
Copy Markdown
Contributor Author

edenman commented Jun 11, 2021

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

Copy link
Copy Markdown
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