chore(android): bump mParticle core/rokt-kit floor to 5.79.2 (carries roktsdk 4.14.5 deferred-init fix)#344
Conversation
Raises the com.mparticle:android-core / android-rokt-kit dependency floor to [5.79.2, 6.0) in the Expo plugin kit injection and the bridge android/build.gradle, and bumps the sample app pins to 5.79.2. 5.79.2 is the mParticle Android release whose android-rokt-kit is built against com.rokt:roktsdk 4.14.5, which observes the Activity lifecycle from process start so overlay placements display on deferred/late Rokt.init() (the React Native + mParticle deferred-init scenario).
PR SummaryMedium Risk Overview CHANGELOG documents the fix: consumers should resolve a Rokt kit built on Reviewed by Cursor Bugbot for commit 5bdfcb8. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Pull request overview
Updates the Android mParticle dependency minimums across the React Native bridge, Expo config plugin, and sample app to ensure consumers resolve android-rokt-kit built against com.rokt:roktsdk 4.14.5 (deferred-init Activity lifecycle fix).
Changes:
- Bump the bridge’s
com.mparticle:android-coredependency range to[5.79.2, 6.0)and update the test pin to5.79.2. - Raise the Expo plugin’s injected kit dependency floor to
[5.79.2, 6.0). - Update the sample Android app to pin
android-core/android-rokt-kitto5.79.2and document the change inCHANGELOG.md.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| sample/android/app/build.gradle | Bumps sample app’s pinned android-core and android-rokt-kit versions to 5.79.2. |
| plugin/src/withMParticleAndroid.ts | Raises the injected Android kit dependency range floor to 5.79.2 while keeping < 6.0. |
| CHANGELOG.md | Adds an Unreleased entry documenting the Android dependency floor bump and rationale. |
| android/build.gradle | Raises the bridge’s android-core range floor and test pin to 5.79.2. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Addresses review feedback: sample/README stated 5.79.0 while sample/android/app/build.gradle now pins android-core / android-rokt-kit to 5.79.2.
Summary
Raises the mParticle Android dependency floor to
[5.79.2, 6.0)and bumps the sample app to5.79.2, so React Native consumers resolve a Rokt kit built againstcom.rokt:roktsdk 4.14.5.plugin/src/withMParticleAndroid.ts)[5.79.0, 6.0)[5.79.2, 6.0)android/build.gradle,api+ test pin)5.79.05.79.2sample/android/app/build.gradle)android-core/android-rokt-kit5.79.05.79.2Why
com.mparticle:android-rokt-kit:5.79.2is the first kit built againstcom.rokt:roktsdk 4.14.5, which fixes overlay/bottom-sheet placements failing on late/deferredRokt.init()— the exact React Native + mParticle scenario (async kit load / deferred first-frame init) where the SDK initialised after the host Activity had already resumed and the cached Activity stayednull.4.14.5observes the Activity lifecycle from process start (via a no-opContentProvider) and recovers the host Activity from the Compose context.Chain: ROKT/sdk-android-source#1087 (roktsdk 4.14.5, released) → mparticle-integrations/mparticle-android-integration-rokt#146 (kit pin bump) → mParticle Android SDK 5.79.2 release → this PR.
The bounded upper bound (
< 6.0) is unchanged — it keeps kit + core paired on the 5.x line and avoids resolving6.0.0-rc.1, consistent with the existing comments and #710.This PR is gated on
mParticle/mparticle-android-sdk5.79.2 publishingandroid-core+android-rokt-kit5.79.2to Maven Central. Until then, Android CI will fail to resolve[5.79.2, 6.0)(5.79.1 is below the floor and 6.0.0-rc.1 is excluded). Do not merge before 5.79.2 is live; re-run CI once it is.Notes
plugin/buildis gitignored); no compiled output to update.5.79.0or newer" describe other feature minimums (CNAME / session APIs) and remain accurate, so they're intentionally left unchanged.[Unreleased]CHANGELOG section.