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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(android): Add enableNdk to rn options #3304

Merged
merged 4 commits into from
Sep 27, 2023
Merged

Conversation

krystofwoldrich
Copy link
Member

馃摙 Type of change

  • New feature

馃摐 Description

This PR adds an option to disable/enable the sentry native on Android. This should help users experiencing https://issuetracker.google.com/issues/300840851 until resolved.

馃挕 Motivation and Context

馃挌 How did you test it?

ci

馃摑 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

@github-actions
Copy link
Contributor

github-actions bot commented Sep 26, 2023

Messages
馃摉 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 馃毇 dangerJS against c9d17a1

@github-actions
Copy link
Contributor

iOS (new) Performance metrics 馃殌

Plain With Sentry Diff
Startup time 1253.72 ms 1274.00 ms 20.28 ms
Size 2.92 MiB 3.43 MiB 524.64 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
d197b5c+dirty 1234.80 ms 1249.20 ms 14.40 ms
15c80ab+dirty 1248.41 ms 1251.24 ms 2.83 ms
0db0c72+dirty 1258.88 ms 1262.52 ms 3.64 ms
d0bf494+dirty 1266.20 ms 1267.52 ms 1.32 ms
52a8031+dirty 1255.96 ms 1273.00 ms 17.04 ms
70caa60+dirty 1279.08 ms 1281.54 ms 2.46 ms
e5c9b8b+dirty 1276.90 ms 1280.92 ms 4.02 ms
b1e8712+dirty 1284.11 ms 1297.82 ms 13.71 ms
acadc0f+dirty 1271.12 ms 1272.28 ms 1.16 ms
0677344+dirty 1252.52 ms 1254.08 ms 1.56 ms

App size

Revision Plain With Sentry Diff
d197b5c+dirty 2.92 MiB 3.37 MiB 464.41 KiB
15c80ab+dirty 2.92 MiB 3.39 MiB 481.56 KiB
0db0c72+dirty 2.92 MiB 3.40 MiB 492.71 KiB
d0bf494+dirty 2.92 MiB 3.40 MiB 488.08 KiB
52a8031+dirty 2.92 MiB 3.38 MiB 475.71 KiB
70caa60+dirty 2.92 MiB 3.39 MiB 486.04 KiB
e5c9b8b+dirty 2.92 MiB 3.43 MiB 524.50 KiB
b1e8712+dirty 2.92 MiB 3.40 MiB 494.15 KiB
acadc0f+dirty 2.92 MiB 3.39 MiB 487.34 KiB
0677344+dirty 2.92 MiB 3.41 MiB 500.94 KiB

@github-actions
Copy link
Contributor

github-actions bot commented Sep 26, 2023

Android (new) Performance metrics 馃殌

Plain With Sentry Diff
Startup time 291.73 ms 363.74 ms 72.01 ms
Size 7.15 MiB 8.10 MiB 980.91 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
d197b5c+dirty 258.75 ms 313.61 ms 54.86 ms
15c80ab+dirty 276.38 ms 327.54 ms 51.17 ms
0db0c72+dirty 335.20 ms 351.06 ms 15.86 ms
d0bf494+dirty 253.73 ms 308.23 ms 54.49 ms
52a8031+dirty 330.72 ms 358.76 ms 28.03 ms
70caa60+dirty 308.83 ms 393.06 ms 84.23 ms
e5c9b8b+dirty 335.40 ms 360.06 ms 24.67 ms
b1e8712+dirty 322.55 ms 331.84 ms 9.29 ms
acadc0f+dirty 259.04 ms 304.67 ms 45.63 ms
0677344+dirty 288.40 ms 391.44 ms 103.04 ms

App size

Revision Plain With Sentry Diff
d197b5c+dirty 7.15 MiB 8.09 MiB 962.72 KiB
15c80ab+dirty 7.15 MiB 8.09 MiB 966.13 KiB
0db0c72+dirty 7.15 MiB 8.04 MiB 911.02 KiB
d0bf494+dirty 7.15 MiB 8.04 MiB 910.85 KiB
52a8031+dirty 7.15 MiB 8.09 MiB 965.95 KiB
70caa60+dirty 7.15 MiB 8.03 MiB 901.79 KiB
e5c9b8b+dirty 7.15 MiB 8.10 MiB 980.41 KiB
b1e8712+dirty 7.15 MiB 8.04 MiB 912.27 KiB
acadc0f+dirty 7.15 MiB 8.03 MiB 903.20 KiB
0677344+dirty 7.15 MiB 8.07 MiB 949.80 KiB

@github-actions
Copy link
Contributor

github-actions bot commented Sep 26, 2023

