Skip to content

Commit

Permalink
chore: sync with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed May 10, 2024
1 parent 70bf903 commit 61f4507
Show file tree
Hide file tree
Showing 3 changed files with 507 additions and 286 deletions.
11 changes: 6 additions & 5 deletions packages/react-native/React/CoreModules/RCTDeviceInfo.mm
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ - (void)initialize
name:UIApplicationDidChangeStatusBarOrientationNotification
object:nil];

[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(interfaceFrameDidChange)
name:UIDeviceOrientationDidChangeNotification
object:nil];
#endif
_currentInterfaceDimensions = [self _exportedDimensions];

[[NSNotificationCenter defaultCenter] addObserver:self
Expand All @@ -77,10 +82,6 @@ - (void)initialize
selector:@selector(interfaceFrameDidChange)
name:RCTWindowFrameDidChangeNotification
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(interfaceFrameDidChange)
name:UIDeviceOrientationDidChangeNotification
object:nil];

// TODO T175901725 - Registering the RCTDeviceInfo module to the notification is a short-term fix to unblock 0.73
// The actual behavior should be that the module is properly registered in the TurboModule/Bridge infrastructure
Expand Down Expand Up @@ -111,6 +112,7 @@ - (void)_cleanupObservers
[[NSNotificationCenter defaultCenter] removeObserver:self
name:UIApplicationDidChangeStatusBarOrientationNotification
object:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil];
#endif
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil];

Expand All @@ -120,7 +122,6 @@ - (void)_cleanupObservers

[[NSNotificationCenter defaultCenter] removeObserver:self name:RCTBridgeWillInvalidateModulesNotification object:nil];

[[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil];
}

