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

fix(ios): replace UIGraphicsBeginImageContext in Compression.m #2055

Merged
merged 1 commit into from
May 4, 2024

Conversation

remarkablemark
Copy link
Contributor

Fixes #2054

UIGraphicsBeginImageContext() is deprecated in iOS 17 and when the width or height is 0, it throws an exception.

The solution is to replace it with UIGraphicsImageRenderer.

See blog post.

@ivpusic ivpusic merged commit b8084fd into ivpusic:master May 4, 2024
github-merge-queue bot referenced this pull request in valora-inc/wallet Jul 23, 2024
#5607)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[react-native-image-crop-picker](https://togithub.com/ivpusic/react-native-image-crop-picker)
| [`^0.40.3` ->
`^0.41.2`](https://renovatebot.com/diffs/npm/react-native-image-crop-picker/0.40.3/0.41.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-native-image-crop-picker/0.41.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-native-image-crop-picker/0.41.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-native-image-crop-picker/0.40.3/0.41.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-native-image-crop-picker/0.40.3/0.41.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>ivpusic/react-native-image-crop-picker
(react-native-image-crop-picker)</summary>

###
[`v0.41.2`](https://togithub.com/ivpusic/react-native-image-crop-picker/releases/tag/v0.41.2)

[Compare
Source](https://togithub.com/ivpusic/react-native-image-crop-picker/compare/v0.41.1...v0.41.2)

#### What's Changed

- Fixes an issue that would cause the compiler to crash in Xcode 16
beta1 by [@&#8203;isnine](https://togithub.com/isnine) in
[https://github.com/ivpusic/react-native-image-crop-picker/pull/2068](https://togithub.com/ivpusic/react-native-image-crop-picker/pull/2068)

#### New Contributors

- [@&#8203;isnine](https://togithub.com/isnine) made their first
contribution in
[https://github.com/ivpusic/react-native-image-crop-picker/pull/2068](https://togithub.com/ivpusic/react-native-image-crop-picker/pull/2068)

**Full Changelog**:
ivpusic/react-native-image-crop-picker@v0.41.1...v0.41.2

###
[`v0.41.1`](https://togithub.com/ivpusic/react-native-image-crop-picker/releases/tag/v0.41.1)

[Compare
Source](https://togithub.com/ivpusic/react-native-image-crop-picker/compare/v0.41.0...v0.41.1)

#### What's Changed

- URGENT: Updated RNImageCropPicker.podspec by
[@&#8203;ShivamKJJW](https://togithub.com/ShivamKJJW) in
[https://github.com/ivpusic/react-native-image-crop-picker/pull/2056](https://togithub.com/ivpusic/react-native-image-crop-picker/pull/2056)

#### New Contributors

- [@&#8203;ShivamKJJW](https://togithub.com/ShivamKJJW) made their first
contribution in
[https://github.com/ivpusic/react-native-image-crop-picker/pull/2056](https://togithub.com/ivpusic/react-native-image-crop-picker/pull/2056)

**Full Changelog**:
ivpusic/react-native-image-crop-picker@v0.41.0...v0.41.1

###
[`v0.41.0`](https://togithub.com/ivpusic/react-native-image-crop-picker/releases/tag/v0.41.0)

[Compare
Source](https://togithub.com/ivpusic/react-native-image-crop-picker/compare/v0.40.3...v0.41.0)

#### What's Changed

- fix(ios): replace `UIGraphicsBeginImageContext` in Compression.m by
[@&#8203;remarkablemark](https://togithub.com/remarkablemark) in
[https://github.com/ivpusic/react-native-image-crop-picker/pull/2055](https://togithub.com/ivpusic/react-native-image-crop-picker/pull/2055)
- Add Privacy manifest by [@&#8203;ujeon](https://togithub.com/ujeon) in
[https://github.com/ivpusic/react-native-image-crop-picker/pull/2045](https://togithub.com/ivpusic/react-native-image-crop-picker/pull/2045)
- add Dutch (nl) as a translation for iOS by
[@&#8203;HostenMarijn](https://togithub.com/HostenMarijn) in
[https://github.com/ivpusic/react-native-image-crop-picker/pull/1918](https://togithub.com/ivpusic/react-native-image-crop-picker/pull/1918)

#### New Contributors

- [@&#8203;remarkablemark](https://togithub.com/remarkablemark) made
their first contribution in
[https://github.com/ivpusic/react-native-image-crop-picker/pull/2055](https://togithub.com/ivpusic/react-native-image-crop-picker/pull/2055)
- [@&#8203;ujeon](https://togithub.com/ujeon) made their first
contribution in
[https://github.com/ivpusic/react-native-image-crop-picker/pull/2045](https://togithub.com/ivpusic/react-native-image-crop-picker/pull/2045)
- [@&#8203;HostenMarijn](https://togithub.com/HostenMarijn) made their
first contribution in
[https://github.com/ivpusic/react-native-image-crop-picker/pull/1918](https://togithub.com/ivpusic/react-native-image-crop-picker/pull/1918)

**Full Changelog**:
ivpusic/react-native-image-crop-picker@v0.40.3...v0.41.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 5pm,every weekend" in timezone
America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone
America/Los_Angeles.

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/valora-inc/wallet).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJucG0iLCJyZW5vdmF0ZSJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Satish Ravi <satish.ravi@valoraapp.com>
@wrldh
Copy link

wrldh commented Oct 10, 2024

This PR has actually introduced a bug #2074 into the library.

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.

UIGraphicsBeginImageContext() failed to allocate CGBitampContext
3 participants