Skip to content

chore(deps): update Sentry Android Gradle Plugin to v6.18.0 - #6571

Merged
alwx merged 1 commit into
mainfrom
deps/scripts/update-sentry-android-gradle-plugin.sh
Aug 11, 2026
Merged

chore(deps): update Sentry Android Gradle Plugin to v6.18.0#6571
alwx merged 1 commit into
mainfrom
deps/scripts/update-sentry-android-gradle-plugin.sh

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Bumps scripts/update-sentry-android-gradle-plugin.sh from 6.17.0 to 6.18.0.

Auto-generated by a dependency updater.

Changelog

6.18.0

Fixes

  • Support ProGuard mapping tasks when R8 is enabled with the AGP app optimization.enable DSL (#1376)

Performance

  • Eliminate reflection for known optional Sentry SDK class-availability checks, reducing SDK initialization time by about 1% in an absent-heavy startup benchmark (#1375)
    • This optimization is enabled by default. If it causes problems, disable it with sentry.runtimeOptimizations.enabled = false.

Dependencies

@github-actions github-actions Bot added the dependencies Pull requests that update a dependency file label Aug 8, 2026
@github-actions github-actions Bot added the dependencies Pull requests that update a dependency file label Aug 8, 2026
@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-sentry-android-gradle-plugin.sh branch from bf261a4 to 0a680e7 Compare August 8, 2026 03:30
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

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 Sentry Android Gradle Plugin to v6.18.0 by github-actions[bot] in #6571
  • fix(core): Measure callback-style native module calls until completion by alwx in #6561
  • chore(deps): bump brace-expansion to ^2.1.4 / ^5.0.9 by alwx in #6577
  • fix(expo): Resolve config-plugins through the expo package by alwx in #6581
  • chore(deps): bump js-yaml to ^3.15.1 / ^4.3.1 by alwx in #6578
  • docs(core): Correct enableTurboModuleTracking docs and document TurboModule plumbing by alwx in #6582
  • docs: fix dead links in the README by luccasfraga in #6570
  • chore(deps): update Maestro to v2.8.0 by github-actions in #6551
  • chore(deps): update Android SDK to v8.52.0 by github-actions in #6566
  • chore(deps): bump the codeql-action group with 3 updates by dependabot in #6572
  • chore(deps): bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.28.0 to 2.30.0 by dependabot in #6573
  • chore(deps): bump getsentry/craft from 2.28.0 to 2.30.0 by dependabot in #6575
  • chore(deps): bump dorny/paths-filter from 4.0.2 to 4.0.3 by dependabot in #6574
  • chore(deps): bump nanoid from 3.3.8 to 3.3.18 by dependabot in #6579
  • chore(deps): bump gradle/actions/setup-gradle from 6.2.0 to 6.3.0 by dependabot in #6576
  • chore(ci): remove Cirrus runners and use only Bitrise by itaybre in #6563
  • fix(ios): Re-land SentrySDK.internal migration, bump Cocoa SDK to 9.24.0 by alwx in #6541
  • ci: Replace curl-pipe-bash with action-setup-cli for Sentry CLI setup by oioki in #6567

🤖 This preview updates automatically when you update the PR.

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author
Fails
🚫 Pull request is not ready for merge, please add the "ready-to-merge" label to the pull request

Generated by 🚫 dangerJS against 846e9a2

@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-sentry-android-gradle-plugin.sh branch from 0a680e7 to a1f35ec Compare August 10, 2026 11:13
}

export const sentryAndroidGradlePluginVersion = '6.17.0';
export const sentryAndroidGradlePluginVersion = '6.18.0';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: The Sentry Android Gradle Plugin version was updated, but the corresponding sentryAndroidVersion in build.gradle was not, leading to a version mismatch and potential runtime crash.
Severity: HIGH

Suggested Fix

Update the sentryAndroidVersion variable in packages/core/android/build.gradle from '8.51.0' to '8.52.0' to match the version bundled with the updated Gradle plugin.

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/plugin/src/withSentryAndroidGradlePlugin.ts#L18

Potential issue: The PR updates the Gradle plugin to version 6.18.0, which bundles
Sentry Android SDK v8.52.0. However, `packages/core/android/build.gradle` still
specifies `sentryAndroidVersion = '8.51.0'`. When `autoInstallation.enabled = true`, the
Gradle plugin attempts to inject SDK v8.52.0 while the React Native module declares
v8.51.0. This results in two different SDK versions on the classpath, causing a runtime
`IllegalStateException` due to the version mix.

Also affects:

  • samples/react-native/android/build.gradle:19~19

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

@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-sentry-android-gradle-plugin.sh branch 2 times, most recently from ef75a97 to bbe9c5b Compare August 10, 2026 11:21

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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.

Fix All in Cursor

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

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit bbe9c5b. Configure here.

}

export const sentryAndroidGradlePluginVersion = '6.17.0';
export const sentryAndroidGradlePluginVersion = '6.18.0';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CRITICAL: Android SDK version mismatch

Medium Severity

Flagging this from the dependency-update review guidelines in the rules file. SAGP 6.18.0 bundles sentry-android 8.52.0, while this repo still pins 8.51.0. With SAGP autoInstallation left at its default (true), that mismatch can throw IllegalStateException: Sentry SDK has detected a mix of versions at startup. Expo config and docs disable autoInstallation, so guided setups stay safe; unguided apps do not.

Additional Locations (1)
Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit bbe9c5b. Configure here.

@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-sentry-android-gradle-plugin.sh branch 9 times, most recently from 8d13073 to 41e8247 Compare August 10, 2026 21:15
@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-sentry-android-gradle-plugin.sh branch from 41e8247 to 846e9a2 Compare August 11, 2026 09:20
@alwx
alwx merged commit 36a65c1 into main Aug 11, 2026
61 of 67 checks passed
@alwx
alwx deleted the deps/scripts/update-sentry-android-gradle-plugin.sh branch August 11, 2026 09:40
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