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

chore: Removes unused java imports #4119

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

antonis
Copy link
Collaborator

@antonis antonis commented Sep 25, 2024

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

This PR removes unused imports from the react native Java implementation

Note
This PR depends on #4042 to avoid conflicts

💡 Motivation and Context

This is a follow up on the discussion at #4042 (comment)

💚 How did you test it?

Verified that the tests and sample app runs as expected

📝 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

🔮 Next steps

#skip-changelog

Copy link
Contributor

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 351.91 ms 417.27 ms 65.36 ms
Size 7.15 MiB 8.34 MiB 1.19 MiB

Baseline results on branch: test/deadline

Startup times

Revision Plain With Sentry Diff
993f0a4+dirty 432.25 ms 491.56 ms 59.31 ms
5285e19+dirty 418.18 ms 460.47 ms 42.29 ms
5ba6409+dirty 436.37 ms 445.90 ms 9.53 ms
33f0cfb+dirty 431.30 ms 492.47 ms 61.17 ms

App size

Revision Plain With Sentry Diff
993f0a4+dirty 7.15 MiB 8.34 MiB 1.19 MiB
5285e19+dirty 7.15 MiB 8.34 MiB 1.19 MiB
5ba6409+dirty 7.15 MiB 8.34 MiB 1.19 MiB
33f0cfb+dirty 7.15 MiB 8.34 MiB 1.19 MiB

Copy link
Contributor

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1232.65 ms 1225.65 ms -6.99 ms
Size 2.36 MiB 3.08 MiB 735.55 KiB

Baseline results on branch: test/deadline

Startup times

Revision Plain With Sentry Diff
5285e19+dirty 1234.54 ms 1235.31 ms 0.76 ms
33f0cfb+dirty 1220.29 ms 1214.19 ms -6.10 ms
5ba6409+dirty 1209.31 ms 1207.46 ms -1.85 ms
993f0a4+dirty 1238.52 ms 1241.51 ms 2.99 ms

App size

Revision Plain With Sentry Diff
5285e19+dirty 2.36 MiB 3.08 MiB 735.56 KiB
33f0cfb+dirty 2.36 MiB 3.08 MiB 735.59 KiB
5ba6409+dirty 2.36 MiB 3.08 MiB 735.56 KiB
993f0a4+dirty 2.36 MiB 3.08 MiB 732.19 KiB

Copy link
Contributor

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 465.26 ms 471.94 ms 6.68 ms
Size 17.73 MiB 20.07 MiB 2.33 MiB

Baseline results on branch: test/deadline

Startup times

Revision Plain With Sentry Diff
33f0cfb 366.32 ms 409.22 ms 42.90 ms
993f0a4 486.06 ms 505.04 ms 18.98 ms
5285e19 467.43 ms 471.20 ms 3.77 ms
5ba6409 516.43 ms 521.07 ms 4.63 ms

App size

Revision Plain With Sentry Diff
33f0cfb 17.73 MiB 20.07 MiB 2.33 MiB
993f0a4 17.73 MiB 20.06 MiB 2.33 MiB
5285e19 17.73 MiB 20.07 MiB 2.33 MiB
5ba6409 17.73 MiB 20.07 MiB 2.33 MiB

Copy link
Contributor

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1254.76 ms 1243.27 ms -11.49 ms
Size 2.92 MiB 3.64 MiB 741.46 KiB

Baseline results on branch: test/deadline

Startup times

Revision Plain With Sentry Diff
5285e19+dirty 1228.69 ms 1218.22 ms -10.47 ms
33f0cfb+dirty 1247.61 ms 1241.02 ms -6.59 ms
5ba6409+dirty 1231.40 ms 1236.81 ms 5.42 ms
993f0a4+dirty 1241.51 ms 1235.85 ms -5.66 ms

App size

Revision Plain With Sentry Diff
5285e19+dirty 2.92 MiB 3.64 MiB 741.52 KiB
33f0cfb+dirty 2.92 MiB 3.64 MiB 741.43 KiB
5ba6409+dirty 2.92 MiB 3.64 MiB 741.50 KiB
993f0a4+dirty 2.92 MiB 3.64 MiB 738.79 KiB

@antonis antonis added the java Pull requests that update Java code label Sep 25, 2024
Copy link
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! thank you!

@lucas-zimerman lucas-zimerman merged commit 4710843 into test/deadline Sep 25, 2024
59 of 60 checks passed
@lucas-zimerman lucas-zimerman deleted the antonis/remove-java-imports-cleanup branch September 25, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants