Skip to content

Conversation

@HeyImChris
Copy link

@HeyImChris HeyImChris commented Feb 2, 2021

Please select one of the following

  • I am removing an existing difference between facebook/react-native and microsoft/react-native-macos 👍
  • I am cherry-picking a change from Facebook's react-native into microsoft/react-native-macos 👍
  • I am making a fix / change for the macOS implementation of react-native
  • I am making a change required for Microsoft usage of react-native

Summary

This fix is necessary for devmain builds to succeed with 0.63. Some downstream deps have stricter warnings enabled around nullability. We should be explicit here to keep the compilers happy and also give more clarity to what we expect in code regarding the nullability.

Changelog

[iOS/macOS] [Fixed] - Fix nullability check warnings

Test Plan

Tested this downstream in devmain and with these fixes, our projects can build with the nullability warnings on.

Microsoft Reviewers: Open in CodeFlow

@HeyImChris HeyImChris self-assigned this Feb 2, 2021
@HeyImChris HeyImChris requested a review from alloy as a code owner February 2, 2021 23:25
@HeyImChris HeyImChris merged commit 14d77f5 into microsoft:master Feb 3, 2021
HeyImChris added a commit to HeyImChris/react-native-macos that referenced this pull request Feb 4, 2021
* Update RCTCxxBridge.mm

* add nullability checks
@HeyImChris HeyImChris mentioned this pull request Feb 4, 2021
4 tasks
HeyImChris added a commit that referenced this pull request Feb 4, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* macOS keyboard accessibility API alignment & support (#707)

* Update RCTCxxBridge.mm

* escape, enter support, align more tightly with win

* Update tests

* improve arrow js compatibility
HeyImChris added a commit that referenced this pull request Feb 4, 2021
* Update RCTCxxBridge.mm

* add nullability checks
HeyImChris added a commit that referenced this pull request Feb 9, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* 63 tooltips

* Add Tooltip support (#701)

Co-authored-by: chiuam <67026167+chiuam@users.noreply.github.com>
HeyImChris added a commit that referenced this pull request Feb 10, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* cherry pick RCTLinkingManagerCls to 63
HeyImChris added a commit that referenced this pull request Feb 17, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* Change key identifier from "Esc" -> "Escape" (#720)

Co-authored-by: Scott Kyle <scott@appden.com>
HeyImChris added a commit that referenced this pull request Feb 18, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* Pull in header's C declaration to stop symbol mangling  (#728)

* Update RCTCxxBridge.mm

* Update RCTCxxBridge.mm

* fix undefined extern c symbol
HeyImChris added a commit that referenced this pull request Feb 23, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* CI should run on PRs to future stable branches (#718)

Co-authored-by: Andrew Coates <30809111+acoates-ms@users.noreply.github.com>
HeyImChris added a commit that referenced this pull request Feb 26, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* CI should run on PRs to future stable branches (#718)

* Enclose the app path in quotes, so that the `open` command doesn't split it if it contains spaces (#678)

* Enclose the app path in quotes, so that the `open` command doesn't split it if it contains spaces

* [ado] Remove no longer needed homebrew fix

Co-authored-by: Eloy Durán <eloy.de.enige@gmail.com>

* update podfile.lock

* Enclose the app path in quotes, so that the `open` command doesn't split it if it contains spaces (#678)

* Enclose the app path in quotes, so that the `open` command doesn't split it if it contains spaces

* [ado] Remove no longer needed homebrew fix

Co-authored-by: Eloy Durán <eloy.de.enige@gmail.com>

* update podfile.lock

* windows dep updates to 63

Co-authored-by: Andrew Coates <30809111+acoates-ms@users.noreply.github.com>
Co-authored-by: Sergi Mansilla <sergi@sergimansilla.com>
Co-authored-by: Eloy Durán <eloy.de.enige@gmail.com>
HeyImChris added a commit that referenced this pull request Mar 3, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* Minor tweaks to RCTDevSettings (#696)

* Export RCTDevSettings noop impl on shipping builds to JS

* Add a protocol method to get all set keys on dev settings

* tag changes

* podfile fix

Co-authored-by: Navneet Kambo <72474613+nakambo@users.noreply.github.com>
HeyImChris added a commit that referenced this pull request Mar 3, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* Fix ability to call focus()/blur() on any view (#738)

This fixes a regression from when we upgraded to 0.63 where we could no longer call `focus()` or `blur()` on any `View` (including `Text`). This regression was due to a change that dispatches these as commands (to be compatible with Fabric) instead of directly using `UIManager` to change focus. Only the `TextInput` supported these commands.

* pod install

* Fix ability to call focus()/blur() on any view (#738)

This fixes a regression from when we upgraded to 0.63 where we could no longer call `focus()` or `blur()` on any `View` (including `Text`). This regression was due to a change that dispatches these as commands (to be compatible with Fabric) instead of directly using `UIManager` to change focus. Only the `TextInput` supported these commands.

Co-authored-by: Scott Kyle <scott@appden.com>
HeyImChris added a commit that referenced this pull request Mar 9, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* Protect against race conditions accessing the same RCTDevSettings object (#743)

* Update RCTCxxBridge.mm

* Update RCTCxxBridge.mm

* protect against race conditions

* use built in main queue execution

* pod update
HeyImChris added a commit that referenced this pull request Apr 16, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* fix up failing podfile
HeyImChris added a commit that referenced this pull request Apr 20, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* fix up 0.63 macOS app delegate
HeyImChris added a commit that referenced this pull request Apr 24, 2021
…ng (#761)

* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* notify of global js runtime init completion

* use obj-c++ file

* fix spacing

* objc++ to objc file ending
HeyImChris added a commit that referenced this pull request Apr 26, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* add platform check

* pod install repo update
HeyImChris added a commit that referenced this pull request May 14, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* Nil check our run loop thread (#771)

* Update RCTCxxBridge.mm

* Update RCTCxxBridge.mm

* run loop nil check

Co-authored-by: Chris Hogan <chrishogan@Chriss-MacBook-Pro-2.local>

* podfile lock

Co-authored-by: Chris Hogan <chrishogan@Chriss-MacBook-Pro-2.local>
HeyImChris added a commit that referenced this pull request Jun 1, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* Check a nil URL to fix crashes connecting to socket (#785)

* Update RCTCxxBridge.mm

* Update RCTCxxBridge.mm

* nil check websocket URL

* use RCTAssertParam

Co-authored-by: Chris Hogan <chrishogan@Chriss-MacBook-Pro-2.local>

* pod install

Co-authored-by: Chris Hogan <chrishogan@Chriss-MacBook-Pro-2.local>
HeyImChris added a commit that referenced this pull request Jun 1, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* Revert "Split loadApplicationScript into initializeRuntime and loadBundle (facebook#27844)"

This reverts commit 6f627f6.

* pod fixes

* Revert "Split loadApplicationScript into initializeRuntime and loadBundle (facebook#27844)"

This reverts commit 6f627f6.

* pod fixes

* pod update

* pod install

* fix libevents and flipper dependencies

* flipper updates

* disable sonar kit

* Revert "Split loadApplicationScript into initializeRuntime and loadBundle (facebook#27844)"

This reverts commit 6f627f6.

* pod fixes

* flipper updates

* disable sonar kit

* pod install
HeyImChris added a commit that referenced this pull request Jun 29, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* remove extraneous devsettings check
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