Skip to content

chore: bump iOS SDK to 2.3.1 and release 2.2.3 - #21

Merged
Archish27 merged 1 commit into
mainfrom
chore/ios-sdk-2.3.1
Nov 3, 2026
Merged

Archish27 merged 1 commit into
mainfrom
chore/ios-sdk-2.3.1

Conversation

@Archish27

Copy link
Copy Markdown
Member

Summary

Bumps the iOS dependency to MiddlewareRum 2.3.1 and the package to 2.2.3, so Flutter apps get the fixes in iOS 2.3.1. The same change for React Native is in middleware-labs/middleware-react-native#62.

  • ios/middleware_flutter_opentelemetry.podspec: the minimum goes from >= 2.3.0 to >= 2.3.1, still ~> 2.3.
  • pubspec.yaml and lib/src/util/sdk_version.dart: version 2.2.3.
  • example/ios/Podfile: adds the Middleware specs repo as a source, because 2.3.1 is not on CocoaPods trunk yet and CI builds this example.
  • example/ios/Podfile.lock: regenerated with pod update MiddlewareRum, which also moves DeviceKit from 5.9.0 to 5.10.0. example/pubspec.lock picks up the new package version.
  • CHANGELOG.md: adds a [2.2.3] section.

Hot restart benefits too: a repeat native build() no longer starts native instrumentation or the slow-rendering detector again. I confirmed from the plugin code that it sets the session first and still gets initialized: true. I did not run an actual hot restart.

Impact on apps

App developers need to:

  1. Add the Middleware specs repo as a source in ios/Podfile, unless 2.3.1 has reached trunk by then. The README already covers this.
  2. Run pod update MiddlewareRum in ios/.

Plain pod install should fail against a Podfile.lock that pins an older version, as it did in the React Native example, with an error that wrongly mentions the deployment target. The changelog entry warns about this.

Testing

  • flutter test: all 106 pass, including the check that the SDK version matches pubspec.yaml.
  • From clean pods, flutter build ios --debug --no-codesign builds the example with 2.3.1 and the fix in its code. This ran on local Flutter 3.44.2, while CI uses 3.38.3, so CI will confirm it.
  • Not tested: running the app on a device or simulator.

Not in this PR

Flutter's Dart route observer also emits slowRenders and frozenRenders, based on route load time rather than frame time (lib/src/nav/otel_navigator_observer.dart). This release does not change those, so Flutter's totals still mix both kinds of span on iOS.

Merging does not publish the package to pub.dev.

@Archish27
Archish27 merged commit 9c7530a into main Nov 3, 2026
9 checks passed
@Archish27
Archish27 deleted the chore/ios-sdk-2.3.1 branch November 3, 2026 11:58
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.

1 participant