static BOOL RCTIsIPhoneNotched()
Expand Down
193 changes: 135 additions & 58 deletions packages/rn-tester/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,27 @@ PODS:
- ReactCommon/turbomodule/core
- Yoga
- OCMock (3.9.2)
- OSSLibraryExample (0.0.1):
- DoubleConversion
- glog
- hermes-engine
- RCT-Folly (= 2024.01.01.00)
- RCTRequired
- RCTTypeSafety
- React-Core
- React-debug
- React-Fabric
- React-featureflags
- React-graphics
- React-ImageManager
- React-NativeModulesApple
- React-RCTFabric
- React-rendererdebug
- React-utils
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- RCT-Folly (2024.01.01.00):
- boost
- DoubleConversion
Expand Down Expand Up @@ -459,6 +480,7 @@ PODS:
- React-Fabric/imagemanager (= 1000.0.0)
- React-Fabric/leakchecker (= 1000.0.0)
- React-Fabric/mounting (= 1000.0.0)
- React-Fabric/observers (= 1000.0.0)
- React-Fabric/scheduler (= 1000.0.0)
- React-Fabric/telemetry (= 1000.0.0)
- React-Fabric/templateprocessor (= 1000.0.0)
Expand Down Expand Up @@ -929,6 +951,47 @@ PODS:
- React-runtimescheduler
- React-utils
- ReactCommon/turbomodule/core
- React-Fabric/observers (1000.0.0):
- DoubleConversion
- fmt (= 9.1.0)
- glog
- hermes-engine
- RCT-Folly/Fabric (= 2024.01.01.00)
- RCTRequired
- RCTTypeSafety
- React-Core
- React-cxxreact
- React-debug
- React-Fabric/observers/events (= 1000.0.0)
- React-featureflags
- React-graphics
- React-jsi
- React-jsiexecutor
- React-logger
- React-rendererdebug
- React-runtimescheduler
- React-utils
- ReactCommon/turbomodule/core
- React-Fabric/observers/events (1000.0.0):
- DoubleConversion
- fmt (= 9.1.0)
- glog
- hermes-engine
- RCT-Folly/Fabric (= 2024.01.01.00)
- RCTRequired
- RCTTypeSafety
- React-Core
- React-cxxreact
- React-debug
- React-featureflags
- React-graphics
- React-jsi
- React-jsiexecutor
- React-logger
- React-rendererdebug
- React-runtimescheduler
- React-utils
- ReactCommon/turbomodule/core
- React-Fabric/scheduler (1000.0.0):
- DoubleConversion
- fmt (= 9.1.0)
Expand All @@ -940,11 +1003,13 @@ PODS:
- React-Core
- React-cxxreact
- React-debug
- React-Fabric/observers/events
- React-featureflags
- React-graphics
- React-jsi
- React-jsiexecutor
- React-logger
- React-performancetimeline
- React-rendererdebug
- React-runtimescheduler
- React-utils
Expand Down Expand Up @@ -1194,6 +1259,9 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- React-perflogger (1000.0.0)
- React-performancetimeline (1000.0.0):
- RCT-Folly (= 2024.01.01.00)
- React-cxxreact
- React-RCTActionSheet (1000.0.0):
- React-Core/RCTActionSheetHeaders (= 1000.0.0)
- React-RCTAnimation (1000.0.0):
Expand Down Expand Up @@ -1258,6 +1326,7 @@ PODS:
- React-jsi
- React-jsinspector
- React-nativeconfig
- React-performancetimeline
- React-RCTImage
- React-RCTText
- React-rendererconsistency
Expand Down Expand Up @@ -1515,6 +1584,7 @@ DEPENDENCIES:
- MyNativeView (from `NativeComponentExample`)
- NativeCxxModuleExample (from `NativeCxxModuleExample`)
- OCMock (from `https://github.com/erikdoe/ocmock.git`, tag `v3.9.2`)
- OSSLibraryExample (from `../react-native-test-library`)
- RCT-Folly (from `../react-native/third-party-podspecs/RCT-Folly.podspec`)
- RCT-Folly/Fabric (from `../react-native/third-party-podspecs/RCT-Folly.podspec`)
- RCTDeprecation (from `../react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation`)
Expand Down Expand Up @@ -1546,6 +1616,7 @@ DEPENDENCIES:
- React-nativeconfig (from `../react-native/ReactCommon`)
- React-NativeModulesApple (from `../react-native/ReactCommon/react/nativemodule/core/platform/ios`)
- React-perflogger (from `../react-native/ReactCommon/reactperflogger`)
- React-performancetimeline (from `../react-native/ReactCommon/react/performance/timeline`)
- React-RCTActionSheet (from `../react-native/Libraries/ActionSheetIOS`)
- React-RCTAnimation (from `../react-native/Libraries/NativeAnimation`)
- React-RCTAppDelegate (from `../react-native/Libraries/AppDelegate`)
Expand Down Expand Up @@ -1599,6 +1670,8 @@ EXTERNAL SOURCES:
OCMock:
:git: https://github.com/erikdoe/ocmock.git
:tag: v3.9.2
OSSLibraryExample:
:path: "../react-native-test-library"
RCT-Folly:
:podspec: "../react-native/third-party-podspecs/RCT-Folly.podspec"
RCTDeprecation:
Expand Down Expand Up @@ -1657,6 +1730,8 @@ EXTERNAL SOURCES:
:path: "../react-native/ReactCommon/react/nativemodule/core/platform/ios"
React-perflogger:
:path: "../react-native/ReactCommon/reactperflogger"
React-performancetimeline:
:path: "../react-native/ReactCommon/react/performance/timeline"
React-RCTActionSheet:
:path: "../react-native/Libraries/ActionSheetIOS"
React-RCTAnimation:
Expand Down Expand Up @@ -1728,74 +1803,76 @@ CHECKOUT OPTIONS:
SPEC CHECKSUMS:
boost: 05bdc81cadfb5bf1b574e4147039ca12db7598f9
DoubleConversion: 26c660c8d88372cca1a67f8101d2d962a7064361
FBLazyVector: 44e9591822f3f6fbfee6a023ff981586745b3c24
FBLazyVector: 20a1fdd8d2cbe90bcc44f93087d133b92de6d8dd
fmt: 5d9ffa7ccba126c08b730252123601d514652320
glog: 4f05d17aa39a829fee878689fc9a41af587fabba
hermes-engine: b52dca118a868da694dec15a5bb0fe7729b5b0ee
hermes-engine: 88f7cede71a7d2f4f381191a7f8da010266b0fe3
MyNativeView: 285c6f70650ff53a276f7086047921e617a4d0e3
NativeCxxModuleExample: 1cd42853b5ec241c6b5e70f2dd4bbc26feb97b39
OCMock: 267d92c078398b7ce11d99e811e3a402744c06bc
OSSLibraryExample: d718b079a7ff6bb417fdbb6d98d58b9081b07b88
RCT-Folly: 38265df22721cd15cc13ba692c23a52cceaf3752
RCTDeprecation: 3808e36294137f9ee5668f4df2e73dc079cd1dcf
RCTRequired: 1dbd23afd556cec4aea4d80dfef24a23b69f005e
RCTTypeSafety: 5c52cfada68f78d853afd52688d2c319e517274b
React: 585970bb2b3cda6b6e03503e06ee7aca38bdceee
React-callinvoker: e98293c9054a8509da0cdf26c7139f89f808436f
React-Core: 4c661c4fcfd2607aa8bc0a24c002f2d971c1a83c
React-CoreModules: 642dd2a5a192c13ebc62fa42edf7fc0df27a9d6a
React-cxxreact: a8dea264c8a02e9378adfa50076eb3b9672e53e1
React-debug: cfc3d2d9cc519131a80a77022405a3a2f42e2c66
React-domnativemodule: 4ddf0f28f401750ac0b646f6f4c7dc7a2bbb9f73
React-Fabric: 8a926551427463111c4ead24eeae3bb315cc5e1d
React-FabricImage: 981164876a008387f34c318043de4b5ca8beac66
React-featureflags: 4cbd444490d6d7562ec10cf60ecb9625120e8170
React-featureflagsnativemodule: d2badc831c96196261cf0dfae32add436c449b43
React-graphics: 7e459e0a093c9547dc6cc7381dfe8f51cd01e013
React-hermes: 4b3eee961c1f001a9286eb2a2aee2e61d799fa61
React-ImageManager: 08426c5367392c5e2cd6abde7c36b6ea562af46c
React-jserrorhandler: 6284fa148e4ce8553c5764ae974ad75cf7b1d42e
React-jsi: 18230103204ebcdef2e3c5b60ec442815706a965
React-jsiexecutor: 34a44649bb14e72c029099c88ff473127aac81bc
React-jsinspector: c511a9d6df885d302d8a08c712a05084f2b3a935
React-jsitracing: dbe143cc99f01a1cf7f3054f7e92ce6f7ab3cdf5
React-logger: 47867261904011cb21a44192fe4ed1c6e252af19
React-Mapbuffer: 17436630c9b3db92b1a3ed8569cdca18d889efb1
React-microtasksnativemodule: 0d66d7c95659f79ce865778f7a55ee920aa3ce2c
React-nativeconfig: ed0c95a522b5d88aeddc442b1a36facf8313df3f
React-NativeModulesApple: 604cf8bb2ddaa50c17376f7d6663720cc2885d6d
React-perflogger: 2cd9a2639214183f04db641dd8c69969076f1ee9
React-RCTActionSheet: 465cff87f6e303a5f3a240ad1c589dfb54966566
React-RCTAnimation: 0cae88ca1af67fb2b7212ca236ce6f395a1707db
React-RCTAppDelegate: 3d362ce275b70a6661d384f5c8ce44da88b95801
React-RCTBlob: 9f0858c8b3f0e3869688a2e3f651aeaeefa21c26
React-RCTFabric: ed7948a8861f2ac6e28b002e0df60c19c0c95759
React-RCTImage: de0c1472c19d3288e3ed87d78fa2138940e605bf
React-RCTLinking: 866bb54d19acc11521961a871d2ed1112a412c3f
React-RCTNetwork: 6f5f1c0caf117bb22b9eb6a2f7537175c26b088a
React-RCTPushNotification: ad91244c6780866abc3411472aa0406742f1e8bc
React-RCTSettings: 68f28356fd73af550b294171ffdd7aa2e1e99148
React-RCTSwiftExtensions: d69766ebad61ac6f0b4a286029934dffbde9396f
React-RCTTest: 52d00e08b78df7a21b46079044cd8b0d0e0ffc77
React-RCTText: 0a2272f67a66f857909d9918793541e88d469b2a
React-RCTVibration: b3abaf46cf9cf5645184090a822ac7c3d10d7138
React-RCTWindowManager: 1d8be2077ae421fffc02d5eb68de57be83366170
React-RCTXR: bf2aff9137e9a1ce3c92c4203da8a96400ba05be
React-rendererconsistency: 25bb58f88027dd1d53de2aaa6e00cd9e42c4e681
React-rendererdebug: 881911377b2f28409bfa84121e854e60849c7be3
React-rncore: 69d68ca51a0aca2c68e039856a1be8a9b63d3162
React-RuntimeApple: cc9a6d98480bc829433ecc277dbdf4342666db10
React-RuntimeCore: 549729778f2c12b151c1ed9e8081dfccb9656754
React-runtimeexecutor: d301f0ccb976f191a419f176500349172a81d320
React-RuntimeHermes: 760fb51ec1e0f14f2df04154a1a6d3dacd8db98f
React-runtimescheduler: 5ca2d91f1523dea17ff8edd23563f6be94881102
React-utils: 7777e8bff0797972fe0d0130e8079e9618b2d62b
RCTRequired: 00494a336aaaa6c1109b14b743a8d10e7b0c2bd9
RCTTypeSafety: 63604e5d7ef46f7369ad1788ca0cda718d255fea
React: 876fe87b85c282432c0c2ae00252e27461f6ced1
React-callinvoker: 98796ddbd5a3543d345bc136690bacb8a23f9889
React-Core: 63872cd3efa26f21938739cedd4dc9bec7e97e57
React-CoreModules: 01078f1172a7d8d82ac6753410f0b7d788ab4fc5
React-cxxreact: 8633649f350792bee9cedaa7bbe71484d383d222
React-debug: c506ac2dc1640f5fa0d95da3dc0a7688fb22140f
React-domnativemodule: 37862eb36b630700fca07ea4b027997c00bd3e58
React-Fabric: c70e5559e7bac97a31319ddf00cab1b1226686e9
React-FabricImage: fa1db3fbd4107b4f626c1d5624bdeaf6f6b82c6f
React-featureflags: 32e2b1fb6496035691bf3d3965616b815bd55fcf
React-featureflagsnativemodule: 9d3c4102b0096fd24b2ecf87e6f339c7202c0d9d
React-graphics: 5a154901931e0aab99ecdc0630953fbc8f9b2bf6
React-hermes: a0f03b5acb27f663dc47d52d53e980787e5417d6
React-ImageManager: d17060f58f4d5d7bf5ae56c41ce34ba9a7c40800
React-jserrorhandler: b8d76ca95c49917dc963aa89e2746294381d93d9
React-jsi: ba43e2ac228494f059a86719868e86c9c0e7cf3a
React-jsiexecutor: b1facd6e7b3ddff34161985514f0baa52ff55508
React-jsinspector: 3640998c809441819da62448c0bfcdc4c0592c3c
React-jsitracing: 8bb4ab9ff1cff693fc65d41eb418e6cb4c9ad45e
React-logger: a6335bd4fcd8f023b314ec6dc62676479d4f8ef5
React-Mapbuffer: 8d98bcaf7a75ac34403ff7c8dbd0dc390d3b3648
React-microtasksnativemodule: c8a74eb41a33ccd529b8bff1e1b51b9fd31f9edd
React-nativeconfig: 8fd70eb6406983bf320ab0188a4900b2c765e109
React-NativeModulesApple: 9942d312039b3d88054c984fa93e323692bb82db
React-perflogger: 4ffd983a14ade06ba3a1f6dc26fbcba7014822ce
React-performancetimeline: ed71b96015ca099496589873541ef4aa55e9ee0f
React-RCTActionSheet: 66937112f6e9f498c7abe8e035394bdb400e1bd3
React-RCTAnimation: 69c14926abec814c849041b6c3e76434659d5677
React-RCTAppDelegate: a489b9abc03183b6dd5977b3530914df52e272b2
React-RCTBlob: d48308febe87bece656a028bdb4854a87b53205b
React-RCTFabric: fbc48720d2afec9dcafd42225efd29f73c9005a8
React-RCTImage: cc97c9b14b6edfe8235f8a420a6a3b065e774ff5
React-RCTLinking: 5db903231ad4b74092dd3756e8072c885dc80289
React-RCTNetwork: e36c2f362c57e60c81e3804d19070bef83b2c518
React-RCTPushNotification: 55f45eb5586929de0a88b208078c9ed5da7c2283
React-RCTSettings: 62ada0ce694424908911bb890e358c47f316cb7a
React-RCTSwiftExtensions: f9d344375f3f6f16ff54eaf410b5398b4e0d7e0d
React-RCTTest: 8e4b84206d32d19f075e19f6d7ea0414fd61f33a
React-RCTText: 5fc77435975eb893a31768a60bbf8d50fee7cb00
React-RCTVibration: 7fd6e3678358d344a2925b3986aa944009cf5110
React-RCTWindowManager: 87709575ed6e4029ab98863216abf028ae55b211
React-RCTXR: 811bd032f249f0733ef62f5ade336cc4c7a7484c
React-rendererconsistency: f63d7b458d5c1904f82469a9a7a08b159018f922
React-rendererdebug: a84a1458a247a5dd71b38634c66ef24571974193
React-rncore: f2739d92f22e100669e1854c7bb2abc6141c64ce
React-RuntimeApple: 4ec65837beb278d7f4d3039b60eddf5cb10aa701
React-RuntimeCore: 238d5717e645c77610828f2353e9b5463860a467
React-runtimeexecutor: 62fa7e2e2fd9c94ff769fc63716bfc83bfe825e1
React-RuntimeHermes: 0b696a2b82c5ec7a629ecd5ab770c8ba47d21207
React-runtimescheduler: b422db72df40fb64d401020a96868b07538c065a
React-utils: 9df75db69a844bd4b02c9c870ce031b8d3c1f0c3
ReactCodegen: 2fa2bfb8df604e5bbf2462cf3cced313c3131b96
ReactCommon: 7674e0d857a0925deee7d2a543820c379dbeaa3d
ReactCommon-Samples: 0c049cc26890a8d6cc6dc984039f29d1dc5dd741
ReactCommon: 22b022d658690344f911165e55515b7f39767ee3
ReactCommon-Samples: baa4dd0274cf744b2492ca862bb49ee4527e74fc
ScreenshotManager: 662151998cf5859591e72c76ceb9ebc6d04b425b
SocketRocket: 0ba3e799f983d2dfa878777017659ef6c866e5c6
Yoga: 9397352c9f304a2aff32fa597de7536cd4a45268
Yoga: 1480c9031576334f4521691e044f3bd9c929cc5d

PODFILE CHECKSUM: 7e999b8158f1055609ef4491bc35f1ad658fdd6c
PODFILE CHECKSUM: ecf8d73b0aefca76e0e218d8845b105ea9282718

COCOAPODS: 1.14.3
Loading

0 comments on commit 61f4507

Please sign in to comment.