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, 5g): do not use 5g symbols until iOS14.1 #525

Merged

Conversation

mikehardy
Copy link
Contributor

Overview

While I was working in the module I saw the warning that we were touching symbols only available on iOS14.1 with no guard, that will crash on older iOS

Test Plan

Ask for testers from #436 and #417

@mikehardy mikehardy added the pending merge A PR that will be merged shortly, waiting for CI or final comment label Nov 17, 2021
@mikehardy
Copy link
Contributor Author

Hey @marcoskoch / @furlanrapha / @luisnaranjo733 / @MateusAndrade - you were all interested in 5G symbols in react-native-netinfo - could someone give this a look? I think we'll have crashes on iOS < 14.1 without this availability check, according to the docs and Xcode's warnings. Does it look right?

If I don't hear from anyone I'll merge it in a day or so. Cheers!

Copy link

@furlanrapha furlanrapha left a comment

Choose a reason for hiding this comment

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

Look's good to me.

ios/RNCConnectionState.m Outdated Show resolved Hide resolved
verified with previous code that the conditional logic terminated with the previous else prior,
this one was added by the Xcode available guard refactor but is not needed
@mikehardy mikehardy removed awaiting info pending merge A PR that will be merged shortly, waiting for CI or final comment labels Nov 17, 2021
@mikehardy mikehardy merged commit 932cd83 into react-native-netinfo:master Nov 17, 2021
@mikehardy mikehardy deleted the @mikehardy/5g-symbol-guard branch November 17, 2021 03:37
github-actions bot pushed a commit that referenced this pull request Nov 17, 2021
## [7.1.1](v7.1.0...v7.1.1) (2021-11-17)

### Bug Fixes

* **ios, 5g:** do not use 5g symbols until iOS14.1 ([#525](#525)) ([932cd83](932cd83))
@matt-oakes
Copy link
Collaborator

🎉 This PR is included in version 7.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants