Skip to content

Run jnigen on Android SDK bump#3083

Merged
buenaflor merged 4 commits intomainfrom
cursor/run-jnigen-on-android-sdk-bump-a3ba
Jul 16, 2025
Merged

Run jnigen on Android SDK bump#3083
buenaflor merged 4 commits intomainfrom
cursor/run-jnigen-on-android-sdk-bump-a3ba

Conversation

@buenaflor
Copy link
Copy Markdown
Contributor

Automatically regenerate Dart JNI bindings when the Sentry Android SDK is updated.

#skip-changelog

cursoragent and others added 2 commits July 15, 2025 22:29
Co-authored-by: giancarlo.buenaflor <giancarlo.buenaflor@sentry.io>
Co-authored-by: giancarlo.buenaflor <giancarlo.buenaflor@sentry.io>
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.18%. Comparing base (e843899) to head (d11650e).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3083      +/-   ##
==========================================
+ Coverage   87.89%   89.18%   +1.28%     
==========================================
  Files         287       97     -190     
  Lines        9751     3522    -6229     
==========================================
- Hits         8571     3141    -5430     
+ Misses       1180      381     -799     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Copy Markdown
Contributor

Android Performance metrics 🚀

  Plain With Sentry Diff
Startup time 486.67 ms 561.30 ms 74.64 ms
Size 6.54 MiB 7.69 MiB 1.15 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
575ebaa 478.00 ms 585.76 ms 107.76 ms
ec78888 457.94 ms 519.96 ms 62.02 ms
81f83eb 471.40 ms 522.14 ms 50.74 ms
0fb3800 465.64 ms 536.77 ms 71.13 ms
e2d675d 457.92 ms 529.17 ms 71.25 ms
9b99523 456.91 ms 490.55 ms 33.64 ms
c8596a6 474.00 ms 492.96 ms 18.96 ms
73dca78 476.53 ms 522.21 ms 45.68 ms
793f4dc 462.68 ms 544.21 ms 81.53 ms
93b7728 475.28 ms 489.13 ms 13.86 ms

App size

Revision Plain With Sentry Diff
575ebaa 6.54 MiB 7.69 MiB 1.15 MiB
ec78888 6.54 MiB 7.69 MiB 1.15 MiB
81f83eb 6.54 MiB 7.69 MiB 1.15 MiB
0fb3800 6.54 MiB 7.69 MiB 1.15 MiB
e2d675d 6.54 MiB 7.69 MiB 1.15 MiB
9b99523 6.54 MiB 7.69 MiB 1.15 MiB
c8596a6 6.54 MiB 7.53 MiB 1015.27 KiB
73dca78 6.54 MiB 7.69 MiB 1.15 MiB
793f4dc 6.54 MiB 7.69 MiB 1.15 MiB
93b7728 6.54 MiB 7.69 MiB 1.15 MiB

if [[ -n ${CI:+x} ]]; then
echo "Running in CI – setting up Flutter SDK first"
# Note: keep version in sync with other binding generation scripts.
curl -Lv https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.27.3-stable.tar.xz --output /tmp/flutter.tar.xz
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we rely on the CI action to setup flutter? Here we pin to a specific version, when in CI we use the most recent one.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if that will work with the updater workflow, I think in that case we'd need to update the upstream workflow action to allow us to inject steps before executing the script

fwiw it's also done the same way in generate-cocoa-bindings.sh

@buenaflor buenaflor merged commit 435f3b7 into main Jul 16, 2025
69 of 70 checks passed
@buenaflor buenaflor deleted the cursor/run-jnigen-on-android-sdk-bump-a3ba branch July 16, 2025 13:55
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.

3 participants