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 tvOS build #2654

Merged
merged 9 commits into from
Oct 26, 2023
Merged

Fix tvOS build #2654

merged 9 commits into from
Oct 26, 2023

Conversation

m-bert
Copy link
Contributor

@m-bert m-bert commented Oct 23, 2023

Description

tvOS apps are not building since release 2.13.0, because UIHoverGestureRecognizer used in Hover does not exist on tvOS. This PR changes #if inside RNHoverHandler in order to avoid using this recognizer on tvOS. It means that functions inside Hover can be treated as no-op

Fixes #2647

Test plan

Tested that tvOS example builds when used with Hover

@m-bert m-bert marked this pull request as ready for review October 24, 2023 08:35
@m-bert m-bert requested a review from j-piasecki October 24, 2023 08:35
@RuudBurger
Copy link

It doesn't build because of this line: https://github.com/software-mansion/react-native-gesture-handler/blob/main/ios/RNGestureHandlerButtonComponentView.mm#L49

Added

#if !TARGET_OS_TV
  _buttonView.exclusiveTouch = newProps.exclusive;
#endif

and then your branch builds.

@geroale
Copy link

geroale commented Oct 24, 2023

Looking forward for the merge

@m-bert
Copy link
Contributor Author

m-bert commented Oct 25, 2023

@RuudBurger I've added your suggested change, could you please check if now this PR works?

@m-bert m-bert merged commit c46c158 into main Oct 26, 2023
@m-bert m-bert deleted the @mbert/fix-tv-os branch October 26, 2023 09:58
renovate bot referenced this pull request in valora-inc/wallet Jan 7, 2024
…4711)

[![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-gesture-handler](https://togithub.com/software-mansion/react-native-gesture-handler)
| [`^2.13.4` ->
`^2.14.0`](https://renovatebot.com/diffs/npm/react-native-gesture-handler/2.13.4/2.14.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-native-gesture-handler/2.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-native-gesture-handler/2.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-native-gesture-handler/2.13.4/2.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-native-gesture-handler/2.13.4/2.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>software-mansion/react-native-gesture-handler
(react-native-gesture-handler)</summary>

###
[`v2.14.0`](https://togithub.com/software-mansion/react-native-gesture-handler/releases/tag/2.14.0)

[Compare
Source](https://togithub.com/software-mansion/react-native-gesture-handler/compare/2.13.4...2.14.0)

#### ❗ Important changes

- Remove Gesture Handler limits on Android by
[@&#8203;m-bert](https://togithub.com/m-bert) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2672](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2672)
- Add a new gesture relation - `blocksHandlers` - working like `reversed
waitFor` by [@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2627](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2627)
- Support React Native 0.73 by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2671](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2671)

#### 🐛 Bug fixes

- Fix double `onPress` by [@&#8203;m-bert](https://togithub.com/m-bert)
in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2657](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2657)
- Fix tvOS build by [@&#8203;m-bert](https://togithub.com/m-bert) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2654](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2654)
- Add a non-null assertion for
`reactApplicationContext.javaScriptContextHolder` by
[@&#8203;UNIDY2002](https://togithub.com/UNIDY2002) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2662](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2662)
- Move REACT_NATIVE_VERSION to native-only code by
[@&#8203;chriscoomber](https://togithub.com/chriscoomber) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2666](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2666)
- Fix selection when TalkBack is enabled by
[@&#8203;m-bert](https://togithub.com/m-bert) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2669](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2669)
- Fix inputs focus on safari by
[@&#8203;m-bert](https://togithub.com/m-bert) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2675](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2675)

#### 🔢 Miscellaneous

- Bump browserify-sign from 4.2.1 to 4.2.2 in /example by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2661](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2661)
- Change Alert to console.log in new docs by
[@&#8203;m-bert](https://togithub.com/m-bert) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2670](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2670)
- Remove `handlersToCancel` on web. by
[@&#8203;m-bert](https://togithub.com/m-bert) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2679](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2679)

#### New Contributors

- [@&#8203;chriscoomber](https://togithub.com/chriscoomber) made their
first contribution in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2666](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2666)

**Full Changelog**:
software-mansion/react-native-gesture-handler@2.13.4...2.14.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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/valora-inc/wallet).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: valora-bot <[email protected]>
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.

v2.13+ not building on tvOS
4 participants