Content-Length: 478777 | pFad | https://github.com/getsentry/sentry-react-native/pull/4442

6D ref(ios): Extract Cocoa SDK init into standalone file by krystofwoldrich · Pull Request #4442 · getsentry/sentry-react-native · GitHub
Skip to content

ref(ios): Extract Cocoa SDK init into standalone file #4442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Jan 21, 2025

Conversation

krystofwoldrich
Copy link
Member

@krystofwoldrich krystofwoldrich commented Jan 14, 2025

📢 Type of change

  • Refactoring

📜 Description

This PR doesn't change any of the initialization logic, only moves the code from the main module file to a standalone class for future changes.

💡 Motivation and Context

💚 How did you test it?

sample app

📝 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

@krystofwoldrich krystofwoldrich changed the title Kw ref ios sdk init ref(ios): Extract Cocoa SDK init into standalone file Jan 14, 2025
Copy link
Contributor

github-actions bot commented Jan 14, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 532.29 ms 555.63 ms 23.34 ms
Size 17.75 MiB 20.11 MiB 2.37 MiB

Previous results on branch: kw-ref-ios-sdk-init

Startup times

Revision Plain With Sentry Diff
650ad89 448.65 ms 437.68 ms -10.97 ms
aca58c3 466.10 ms 450.37 ms -15.73 ms
6326ab7 445.10 ms 434.72 ms -10.39 ms

App size

Revision Plain With Sentry Diff
650ad89 17.75 MiB 20.11 MiB 2.36 MiB
aca58c3 17.75 MiB 20.11 MiB 2.36 MiB
6326ab7 17.75 MiB 20.11 MiB 2.37 MiB

Copy link
Contributor

github-actions bot commented Jan 14, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 461.37 ms 530.94 ms 69.57 ms
Size 7.15 MiB 8.38 MiB 1.23 MiB

Previous results on branch: kw-ref-ios-sdk-init

Startup times

Revision Plain With Sentry Diff
6326ab7+dirty 390.48 ms 445.07 ms 54.59 ms
650ad89+dirty 317.38 ms 328.64 ms 11.26 ms
aca58c3+dirty 390.15 ms 460.67 ms 70.52 ms

App size

Revision Plain With Sentry Diff
6326ab7+dirty 7.15 MiB 8.38 MiB 1.23 MiB
650ad89+dirty 7.15 MiB 8.38 MiB 1.23 MiB
aca58c3+dirty 7.15 MiB 8.38 MiB 1.23 MiB

Copy link
Contributor

github-actions bot commented Jan 14, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1256.67 ms 1246.48 ms -10.19 ms
Size 3.19 MiB 4.25 MiB 1.06 MiB

Previous results on branch: kw-ref-ios-sdk-init

Startup times

Revision Plain With Sentry Diff
650ad89+dirty 1248.86 ms 1252.69 ms 3.84 ms
aca58c3+dirty 1227.92 ms 1243.36 ms 15.44 ms
6326ab7+dirty 1211.35 ms 1212.63 ms 1.27 ms

App size

Revision Plain With Sentry Diff
650ad89+dirty 3.19 MiB 4.25 MiB 1.06 MiB
aca58c3+dirty 3.19 MiB 4.25 MiB 1.06 MiB
6326ab7+dirty 3.19 MiB 4.25 MiB 1.06 MiB

Copy link
Contributor

github-actions bot commented Jan 14, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1229.63 ms 1238.63 ms 9.00 ms
Size 2.63 MiB 3.69 MiB 1.05 MiB

Previous results on branch: kw-ref-ios-sdk-init

Startup times

Revision Plain With Sentry Diff
650ad89+dirty 1231.02 ms 1239.31 ms 8.29 ms
aca58c3+dirty 1233.37 ms 1239.63 ms 6.27 ms
6326ab7+dirty 1228.06 ms 1224.84 ms -3.23 ms

App size

Revision Plain With Sentry Diff
650ad89+dirty 2.63 MiB 3.68 MiB 1.05 MiB
aca58c3+dirty 2.63 MiB 3.68 MiB 1.05 MiB
6326ab7+dirty 2.63 MiB 3.69 MiB 1.05 MiB

@krystofwoldrich krystofwoldrich changed the base branch from main to kw-chore-ios-time-to-display-init January 14, 2025 17:24
Base automatically changed from kw-chore-ios-time-to-display-init to main January 16, 2025 10:54
@krystofwoldrich krystofwoldrich changed the base branch from main to capture-app-start-errors January 20, 2025 14:52
@krystofwoldrich krystofwoldrich marked this pull request as ready for review January 20, 2025 15:55
Copy link
Collaborator

@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.

The refactoring LGTM and the sample app worked as expected for me 🚀

Copy link

@philprime philprime left a comment

Choose a reason for hiding this comment

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

I didn't run the tests locally, but the cocoa code looks fine to me.
@ @philipphofmann @brustolin I would appreciate a second opinion

Copy link
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

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

LGTM, for moving stuff around.

@krystofwoldrich krystofwoldrich merged commit 00e9040 into capture-app-start-errors Jan 21, 2025
60 checks passed
@krystofwoldrich krystofwoldrich deleted the kw-ref-ios-sdk-init branch January 21, 2025 16:22
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.

4 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/getsentry/sentry-react-native/pull/4442

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy