From c74acd122341cda5693162b7cd27530fca6090fe Mon Sep 17 00:00:00 2001 From: Archish Date: Tue, 3 Nov 2026 17:11:49 +0530 Subject: [PATCH] chore: bump iOS SDK to 2.3.1 --- CHANGELOG.md | 18 ++++++++++++++++++ example/ios/Podfile | 3 +++ example/ios/Podfile.lock | 19 ++++++++++--------- middleware-react-native.podspec | 2 +- 4 files changed, 32 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42731b6..16b3fbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,24 @@ Maintaining this file: ## [Unreleased] +### Changed + +- iOS: requires `MiddlewareRum` 2.3.1 or a newer 2.3.x. Add the Middleware specs + repo as a source in `ios/Podfile`, as described in the README, then run + `pod update MiddlewareRum` in `ios/`. Plain `pod install` fails against a + `Podfile.lock` that pins an older version, with an error that wrongly mentions the + deployment target. Until 2.3.1 is on CocoaPods trunk, it can't be found without + that source. + +### Fixed + +- iOS: a JS reload no longer doubles `slowRenders` and `frozenRenders` spans, or + starts native instrumentation again. Native settings now apply once per process, + so relaunch the app to change them. +- iOS: a frame now has to miss a vsync to count as slow, and these spans report the + screen that was showing when the frame was slow. Screen names need + `trackNavigation`. Slow-render totals may drop after upgrading. + ## [2.3.1] - 2026-10-28 ### Fixed diff --git a/example/ios/Podfile b/example/ios/Podfile index 93f3f92..b036726 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -1,3 +1,6 @@ +source 'https://github.com/middleware-labs/cocoapods-specs.git' +source 'https://cdn.cocoapods.org/' + # Resolve react_native_pods.rb with node to allow for hoisting require Pod::Executable.execute_command('node', ['-p', 'require.resolve( diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 91243f3..e891af0 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1,7 +1,7 @@ PODS: - BitByteData (2.0.4) - boost (1.83.0) - - DeviceKit (5.9.0) + - DeviceKit (5.10.0) - DoubleConversion (1.1.6) - FBLazyVector (0.73.1) - FBReactNativeSpec (0.73.1): @@ -13,12 +13,12 @@ PODS: - ReactCommon/turbomodule/core (= 0.73.1) - fmt (6.2.1) - glog (0.3.5) - - middleware-react-native (2.3.0): + - middleware-react-native (2.3.1): - glog - - MiddlewareRum (~> 2.3.0) + - MiddlewareRum (~> 2.3.1) - RCT-Folly (= 2022.05.16.00) - React-Core - - MiddlewareRum (2.3.0): + - MiddlewareRum (2.3.1): - DeviceKit (~> 5.4) - PLCrashReporter (~> 1.11) - Reachability (~> 3.7) @@ -1142,11 +1142,12 @@ DEPENDENCIES: - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) SPEC REPOS: + https://github.com/middleware-labs/cocoapods-specs.git: + - MiddlewareRum trunk: - BitByteData - DeviceKit - fmt - - MiddlewareRum - PLCrashReporter - Reachability - SocketRocket @@ -1260,14 +1261,14 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: BitByteData: 2422ed269fcddc44976d97f171a183d25ef535ce boost: 69c3d61aee7f5f7facabe24312f0302003b5af29 - DeviceKit: 90a1ff9c523d856d52a85d3b6088cad30f6234ff + DeviceKit: 37fc92e0e41f6b2586b510c4798e89d7b44d7bc4 DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953 FBLazyVector: 2296bacb2fa157a43991048b0a9d71c1c8b65083 FBReactNativeSpec: df0ebe69acd14ce0be0269cf75b6e338a727259b fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2 - middleware-react-native: bf6d82523bb77b5ec070018c1be75c6ac51c9ed6 - MiddlewareRum: eb263cbb3da6dce5cda225f7d8cdbc72c8e09bf4 + middleware-react-native: e00b9051ee939e646dd44c58dc64dde55992ca1a + MiddlewareRum: 90091571a8a411f82016ac5f98a228f9f9949fa5 PLCrashReporter: db59ef96fa3d25f3650040d02ec2798cffee75f2 RCT-Folly: cd21f1661364f975ae76b3308167ad66b09f53f5 RCTRequired: 6dda55e483f75d2b43781d8ad5bd7df276a50981 @@ -1319,6 +1320,6 @@ SPEC CHECKSUMS: SwiftProtobuf: b109bd17979d7993a84da14b1e1fdd8b0ded934a Yoga: 4f53dc50008d626fa679c7a1cb4bed898f8c0bde -PODFILE CHECKSUM: 4d5c450dd208d07f681cab2179a482c80dd4cb07 +PODFILE CHECKSUM: 8ad80e9dc1ea519a813f806d5f5c7ef21ca97791 COCOAPODS: 1.17.0 diff --git a/middleware-react-native.podspec b/middleware-react-native.podspec index ef2e1d5..01c8d48 100644 --- a/middleware-react-native.podspec +++ b/middleware-react-native.podspec @@ -18,7 +18,7 @@ Pod::Spec.new do |s| # Stable native SDK (2.1+ adds setNativeSession + exportRawSpans); brings # PLCrashReporter/DeviceKit/SwiftProtobuf/SWCompression/Reachability transitively. - s.dependency "MiddlewareRum", "~> 2.3.0" + s.dependency "MiddlewareRum", "~> 2.3.1" # React dependencies. `install_modules_dependencies` (react_native_pods.rb, # RN >= 0.71) wires the right pods for whichever architecture the host app