Skip to content

Conversation

@jamesnrokt
Copy link
Collaborator

Background

  • Leaving in draft state as this will be simpler to test once the Package.swift changes are in place to allow local SPM testing
  • This PR updates the mParticle Rokt public methods to match Rokt 5.0

What Has Changed

  • Updated methods on the Rokt interface
  • Introduced global events

Screenshots/Video

  • N/A

Checklist

  • I have performed a self-review of my own code.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have tested this locally. - Pending the above mentioned changes

Additional Notes

  • N/A

Reference Issue (For employees only. Ignore if you are an outside contributor)

  • Closes SDKE-769

@github-actions
Copy link

github-actions bot commented Jan 23, 2026

📦 SDK Size Impact Report

Measures how much the SDK adds to an app's size (with-SDK minus without-SDK).

Metric Target Branch This PR Change
App Bundle Impact 1.63 MB 1.63 MB +N/A
Executable Impact 896 bytes 896 bytes +N/A
XCFramework Size 6.65 MB 6.67 MB +20 KB

➡️ SDK size impact change is minimal.

Raw measurements

Target branch (workstation/9.0-Release):

{"baseline_app_size_kb":84,"baseline_executable_size_bytes":75464,"with_sdk_app_size_kb":1752,"with_sdk_executable_size_bytes":76360,"sdk_impact_kb":1668,"sdk_executable_impact_bytes":896,"xcframework_size_kb":6808}

This PR:

{"baseline_app_size_kb":84,"baseline_executable_size_bytes":75464,"with_sdk_app_size_kb":1752,"with_sdk_executable_size_bytes":76360,"sdk_impact_kb":1668,"sdk_executable_impact_bytes":896,"xcframework_size_kb":6828}

Comment on lines +186 to +187
The `MPRokt` interface has been updated to align with the Rokt SDK 4.14.x API. These changes consolidate multiple callback parameters into a unified event-based callback pattern and standardize parameter naming.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
The `MPRokt` interface has been updated to align with the Rokt SDK 4.14.x API. These changes consolidate multiple callback parameters into a unified event-based callback pattern and standardize parameter naming.
The `MPRokt` interface has been updated to align with the Rokt SDK 5.0.x API. These changes consolidate multiple callback parameters into a unified event-based callback pattern and standardize parameter naming.

Comment on lines +301 to +319
##### purchaseFinalized Method

**Before (Objective-C):**

```objective-c
[[MParticle sharedInstance].rokt purchaseFinalized:@"checkout"
catalogItemId:@"item123"
success:YES];
```

**After (Objective-C):**

```objective-c
[[MParticle sharedInstance].rokt purchaseFinalized:@"checkout"
catalogItemId:@"item123"
success:YES];
```

Note: The method signature remains the same, but the parameter name has changed from `placementId:` to `identifier:`. If you're using named parameters, update accordingly.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe squish this into before and after since there is no difference between the two examples?

Comment on lines +94 to +97
/**
* Used to subscribe to global Rokt events from all sources.
* Additional events that are not associated with a view (such as InitComplete) will also be delivered.
*
Copy link
Contributor

Choose a reason for hiding this comment

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

The method name may be misleading, as it suggests returning events rather than registering a listener; a verb-based name like addGlobalEventListener: or subscribeToGlobalEvents: would better reflect its behavior.

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.

4 participants