Skip to content

Conversation

@github-actions
Copy link
Contributor

Bumps packages/flutter/scripts/update-android.sh from 8.28.0 to 8.30.0.

Auto-generated by a dependency updater.

Changelog

8.30.0

Fixes

  • Fix ANRs when collecting device context (#4970)
    • IMPORTANT: This disables collecting external storage size (total/free) by default, to enable it back
      use options.isCollectExternalStorageContext = true or <meta-data android:name="io.sentry.external-storage-context" android:value="true" />
  • Fix NullPointerException when reading ANR marker (#4979)
  • Report discarded log in batch processor as log_byte (#4971)

Improvements

  • Expose MAX_EVENT_SIZE_BYTES constant in SentryOptions (#4962)
  • Discard envelopes on 4xx and 5xx response (#4950)
    • This aims to not overwhelm Sentry after an outage or load shedding (including HTTP 429) where too many events are sent at once

Feature

  • Add a Tombstone integration that detects native crashes without relying on the NDK integration, but instead using ApplicationExitInfo.REASON_CRASH_NATIVE on Android 12+. (#4933)
    • Currently exposed via options as an internal API only.
    • If enabled alongside the NDK integration, crashes will be reported as two separate events. Users should enable only one; deduplication between both integrations will be added in a future release.
  • Add Sentry Metrics to Java SDK (#5026)
    • Metrics are enabled by default
    • APIs are namespaced under Sentry.metrics()
    • We offer the following APIs:
      • count: A metric that increments counts
      • gauge: A metric that tracks a value that can go up or down
      • distribution: A metric that tracks the statistical distribution of values
    • For more details, see the Metrics documentation: https://docs.sentry.io/product/explore/metrics/getting-started/

8.29.0

Fixes

  • Support serialization of primitive arrays (boolean[], byte[], short[], char[], int[], long[], float[], double[]) (#4968)
  • Session Replay: Improve network body parsing and truncation handling (#4958)

Internal

  • Support metric envelope item type (#4956)

@bruno-garcia bruno-garcia force-pushed the deps/packages/flutter/scripts/update-android.sh/8.30.0 branch 3 times, most recently from adacaf1 to cf747aa Compare January 15, 2026 15:41
@bruno-garcia bruno-garcia force-pushed the deps/packages/flutter/scripts/update-android.sh/8.30.0 branch from cf747aa to 9498615 Compare January 15, 2026 18:02

dependencies {
api 'io.sentry:sentry-android:8.28.0'
api 'io.sentry:sentry-android:8.30.0'
Copy link

Choose a reason for hiding this comment

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

Bug: Updating the Android SDK disables external storage context collection by default. The Flutter integration doesn't re-enable it, which will cause integration tests to fail.
Severity: HIGH

Suggested Fix

To maintain backward compatibility and ensure tests pass, call androidOptions.setCollectExternalStorageContext(true) within the configureAndroidOptions() function. This will restore the previous behavior of collecting external storage information.

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/flutter/android/build.gradle#L65

Potential issue: The update to Android SDK v8.30.0 changes the default behavior to no
longer collect external storage size information. The PR adds the necessary bindings
(`setCollectExternalStorageContext`) to control this, but fails to call
`setCollectExternalStorageContext(true)` during initialization in
`configureAndroidOptions()`. As a result, the `storage_size` and `free_storage` fields
will be missing from the device context on Android. This will cause integration tests in
`integration_test.dart`, which explicitly check for these fields, to fail. This is a
breaking change for any users who rely on this device context information.

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants