Bump Sentry Gradle plugin 6.21.0, SDK 8.55.0, native-ndk 0.16.5 - #271
Open
romtsn wants to merge 1 commit into
Open
Bump Sentry Gradle plugin 6.21.0, SDK 8.55.0, native-ndk 0.16.5#271romtsn wants to merge 1 commit into
romtsn wants to merge 1 commit into
Conversation
- Gradle plugin: 6.17.0 → 6.21.0 - SDK (auto-installed): 8.51.0 → 8.55.0 - sentry-native-ndk: 0.16.0 → 0.16.5 New features implemented: - SpanOptions with explicit start timestamps (SDK 8.53.0) - Feedback shake runtime toggle (SDK 8.53.0) - User feedback screenshot attachment (SDK 8.54.0) - Session Replay manual flush (SDK 8.54.0) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ExrBPjfodaiBAJaKDmSWBh
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #271 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 16 16
Lines 883 891 +8
Branches 67 67
=====================================
- Misses 883 891 +8 ☔ 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.21.0
optimization.enableDSL; eliminate reflection for SDK class-availability checks (~1% init time reduction)optimization.enabledetection when variant is wrapped by AGP analyticsSDK 8.51.0 → 8.55.0
RGB_565, batch scope-persistence disk writes, reduce SDK thread count, prevent cold app start inflation on API 35+SpanOptions; runtime shake-to-report toggle viaSentry.feedback().enableOnShake()/disableOnShake()Sentry.replay()(start(),stop(),pause(),resume(),flush()); screenshot attachment for user feedback widget; app vitals on standaloneapp.startchildrenSession.State.Unhandledfor unhandled errors that don't terminate the process; singleui.composespan perSentryTracedon initial composition; ANR profiling moved out of experimentalsentry-native 0.16.0 → 0.16.5
sentry_app_hang_pause, scope/transport/callback APIs), forwardenable_logsthroughNdkOptions, various fixessentry_crashfor deliberate crash testing, thread stackwalk mode, 68 perf-monitoring functions promoted to stableNew 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. Demonstrates both newly public APIs:SpanOptions.setStartTimestamp()andISpan.startChild(operation, description, SpanOptions).Feedback shake runtime toggle (SDK 8.53.0) — In
MainFragment.checkout(),Sentry.feedback().disableOnShake()is called at the start of checkout to suppress accidental feedback during the checkout flow. After checkout completes (both success and failure paths),Sentry.feedback().enableOnShake()re-enables shake-to-report. This demonstrates the new runtime toggle API with a natural use case: preventing feedback interruptions during critical user flows.User feedback screenshot attachment (SDK 8.54.0) — Added
io.sentry.feedback.enable-attach-screenshot=trueinAndroidManifest.xml. Enables the screenshot attachment button in the feedback widget so users can attach a screenshot when submitting feedback.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.Features skipped (with technical blockers)
sentry_app_hang_pause,sentry_scope_remove_fingerprint,sentry_options_set_before_send_feedback,sentry_scope_set_span,sentry_scope_set_transaction_object, custom HTTP transport,sentry_set_tags,sentry_crash,sentry_options_set_thread_stackwalk_mode,sentry_value_foreach_*) — C-level APIs 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 changesSession.State.Unhandled(SDK 8.55.0) — Internal SDK behavior for session state tracking; automatically categorizes sessions with unhandled errors that don't crash. No app-level code changes needed.variants {}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.feedback().disableOnShake()/enableOnShake(),Sentry.replay().flush()) were verified against the sentry-java 8.55.0 release notes.🤖 Generated with Claude Code
https://claude.ai/code/session_01ExrBPjfodaiBAJaKDmSWBh
Generated by Claude Code