Skip to content

WIP: feat: adopt Rokt SDK v5 contract types in public API#678

Draft
thomson-t wants to merge 2 commits intoworkstation/9.0-Releasefrom
feat/adopt-rokt-contracts
Draft

WIP: feat: adopt Rokt SDK v5 contract types in public API#678
thomson-t wants to merge 2 commits intoworkstation/9.0-Releasefrom
feat/adopt-rokt-contracts

Conversation

@thomson-t
Copy link
Copy Markdown
Contributor

Summary

  • Replace mParticle-prefixed wrapper types (MPRoktEmbeddedView, MPRoktConfig, MPRoktEvent, MPRoktPlacementOptions, MPColorMode) with Rokt SDK native types (RoktEmbeddedView, RoktConfig, RoktEvent, RoktPlacementOptions)
  • Remove MPRoktEvent.h/.m — consumers now use types from the Rokt SDK directly
  • Update MPKitProtocol.h, MPRokt.h/.m, Rokt kit, example apps, and unit tests

Test plan

  • Build iOS and tvOS targets
  • Run unit tests (ObjC + Swift)
  • Verify example apps compile and run
  • pod lib lint passes
  • Confirm kit integration works end-to-end with Rokt SDK v5

🤖 Generated with Claude Code

thomson-t and others added 2 commits March 23, 2026 09:08
Replace mParticle-prefixed wrapper types (MPRoktEmbeddedView,
MPRoktConfig, MPRoktEvent, MPRoktPlacementOptions, MPColorMode)
with Rokt SDK native types (RoktEmbeddedView, RoktConfig,
RoktEvent, RoktPlacementOptions) across the public API surface.

- Remove MPRoktEvent.h/.m and MPRoktConfig/MPRoktEmbeddedView
  definitions — consumers now use types from the Rokt SDK directly
- Update MPKitProtocol.h to forward-declare Rokt SDK types
- Update MPRokt.h/.m to use Rokt SDK types in selectPlacements,
  events, and globalEvents signatures
- Update Rokt kit (MPKitRokt) to bridge with native types
- Update example apps, unit tests, and Xcode/SPM project files
- Add Rokt SDK dependency to the kit podspec

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
let roktConfig = RoktConfig.Builder().colorMode(.dark).build()

MParticle.sharedInstance().rokt.selectPlacements(
"RoktLayout",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This code is whats failing to compile for me. You might check and see if AI fixed this by making it call the simpler method without the RoktContracts classes. It did that to me before I caught it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants