react-native-macos/React
Kevin Gozali 1fc1873c21 iOS: introduced 2 levels of architecture enforcement
Summary:
To prepare for the new architecture, introduce the following enforcement:
* Defining `RCT_NEW_ARCHITECTURE` in the build flag automatically enables violation reporting
  * At runtime, call RCTEnableNewArchitectureViolationReporting() to enable/disable reporting - it takes effect with the future violations
* When violation reporting is enabled:
  * RCTWarnNotAllowedForNewArchitecture(): log warning about a violation, but doesn't assert
  * RCTEnforceNotAllowedForNewArchitecture(): assert when a violation happen

Also in this commit:
* Add warning when RCTRegisterModule() is called as a side effect of RCT_EXPORT_MODULE(). Many modules still need this, so we can't enforce it yet.
* Add enforcement when the bridge is initialize, because the new architecture cannot have the bridge.

Changelog: [Internal]

Reviewed By: yungsters

Differential Revision: D27847359

fbshipit-source-id: a8c4a8151cec3915ec707ce6b78f860af4bb0708
2021-04-18 23:01:52 -07:00
..
AccessibilityResources/en.lproj VoiceOver reads Tab elements as "Tab Description" (#30689) 2021-01-15 11:09:01 -08:00
Base iOS: introduced 2 levels of architecture enforcement 2021-04-18 23:01:52 -07:00
CoreModules Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
CxxBridge Remove clean up resources when the app is backgrounded experiment 2021-04-07 17:01:04 -07:00
CxxModule Proxing NSException stack trace to NSError object 2020-09-08 13:22:54 -07:00
CxxUtils Clang format for all React Native files 2020-03-08 23:01:17 -07:00
DevSupport Respect port information if available from RCTBundleURLProvider 2020-08-28 16:01:02 -07:00
FBReactNativeSpec Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
Fabric Mounting: log more information in iOS-only REMOVE assert 2021-04-14 10:34:57 -07:00
Inspector Clang format for all React Native files 2020-03-08 23:01:17 -07:00
Modules Pass RCTEventDispatcher to RCTComponentData [6/n] 2021-03-31 16:39:02 -07:00
Profiler Apply clang-format update fixes 2021-01-09 22:11:00 -08:00
Tests Fabric: `RCTParagraphComponentView` now respects the `accessible` property 2021-01-25 21:11:44 -08:00
UIUtils A couple of checks for corner cases in RCTGetDimensions and RCTExportedDimensions 2020-10-01 13:19:52 -07:00
Views Pass RCTEventDispatcher to RCTComponentData [6/n] 2021-03-31 16:39:02 -07:00
React-RCTFabric.podspec Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
third-party.xcconfig Upgrade Folly to v2020.01.13.00 (#27810) 2020-01-21 12:44:00 -08:00