Skip to content

feat(rokt): add kit API parity access#711

Merged
thomson-t merged 1 commit into
workstation/6.0-Releasefrom
feat/rokt-kit-api-parity
May 26, 2026
Merged

feat(rokt): add kit API parity access#711
thomson-t merged 1 commit into
workstation/6.0-Releasefrom
feat/rokt-kit-api-parity

Conversation

@thomson-t

@thomson-t thomson-t commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Background

The Rokt kit migration for 6.0 moved partner-facing Rokt APIs out of the core SDK, but Kotlin consumers still need a low-friction way to access the kit facade from the active mParticle instance. The Rokt SDK Compose wrapper also exposes native placement events that were not forwarded through the mParticle kit wrapper.

What Has Changed

  • Add Kotlin MParticle.rokt extension access for the Rokt kit facade.
  • Keep the Java-friendly MParticleRokt.Rokt() helper as the supported Java entry point.
  • Forward RoktLayout onEvent callbacks to the native Rokt SDK composable.
  • Add tests for the Kotlin extension facade and stale instance refresh behavior.
  • Update the Rokt kit README and changelog with the restored API shape.

Screenshots/Video

N/A - no visual changes.

Checklist

  • Self-review completed
  • Tests added or updated
  • Tested locally

Validation

  • trunk check
  • trunk check --ci
  • git diff --check
  • JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home ./gradlew build
  • JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home ./gradlew test
  • JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home ./gradlew ktlintCheck
  • cd kits/rokt/rokt && ./gradlew build -Dorg.gradle.java.home=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home
  • cd kits/rokt/rokt && ./gradlew test -Dorg.gradle.java.home=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home
  • cd kits/rokt/rokt && ./gradlew ktlintCheck -Dorg.gradle.java.home=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home

Add Kotlin MParticle.rokt access so partners can call Rokt kit APIs from the active mParticle instance again.

Forward native Rokt SDK Compose events through the kit RoktLayout wrapper and document the Kotlin and Java entry points.
@thomson-t thomson-t requested a review from a team as a code owner May 26, 2026 18:28
@cursor

cursor Bot commented May 26, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Scoped Rokt kit API and Compose callback plumbing with tests; no auth, security, or core SDK behavior changes.

Overview
Restores ergonomic Rokt kit access after the 6.0 move of partner APIs out of core: Kotlin apps can call MParticle.getInstance()?.rokt, while MParticleRokt.Rokt() stays the Java entry point. Facade caching now tracks the active MParticle instance so a swapped singleton does not keep serving a stale Rokt object.

The Compose RoktLayout wrapper gains an optional onEvent callback wired through to the native Rokt SDK composable. README (6+ dependency), changelog, and unit tests cover the extension and instance-refresh behavior.

Reviewed by Cursor Bugbot for commit 7cb972b. Bugbot is set up for automated code reviews on this repo. Configure here.

@sonarqubecloud

Copy link
Copy Markdown

@denischilik denischilik left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@thomson-t thomson-t merged commit 224b9f5 into workstation/6.0-Release May 26, 2026
21 of 23 checks passed
@thomson-t thomson-t deleted the feat/rokt-kit-api-parity branch May 26, 2026 19:22
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