Skip to content

ref(ios): Remove deprecated private SDK API usage - #6647

Draft
philprime wants to merge 2 commits into
mainfrom
philprime/remove-deprecated-private-sdk-api
Draft

ref(ios): Remove deprecated private SDK API usage#6647
philprime wants to merge 2 commits into
mainfrom
philprime/remove-deprecated-private-sdk-api

Conversation

@philprime

@philprime philprime commented Sep 1, 2026

Copy link
Copy Markdown
Member

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Route all remaining iOS internal SDK access through SentrySDK.internal and the React Native Swift bridge. This removes the deprecated Objective-C SPI from active production code, tests, samples, comments, and implementation guidance while preserving historical changelog entries.

The screenshot, view hierarchy, and screen bridge APIs now use the hybrid SDK surface on visionOS as well as iOS and tvOS.

💡 Motivation and Context

The deprecated Objective-C internal API is being removed from sentry-cocoa. React Native must use the replacement hybrid SDK APIs, including the newly available visionOS surface, to remain compatible.

💚 How did you test it?

  • yarn lint:swift
  • yarn lint:clang
  • Focused RNSentryInitNativeSdkTests and RNSentryReplayOptions test run: 76 tests passed
  • Verified the removed type has no remaining active code references

📝 Checklist

  • I added tests to verify changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.
  • No breaking changes.

🔮 Next steps

Land and consume the corresponding sentry-cocoa release that exposes the hybrid screenshot, view hierarchy, and screen APIs on visionOS.

Route remaining internal access through SentrySDK.internal and the React Native Swift bridge, including visionOS, tests, and samples.
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • ref(ios): Remove deprecated private SDK API usage by philprime in #6647
  • chore(deps): update Maestro to v2.10.0 by github-actions in #6641
  • chore(deps): update JavaScript SDK to v10.73.0 by github-actions in #6642
  • test(ios): Speed up sentry-xcode-scripts tests by antonis in #6633
  • fix: Update recommended vscode extensions by antonis in #6640
  • chore(deps): bump actions/setup-java from 5.7.0 to 6.0.0 by dependabot in #6636
  • chore(deps): bump the codeql-action group with 3 updates by dependabot in #6635
  • chore(deps): update JavaScript SDK to v10.72.0 by github-actions in #6634
  • chore(e2e): Bump E2E tests to React Native 0.87.0 by antonis in #6616
  • chore(deps): update CLI to v3.7.0 by github-actions in #6632
  • feat(tracing): Copy app start vitals onto standalone children by buenaflor in #6631
  • chore(deps): update Cocoa SDK to v9.26.1 by github-actions in #6623
  • fix(ios): Force-load the Sentry static archive to keep ObjC category methods by antonis in #6615
  • feat(core): Forward feature flag evaluations to the native SDKs by antonis in #6613
  • chore(deps): update Android SDK to v8.54.0 by github-actions in #6624
  • chore(deps): update Sentry Android Gradle Plugin to v6.20.0 by github-actions in #6627

🤖 This preview updates automatically when you update the PR.

@philprime philprime self-assigned this Sep 1, 2026
@philprime philprime added the ready-to-merge Triggers the full CI test suite label Sep 1, 2026
@sentry

sentry Bot commented Sep 1, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
Sentry RN io.sentry.reactnative.sample 8.24.0 (104) Release

⚙️ sentry-react-native Build Distribution Settings

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 3841.93 ms 1230.25 ms -2611.68 ms
Size 5.08 MiB 6.80 MiB 1.72 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
3b6e9f9+dirty 3822.77 ms 1208.00 ms -2614.77 ms
5a23c47+dirty 3843.54 ms 1226.05 ms -2617.50 ms
100ce80+dirty 3843.57 ms 1226.46 ms -2617.12 ms
0bd8916+dirty 3816.17 ms 1215.05 ms -2601.12 ms
a0d8cf8+dirty 3826.15 ms 1213.12 ms -2613.03 ms
0a9e622+dirty 3825.35 ms 1219.04 ms -2606.31 ms
21a1e70+dirty 3826.22 ms 1217.74 ms -2608.47 ms
9ad4522+dirty 3862.28 ms 1226.27 ms -2636.01 ms
88735e9+dirty 3837.80 ms 1216.39 ms -2621.41 ms
d0e3b3e+dirty 3846.64 ms 1226.27 ms -2620.38 ms

App size

Revision Plain With Sentry Diff
3b6e9f9+dirty 5.15 MiB 6.68 MiB 1.53 MiB
5a23c47+dirty 4.98 MiB 6.46 MiB 1.49 MiB
100ce80+dirty 5.15 MiB 6.67 MiB 1.51 MiB
0bd8916+dirty 5.15 MiB 6.69 MiB 1.53 MiB
a0d8cf8+dirty 5.15 MiB 6.67 MiB 1.51 MiB
0a9e622+dirty 4.98 MiB 6.51 MiB 1.53 MiB
21a1e70+dirty 4.98 MiB 6.46 MiB 1.49 MiB
9ad4522+dirty 4.98 MiB 6.56 MiB 1.58 MiB
88735e9+dirty 4.98 MiB 6.46 MiB 1.49 MiB
d0e3b3e+dirty 4.98 MiB 6.51 MiB 1.53 MiB

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 3851.48 ms 1226.98 ms -2624.50 ms
Size 5.08 MiB 6.80 MiB 1.72 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
7a89652+dirty 3861.46 ms 1229.61 ms -2631.85 ms
0b1b5e3+dirty 3823.96 ms 1220.12 ms -2603.84 ms
3e3142c+dirty 3867.38 ms 1232.48 ms -2634.90 ms
9210ae6+dirty 3815.93 ms 1214.14 ms -2601.79 ms
6177334+dirty 3834.85 ms 1217.58 ms -2617.28 ms
3a829f0+dirty 3839.76 ms 1214.69 ms -2625.06 ms
2cac31b+dirty 3886.27 ms 1230.85 ms -2655.42 ms
a5d243c+dirty 3842.35 ms 1214.29 ms -2628.06 ms
800c466+dirty 3851.19 ms 1220.80 ms -2630.39 ms
244f6e8+dirty 3833.36 ms 1212.96 ms -2620.41 ms

App size

Revision Plain With Sentry Diff
7a89652+dirty 5.15 MiB 6.70 MiB 1.55 MiB
0b1b5e3+dirty 5.15 MiB 6.70 MiB 1.54 MiB
3e3142c+dirty 4.98 MiB 6.56 MiB 1.58 MiB
9210ae6+dirty 5.15 MiB 6.68 MiB 1.53 MiB
6177334+dirty 5.15 MiB 6.68 MiB 1.53 MiB
3a829f0+dirty 5.15 MiB 6.70 MiB 1.54 MiB
2cac31b+dirty 4.98 MiB 6.55 MiB 1.58 MiB
a5d243c+dirty 5.15 MiB 6.68 MiB 1.53 MiB
800c466+dirty 5.08 MiB 6.75 MiB 1.67 MiB
244f6e8+dirty 4.98 MiB 6.56 MiB 1.58 MiB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Triggers the full CI test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant