Bump Sentry Gradle plugin 6.20.0, SDK 8.54.0, native-ndk 0.16.4 - #266
Open
romtsn wants to merge 1 commit into
Open
Bump Sentry Gradle plugin 6.20.0, SDK 8.54.0, native-ndk 0.16.4#266romtsn wants to merge 1 commit into
romtsn wants to merge 1 commit into
Conversation
- Gradle plugin: 6.17.0 → 6.20.0 - Android SDK (auto-installed): 8.51.0 → 8.54.0 - sentry-native-ndk: 0.16.0 → 0.16.4 New features implemented: - SpanOptions with explicit start timestamps (SDK 8.53.0) - Manual Session Replay controls via Sentry.replay() (SDK 8.54.0) - User Feedback screenshot attachment manifest flag (SDK 8.54.0)
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #266 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 16 16
Lines 883 887 +4
Branches 67 67
=====================================
- Misses 883 887 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps Sentry dependencies to latest stable versions:
Changelogs
Gradle Plugin 6.17.0 → 6.20.0
optimization.enableDSL; eliminate reflection for SDK class-availability checks (~1% init time reduction, enabled by default viaruntimeOptimizations)optimization.enabledetection when variant is wrapped by AGP analyticsSDK 8.51.0 → 8.54.0
Scope.clear(), halve screenshot/replay memory viaRGB_565, batch scope-persistence disk writes, reduce SDK thread count, prevent cold app start inflation on API 35+SpanOptions; makeISpan.startChildoverloads withSpanOptionspublicSentry.replay()(start(),stop(),pause(),resume(),flush()); screenshot attachment for user feedback widget (io.sentry.feedback.enable-attach-screenshot); app vitals on standaloneapp.startchildrensentry-native 0.16.0 → 0.16.4
sentry_app_hang_pause; fix crash reporter config checkssentry_scope_remove_fingerprint,sentry_options_set_before_send_feedback; fixes for FD leak, Crashpad init orderingenable_logsoption throughNdkOptions; C API:sentry_scope_set_span/sentry_scope_set_transaction_objectsentry_set_tags/sentry_get_last_event_id;on_crashed_last_runcallback; dynamic libcurl loadingNew features implemented
SpanOptions with explicit start timestamps (SDK 8.53.0) — In
MainFragment.checkout(), aSentryDateis captured viaSentryNanotimeDateright after the checkout transaction starts (before scope configuration and dialog setup). ASpanOptionsobject passes this timestamp as the explicit start time for theprocess_cart_datachild span, so the span timing accurately reflects the full checkout setup duration. This demonstrates both newly public APIs:SpanOptions.setStartTimestamp()andISpan.startChild(operation, description, SpanOptions).Manual Session Replay flush (SDK 8.54.0) — In
MainFragment.processDeliveryItem(),Sentry.replay().flush()is called after the checkout failure exception is captured. This ensures the replay segment around the checkout error is sent immediately rather than waiting for the buffer to fill, demonstrating the newSentry.replay()manual control API.User Feedback screenshot attachment (SDK 8.54.0) — Added
io.sentry.feedback.enable-attach-screenshot=trueinAndroidManifest.xml. This enables the new screenshot attachment capability in the feedback widget (enabled by default in 8.54.0, made explicit here for demo visibility).Features skipped (with technical blockers)
sentry_app_hang_pause(sentry-native 0.16.1) — C API not exposed through the Java/Kotlin Android SDKsentry_scope_remove_fingerprint/sentry_options_set_before_send_feedback(sentry-native 0.16.2) — C API not exposed through the Java/Kotlin Android SDKsentry_scope_set_span/sentry_scope_set_transaction_object(sentry-native 0.16.3) — C API not exposed through the Java/Kotlin Android SDKenable_logsthroughNdkOptions(sentry-native 0.16.3) — Automatic;options.getLogs().setEnabled(true)is already set inMyApplication, so the NDK option is forwarded without code changesio.sentry.standalone-app-start-tracing.enableis alreadytruein the manifest, soapp.vitals.start.screenandapp.vitals.start.typeare set automatically with no code changesvariants {}DSL enables per-variant configuration of tracing instrumentation and runtime optimizations; the app's current global config already applies uniformly to all variants, so no per-variant override is neededBuild verification
Build could not be fully verified —
./gradlew assembleDebugfails with HTTP 403 fromdl.google.comdue to network restrictions in the remote execution environment. This is an infrastructure issue, not a code issue. The Gradle plugin version, SDK version, and native-ndk version bumps are straightforward dependency updates, and the new API calls (SpanOptions,SentryNanotimeDate,ISpan.startChildwithSpanOptions,Sentry.replay().flush()) were verified against the sentry-java 8.54.0 release notes.Generated by Claude Code