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 Additional Image MIME Types, Dynamic Per OS #434

Merged
merged 17 commits into from
Apr 3, 2021
Merged

Conversation

jshier
Copy link
Contributor

@jshier jshier commented Nov 16, 2020

Issue Link πŸ”—

#428 #47

Goals ⚽

This PR updates our default MIME types to be properly dynamic by OS version. It also adds support for JPEG2000 on all OSes, HEIC and HEIF on 2017 OSes, and WebP on macOS 11 and iOS 14 (doesn't seem to work on tvOS 14).

Implementation Details 🚧

Simply constructs the default accept types dynamically.

Testing Details πŸ”

Tests updated for additional MIME types and image type support.

@maciej-letgo
Copy link

Do you have any plans on continuing work on this PR?

@jshier
Copy link
Contributor Author

jshier commented Mar 30, 2021

@maciej-letgo Yes, it just needs test updates. I just need to be less busy to finish it up.

@jshier jshier merged commit e9a13dd into master Apr 3, 2021
@jshier jshier deleted the dynamic-image-types branch April 3, 2021 20:49
@jshier jshier added this to the 4.2.0 milestone Apr 4, 2021
ryndinol pushed a commit to ryndinol/AlamofireImage that referenced this pull request Apr 26, 2021
* Update project for Xcode 12.

* Fix Carthage usage.

* Update formatting.

* Make default MIME types dynamic for OS versions.

* Update GitHub CI.

* Update iOS tests, formatting.

* Disable WebP on tvOS.

* Add newline.

* Fix test for lower os versions.

* Conditionalize WebP test.

* Use Big Sur for macOS tests.

* Guard at runtime.

* Remove unnecessary availability.

* Update to Xcode 12.4.

* Update CI to 12.4.

* Fix tvOS version.

* Remove unnecessary guard.
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