-
Notifications
You must be signed in to change notification settings - Fork 72
feat: Update Rokt public methods to match Rokt 5.0 #521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: workstation/9.0-Release
Are you sure you want to change the base?
Conversation
📦 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 (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} |
| 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. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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. |
| ##### 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. |
There was a problem hiding this comment.
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?
| /** | ||
| * 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. | ||
| * |
There was a problem hiding this comment.
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.
Background
What Has Changed
Screenshots/Video
Checklist
Additional Notes
Reference Issue (For employees only. Ignore if you are an outside contributor)