Skip to content

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

Merged
antonis merged 3 commits intodeps/scripts/update-android.shfrom
deps/scripts/update-android-stubs.sh
Mar 5, 2026
Merged

chore(deps): update Android SDK Stubs to v8.34.0#5761
antonis merged 3 commits intodeps/scripts/update-android.shfrom
deps/scripts/update-android-stubs.sh

Conversation

@github-actions
Copy link
Contributor

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

Bumps scripts/update-android-stubs.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 added the dependencies Pull requests that update a dependency file label Mar 5, 2026
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-android-stubs.sh branch from 86dd935 to 97fd3de 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 Stubs to v8.34.0 by github-actions[bot] in #5761
  • chore(deps): update Android SDK to v8.34.0 by github-actions in #5760
  • chore(deps): update Cocoa SDK to v9.6.0 by github-actions in #5759
  • [iOS + Android] Add the ability to intercept errors from native side and forward them to JS console by alwx in #5622
  • Feat(Expo): Add expo constants on event context. by lucas-zimerman in #5748
  • chore(deps): update JavaScript SDK to v10.42.0 by github-actions in #5753
  • feat(core): Capture dynamic route params as span attributes by antonis in #5750
  • chore(deps): bump brace-expansion from 1.1.11 to 1.1.12 by dependabot in #5751
  • chore(deps): bump minimatch to fix ReDoS vulnerabilities and tmp to ^0.2.4 by antonis in #5749
  • chore(deps): bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.21.7 to 2.23.1 by dependabot in #5738
  • chore(deps): update Wizard to v6.12.0 by github-actions in #5747
  • chore(deps): update JavaScript SDK to v10.41.0 by github-actions in #5744
  • chore(deps): bump tar to ^7.5.8 by antonis in #5703
  • chore(deps): bump js-yaml to fix prototype pollution in merge by antonis in #5709
  • chore(deps): bump ajv to fix ReDoS in $data option by antonis in #5710
  • chore(deps): update CLI to v3.2.3 by github-actions in #5743
  • Fixes the issue with unit mismatch in adjustTransactionDuration by alwx in #5740
  • Handle inactive state for spans by alwx in #5742
  • chore(deps): bump actions/github-script from 7 to 8 by dependabot in #5737
  • chore(deps): bump actions/upload-artifact from 6 to 7 by dependabot in #5739
  • chore(deps): bump futureware-tech/simulator-action from 4 to 5 by dependabot in #5735
  • chore(deps): bump actions/download-artifact from 7 to 8 by dependabot in #5736
  • chore(deps): bump path-to-regexp to 0.1.12 by antonis in #5706
  • fix(ios): resolve relative SOURCEMAP_FILE against project root in Xcode build script by antonis in #5730

Plus 9 more


🤖 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
Warnings
⚠️ Failed to run ./check-replay-stubs: Invalid git ref: deps/scripts/update-android.sh

Generated by 🚫 dangerJS against 56b2d2d

@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-android-stubs.sh branch from 97fd3de to eee1d89 Compare March 5, 2026 07:22
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.

@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-android-stubs.sh branch from eee1d89 to 05d3cad Compare March 5, 2026 08:23

dependencies {
compileOnly 'io.sentry:sentry:8.33.0'
compileOnly 'io.sentry:sentry: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.

Bug: The replay-stubs.jar artifact was not rebuilt after its dependency version was updated in build.gradle, causing a version mismatch between the stubs and the declared dependency.
Severity: MEDIUM

Suggested Fix

Run yarn build or yarn build:replay-stubs to regenerate the packages/core/android/libs/replay-stubs.jar file. Commit the updated JAR file to the pull request to ensure the pre-compiled stubs match the declared dependency version.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: packages/core/android/replay-stubs/build.gradle#L21

Potential issue: The dependency version for `io.sentry:sentry` was bumped to `8.34.0` in
`replay-stubs/build.gradle`, but the pre-compiled `replay-stubs.jar` artifact was not
rebuilt and committed. The build process uses this pre-compiled JAR, which was compiled
against the older `8.33.0` version. This creates an inconsistency where new APIs from
version `8.34.0` will not be reflected in the stub classes, potentially leading to
compilation failures or runtime issues if downstream code attempts to use them.

Did we get this right? 👍 / 👎 to inform future reviews.

@antonis antonis changed the base branch from main to deps/scripts/update-android.sh March 5, 2026 08:25
@antonis antonis merged commit 7c31cab into deps/scripts/update-android.sh Mar 5, 2026
23 of 34 checks passed
@antonis antonis deleted the deps/scripts/update-android-stubs.sh branch March 5, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants