Skip to content

chore(deps): update Android SDK to v8.34.0#5760

Open
github-actions[bot] wants to merge 4 commits intomainfrom
deps/scripts/update-android.sh
Open

chore(deps): update Android SDK to v8.34.0#5760
github-actions[bot] wants to merge 4 commits intomainfrom
deps/scripts/update-android.sh

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 5, 2026

Bumps scripts/update-android.sh from 8.33.0 to 8.34.0.

Auto-generated by a dependency updater.

Changelog

8.34.0

Features

  • Add scope-level attributes API (#5118) via (#5148)
    • Automatically include scope attributes in logs and metrics (#5120)
    • New APIs are Sentry.setAttribute, Sentry.setAttributes, Sentry.removeAttribute
  • Support collections and arrays in attribute type inference (#5124)
  • Add support for SENTRY_SAMPLE_RATE environment variable / sample-rate property (#5112)
  • Create sentry-opentelemetry-otlp and sentry-opentelemetry-otlp-spring modules for combining OpenTelemetry SDK OTLP export with Sentry SDK (#5100)
    • OpenTelemetry is configured to send spans to Sentry directly using an OTLP endpoint.
    • Sentry only uses trace and span ID from OpenTelemetry (via OpenTelemetryOtlpEventProcessor) but will not send spans through OpenTelemetry nor use OpenTelemetry Context for Scopes propagation.
    • See the OTLP setup docs for Java and Spring Boot for installation and configuration instructions.
  • Add screenshot masking support using view hierarchy (#5077)
    • Masks sensitive content (text, images) in error screenshots using the same view hierarchy approach as Session Replay
    • Requires the sentry-android-replay module to be present at runtime for masking to work
    • Enable via code:
      SentryAndroid.init(context) { options ->
          options.isAttachScreenshot = true
          options.screenshot.setMaskAllText(true)
          options.screenshot.setMaskAllImages(true)
          // Or mask specific view classes
          options.screenshot.addMaskViewClass("com.example.MyCustomView")
      }
    • Or via AndroidManifest.xml:
      <meta-data android:name="io.sentry.attach-screenshot" android:value="true" />
      <meta-data android:name="io.sentry.screenshot.mask-all-text" android:value="true" />
      <meta-data android:name="io.sentry.screenshot.mask-all-images" android:value="true" />
  • The ManifestMetaDataReader now read the DIST (#5107)

Fixes

  • Fix attribute type detection for Long, Short, Byte, BigInteger, AtomicInteger, and AtomicLong being incorrectly inferred as double instead of integer (#5122)
  • Remove AndroidRuntimeManager StrictMode relaxation to prevent ANRs during SDK init (#5127)
    • IMPORTANT: StrictMode violations may appear again in debug builds. This is intentional to prevent ANRs in production releases.
  • Fix crash when unregistering SystemEventsBroadcastReceiver with try-catch block. (#5106)
  • Use peekDecorView instead of getDecorView in SentryGestureListener to avoid forcing view hierarchy construction (#5134)
  • Log an actionable error message when Relay returns HTTP 413 (Content Too Large) (#5115)
    • Also switch the client report discard reason for all HTTP 4xx/5xx errors (except 429) from network_error to send_error
  • Trim DSN string before parsing to avoid URISyntaxException caused by trailing whitespace (#5113)
  • Reduce allocations and bytecode instructions during Sentry.init (#5135)

Dependencies

@github-actions github-actions bot requested review from alwx and antonis as code owners March 5, 2026 03:46
@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Mar 5, 2026
@github-actions github-actions bot requested a review from lucas-zimerman as a code owner March 5, 2026 03:46
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-android.sh branch from df3ec14 to 89d3a17 Compare March 5, 2026 03:46
@github-actions
Copy link
Contributor Author

github-actions bot commented Mar 5, 2026

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • chore(deps): update Android SDK to v8.34.0 by github-actions[bot] in #5760

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor Author

github-actions bot commented Mar 5, 2026

Fails
🚫 Pull request is not ready for merge, please add the "ready-to-merge" label to the pull request
🚫

❌ Android SDK Version Mismatch

Component Version
sentry-android in build.gradle 8.34.0
sentry-android bundled by gradle plugin 6.1.0 8.33.0

This mismatch will cause crashes on Android with error:

IllegalStateException: Sentry SDK has detected a mix of versions

Fix: Update packages/core/android/build.gradle to use version 8.33.0 or wait for a gradle plugin release that bundles 8.34.0.

Warnings
⚠️

🤖 Replay Stubs Check

No changes detected in replay-stubs.jar

All file contents are identical (verified by SHA-256 hash comparison).

Generated by 🚫 dangerJS against ee0cf6a

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

api 'io.sentry:sentry-android:8.33.0'
debugImplementation 'io.sentry:sentry-spotlight:8.33.0'
api 'io.sentry:sentry-android:8.34.0'
debugImplementation 'io.sentry:sentry-spotlight:8.34.0'
Copy link

Choose a reason for hiding this comment

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

Stale no-op bridge methods now implementable after SDK bump

Low Severity

Flagging this per the dependency update review rule. The v8.34.0 changelog introduces scope-level attributes API (Sentry.setAttribute, Sentry.setAttributes, Sentry.removeAttribute), but the native bridge methods setAttribute and setAttributes in RNSentryModuleImpl.java remain as no-ops with stale TODO comments reading "This is not implemented in sentry-android yet." The version bump requires corresponding bridge code updates to actually forward these calls to the now-available Android SDK APIs.

Additional Locations (1)

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-android.sh branch from 374b97e to f95d813 Compare March 5, 2026 08:23
* chore: update scripts/update-android-stubs.sh to 8.34.0

* Update stub

---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: Antonis Lilis <antonis.lilis@sentry.io>
Copy link
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Blocked dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants