Skip to content

chore: Disable AppStart and NativeFrames integration by default in environments without native support#4897

Merged
antonis merged 2 commits into
v7from
fix-non-native-envs
Jun 9, 2025
Merged

chore: Disable AppStart and NativeFrames integration by default in environments without native support#4897
antonis merged 2 commits into
v7from
fix-non-native-envs

Conversation

@krystofwoldrich
Copy link
Copy Markdown
Contributor

📢 Type of change

  • Enhancement

📜 Description

Disabling AppStart and NativeFrames in unsupported environments avoid unexpected warning mentioned in the issues. This leads to better DEX.

I've decided not to log out any information about the fact that the particular integrations are not enabled as we don't do it for the rest either + we already have a generic warning about native features not being available.

💡 Motivation and Context

fixes: #4895

💚 How did you test it?

sample apps, unit tests

📝 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
  • No breaking changes

🔮 Next steps

@krystofwoldrich krystofwoldrich changed the base branch from main to v7 June 5, 2025 15:44
@krystofwoldrich krystofwoldrich changed the title Fix non native envs chore: Disable AppStart and NativeFrames integration by default in environments without native support Jun 5, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1222.04 ms 1244.14 ms 22.10 ms
Size 2.63 MiB 3.79 MiB 1.15 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
3c99746+dirty 1215.12 ms 1222.31 ms 7.18 ms
472960b+dirty 1213.96 ms 1222.58 ms 8.62 ms
f870f2d+dirty 1227.18 ms 1232.30 ms 5.12 ms

App size

Revision Plain With Sentry Diff
3c99746+dirty 2.63 MiB 3.78 MiB 1.15 MiB
472960b+dirty 2.63 MiB 3.79 MiB 1.15 MiB
f870f2d+dirty 2.63 MiB 3.79 MiB 1.15 MiB

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 414.95 ms 420.28 ms 5.33 ms
Size 7.15 MiB 8.34 MiB 1.18 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
f870f2d+dirty 398.49 ms 434.24 ms 35.75 ms
3c99746+dirty 400.65 ms 399.59 ms -1.06 ms
472960b+dirty 394.39 ms 376.18 ms -18.20 ms

App size

Revision Plain With Sentry Diff
f870f2d+dirty 7.15 MiB 8.34 MiB 1.18 MiB
3c99746+dirty 7.15 MiB 8.34 MiB 1.18 MiB
472960b+dirty 7.15 MiB 8.34 MiB 1.18 MiB

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1242.94 ms 1249.27 ms 6.33 ms
Size 3.19 MiB 4.36 MiB 1.17 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
3c99746+dirty 1227.65 ms 1228.81 ms 1.16 ms
472960b+dirty 1243.67 ms 1233.57 ms -10.11 ms
f870f2d+dirty 1230.08 ms 1238.88 ms 8.80 ms

App size

Revision Plain With Sentry Diff
3c99746+dirty 3.19 MiB 4.35 MiB 1.16 MiB
472960b+dirty 3.19 MiB 4.36 MiB 1.17 MiB
f870f2d+dirty 3.19 MiB 4.36 MiB 1.17 MiB

Copy link
Copy Markdown
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 6, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 416.52 ms 406.89 ms -9.63 ms
Size 17.75 MiB 19.58 MiB 1.83 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
3c99746 399.51 ms 429.09 ms 29.58 ms
472960b 418.84 ms 405.38 ms -13.46 ms
f870f2d 444.67 ms 449.62 ms 4.95 ms

App size

Revision Plain With Sentry Diff
3c99746 17.75 MiB 19.58 MiB 1.83 MiB
472960b 17.75 MiB 19.58 MiB 1.83 MiB
f870f2d 17.75 MiB 19.58 MiB 1.83 MiB

Copy link
Copy Markdown
Collaborator

@lucas-zimerman lucas-zimerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@antonis antonis merged commit daa1f7d into v7 Jun 9, 2025
98 of 100 checks passed
@antonis antonis deleted the fix-non-native-envs branch June 9, 2025 07:06
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.

Don't enable native frames and app start in Expo Web, Expo Go and other unsupported environments

3 participants