Android (legacy) Performance metrics 馃殌

Plain With Sentry Diff
Startup time 394.55 ms 416.77 ms 22.22 ms
Size 17.73 MiB 19.83 MiB 2.10 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
d197b5c+dirty 338.94 ms 354.87 ms 15.93 ms
15c80ab+dirty 336.27 ms 350.58 ms 14.31 ms
e5c9b8b 409.02 ms 426.66 ms 17.64 ms
abb7058 370.27 ms 389.58 ms 19.31 ms
0db0c72 372.12 ms 386.00 ms 13.88 ms
d0bf494+dirty 375.37 ms 395.14 ms 19.77 ms
52a8031+dirty 311.55 ms 321.37 ms 9.82 ms
70caa60+dirty 299.00 ms 321.02 ms 22.02 ms
3ffcddd 302.92 ms 315.80 ms 12.88 ms
acadc0f+dirty 373.24 ms 381.51 ms 8.27 ms

App size

Revision Plain With Sentry Diff
d197b5c+dirty 17.73 MiB 20.04 MiB 2.31 MiB
15c80ab+dirty 17.73 MiB 20.04 MiB 2.31 MiB
e5c9b8b 17.73 MiB 19.83 MiB 2.10 MiB
abb7058 17.73 MiB 19.83 MiB 2.10 MiB
0db0c72 17.73 MiB 19.75 MiB 2.02 MiB
d0bf494+dirty 17.73 MiB 19.75 MiB 2.02 MiB
52a8031+dirty 17.73 MiB 20.04 MiB 2.31 MiB
70caa60+dirty 17.73 MiB 19.75 MiB 2.01 MiB
3ffcddd 17.73 MiB 19.75 MiB 2.02 MiB
acadc0f+dirty 17.73 MiB 19.75 MiB 2.01 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Sep 26, 2023

iOS (legacy) Performance metrics 馃殌

Plain With Sentry Diff
Startup time 1243.44 ms 1269.50 ms 26.06 ms
Size 2.36 MiB 2.87 MiB 520.55 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
d197b5c+dirty 1217.61 ms 1242.66 ms 25.05 ms
15c80ab+dirty 1223.74 ms 1228.96 ms 5.22 ms
0db0c72+dirty 1275.02 ms 1285.84 ms 10.82 ms
d0bf494+dirty 1289.40 ms 1298.40 ms 9.00 ms
52a8031+dirty 1280.88 ms 1289.78 ms 8.90 ms
70caa60+dirty 1218.27 ms 1230.30 ms 12.03 ms
e5c9b8b+dirty 1258.57 ms 1267.32 ms 8.75 ms
b1e8712+dirty 1256.02 ms 1265.14 ms 9.12 ms
acadc0f+dirty 1264.38 ms 1290.06 ms 25.68 ms
0677344+dirty 1276.70 ms 1300.07 ms 23.37 ms

App size

Revision Plain With Sentry Diff
d197b5c+dirty 2.36 MiB 2.82 MiB 462.86 KiB
15c80ab+dirty 2.36 MiB 2.83 MiB 474.49 KiB
0db0c72+dirty 2.36 MiB 2.84 MiB 487.01 KiB
d0bf494+dirty 2.36 MiB 2.83 MiB 481.15 KiB
52a8031+dirty 2.36 MiB 2.82 MiB 469.44 KiB
70caa60+dirty 2.36 MiB 2.83 MiB 479.27 KiB
e5c9b8b+dirty 2.36 MiB 2.87 MiB 520.43 KiB
b1e8712+dirty 2.36 MiB 2.84 MiB 488.84 KiB
acadc0f+dirty 2.36 MiB 2.83 MiB 480.37 KiB
0677344+dirty 2.36 MiB 2.85 MiB 496.81 KiB

src/js/options.ts Show resolved Hide resolved
Copy link
Member

@romtsn romtsn left a comment

Choose a reason for hiding this comment

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

@krystofwoldrich krystofwoldrich enabled auto-merge (squash) September 27, 2023 09:37
@krystofwoldrich krystofwoldrich merged commit 2c394d1 into main Sep 27, 2023
43 of 44 checks passed
@krystofwoldrich krystofwoldrich deleted the kw-add-enabled-ndk branch September 27, 2023 09:38
@TheRogue76
Copy link

Bless y'all. This has been a nightmare to track for the past 2 weeks.

@fabiendem
Copy link

fabiendem commented Sep 28, 2023

Hi @krystofwoldrich, sorry could you clarify if we're supposed to turn this flag off or on to prevent the issue from happening?
I have read the Google Issue track thread and didn't get the info there.
Is the default value you're setting enough?

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.

None yet

5 participants