feat: report mParticle API usage through the Rokt kit - #813
Conversation
Forward bounded, non-sensitive API identifiers only when the Rokt kit is active. Preserve compatibility with existing Rokt 5.3 releases by invoking the diagnostic selector only when supported.
PR SummaryMedium Risk Overview Core emits uppercase codes (e.g. Rokt kit maps that to
Reviewed by Cursor Bugbot for commit 2d60e1d. Bugbot is set up for automated code reviews on this repo. Configure here. |
📦 SDK Size Impact ReportMeasures how much the SDK adds to an app's size (with-SDK minus without-SDK).
➡️ SDK size impact change is minimal. Raw measurementsTarget branch (main): {"baseline_app_size_kb":84,"baseline_executable_size_bytes":75464,"with_sdk_app_size_kb":1920,"with_sdk_executable_size_bytes":76312,"sdk_impact_kb":1836,"sdk_executable_impact_bytes":848,"xcframework_size_kb":6644}This PR: {"baseline_app_size_kb":84,"baseline_executable_size_bytes":75464,"with_sdk_app_size_kb":1920,"with_sdk_executable_size_bytes":76312,"sdk_impact_kb":1836,"sdk_executable_impact_bytes":848,"xcframework_size_kb":6648} |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort 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 6a94529. Configure here.
jamesnrokt
left a comment
There was a problem hiding this comment.
Looks good to me. One thing to confirm is with the logic around kitInstance will we get logs if the kit isn't initialized fully?
Good question. Before the Rokt Kit is created and active, activeKitsRegistry does not return it, so the diagnostic is a no-op and is not queued by mParticle. |

Background
Rokt diagnostics can identify native SDK API usage, but calls made through mParticle are not currently distinguishable. This adds bounded, non-sensitive API identifiers only when the Rokt kit is active.
What Has Changed
Screenshots/Video
N/A — no visual changes.
Testing
trunk check --cipod lib lintfor the Rokt kit against the Rokt SDK 5.3.2 podspecMPRokt.mis at 93.5%Checklist