chore(deps): update Sentry Android Gradle Plugin to v6.18.0 - #6571
Conversation
bf261a4 to
0a680e7
Compare
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog.
🤖 This preview updates automatically when you update the PR. |
0a680e7 to
a1f35ec
Compare
| } | ||
|
|
||
| export const sentryAndroidGradlePluginVersion = '6.17.0'; | ||
| export const sentryAndroidGradlePluginVersion = '6.18.0'; |
There was a problem hiding this comment.
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.
ef75a97 to
bbe9c5b
Compare
There was a problem hiding this comment.
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.
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'; |
There was a problem hiding this comment.
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)
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit bbe9c5b. Configure here.
8d13073 to
41e8247
Compare
41e8247 to
846e9a2
Compare


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
optimization.enableDSL (#1376)Performance
sentry.runtimeOptimizations.enabled = false.Dependencies