fix: pin android-core upper bound to prevent 6.0.0-rc.1 pull (#710)#329
Conversation
The open-ended `[5.79.0, )` range resolves to the highest available version on Maven Central — which is now `6.0.0-rc.1` (published 2026-05-22). 6.x removed deprecated symbols including `com.mparticle.UserAttributeListener`, breaking this module's compile. Fixes #710. Consumers who built successfully before 2026-05-22 are now broken without any change on their side; this pin restores them. Closes mParticle/mparticle-android-sdk#710 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
PR SummaryLow Risk Overview This restores builds for apps that pull this React Native module without pinning core themselves, and defers adopting 6.x until this bridge is updated explicitly. Reviewed by Cursor Bugbot for commit ebec470. Bugbot is set up for automated code reviews on this repo. Configure here. |
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, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ebec470. Configure here.
There was a problem hiding this comment.
Pull request overview
This PR aims to prevent Gradle from resolving com.mparticle:android-core to newly published 6.x pre-releases (notably 6.0.0-rc.1) by adding an upper bound to the dependency version range in the React Native mParticle Android module.
Changes:
- Add an upper bound to the
com.mparticle:android-coredependency range inandroid/build.gradle. - Add inline comments explaining why the upper bound was introduced (6.x removal of deprecated symbols).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Summary
[5.79.0, )range with[5.79.0, 6.0)for thecom.mparticle:android-coredependency inandroid/build.gradle.Why
com.mparticle:android-core:6.0.0-rc.1was published to Maven Central on 2026-05-22. The open-ended range resolves to the highest available version, which is now the RC. 6.x removed deprecated symbols includingcom.mparticle.UserAttributeListener(referenced by this module), so consumers who built successfully before 2026-05-22 are now broken with no change on their side:The bounded upper bound restores the previous behavior and gates 6.x adoption behind an explicit version bump in this module.
Test plan
cd android && ./gradlew assembleReleasesucceeds (was failing withcannot find symbol: UserAttributeListener).🤖 Generated with Claude Code