Skip to content
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

misc: Split react-native and macos samples #4132

Merged

Conversation

krystofwoldrich
Copy link
Member

📢 Type of change

  • Enhancement
  • Refactoring

📜 Description

This PR moves the macos sample project under standalone react-native project. This enables us to not depended on the react-native-macos version and compatibility with react-native. Using standalone project we can keep the react-native on the latest RN version and react-native-macos sample on the latest RN version supported by the macos fork.

💡 Motivation and Context

💚 How did you test it?

ci build job, build and run the app locally

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • All tests passing
  • No breaking changes

#skip-changelog

Copy link
Contributor

github-actions bot commented Oct 1, 2024

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 453.02 ms 525.10 ms 72.08 ms
Size 7.15 MiB 8.34 MiB 1.19 MiB

Baseline results on branch: v6

Startup times

Revision Plain With Sentry Diff
f77a902+dirty 478.49 ms 516.40 ms 37.91 ms

App size

Revision Plain With Sentry Diff
f77a902+dirty 7.15 MiB 8.34 MiB 1.19 MiB

Copy link
Contributor

github-actions bot commented Oct 1, 2024

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1227.76 ms 1228.46 ms 0.70 ms
Size 2.92 MiB 3.64 MiB 739.49 KiB

Baseline results on branch: v6

Startup times

Revision Plain With Sentry Diff
f77a902+dirty 1223.83 ms 1227.98 ms 4.15 ms

App size

Revision Plain With Sentry Diff
f77a902+dirty 2.92 MiB 3.64 MiB 739.16 KiB

Copy link
Contributor

github-actions bot commented Oct 1, 2024

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1229.27 ms 1233.17 ms 3.90 ms
Size 2.36 MiB 3.08 MiB 733.18 KiB

Baseline results on branch: v6

Startup times

Revision Plain With Sentry Diff
f77a902+dirty 1227.09 ms 1226.74 ms -0.35 ms

App size

Revision Plain With Sentry Diff
f77a902+dirty 2.36 MiB 3.08 MiB 733.32 KiB

@krystofwoldrich krystofwoldrich marked this pull request as draft October 1, 2024 11:22
Copy link
Contributor

github-actions bot commented Oct 1, 2024

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 426.22 ms 453.33 ms 27.11 ms
Size 17.74 MiB 20.06 MiB 2.33 MiB

Baseline results on branch: v6

Startup times

Revision Plain With Sentry Diff
f77a902 484.04 ms 487.57 ms 3.53 ms

App size

Revision Plain With Sentry Diff
f77a902 17.74 MiB 20.06 MiB 2.33 MiB

@krystofwoldrich krystofwoldrich marked this pull request as ready for review October 1, 2024 12:59
@krystofwoldrich
Copy link
Member Author

krystofwoldrich commented Oct 1, 2024

I fixed the CI now it's ready for review.

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 changes and file moves LGTM 🎉
Noting that I faced issues building the macos project locally with the new architecture. Cleaning up my local setup and using yarn pod-install-legacy worked for me both from xcode 16 and the command line (yarn react-native run-macos)

@antonis
Copy link
Collaborator

antonis commented Oct 2, 2024

Noting that I faced issues building the macos project locally with the new architecture. Cleaning up my local setup and using yarn pod-install-legacy worked for me both from xcode 16 and the command line (yarn react-native run-macos)

I've opened a PR for this #4138

@krystofwoldrich krystofwoldrich merged commit 6ecc2b7 into v6 Oct 2, 2024
7 checks passed
@krystofwoldrich krystofwoldrich deleted the @krystofwoldrich/split-react-native-and-macos-samples branch October 2, 2024 08:57
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.

2 participants