Skip to content

feat: Add MPRoktEmbeddedView Class#345

Merged
BrandonStalnaker merged 1 commit intodevelopmentfrom
feat/SQDSDKS-7200-Create-MPRoktEmbeddedView-In-Core
Apr 17, 2025
Merged

feat: Add MPRoktEmbeddedView Class#345
BrandonStalnaker merged 1 commit intodevelopmentfrom
feat/SQDSDKS-7200-Create-MPRoktEmbeddedView-In-Core

Conversation

@BrandonStalnaker
Copy link
Copy Markdown
Collaborator

Summary

  • Added a MPRoktEmbeddedView class to ensure strong typing in the future

Testing Plan

  • Was this tested locally? If not, explain why.
  • Tested with sample app and unit tests. Because the object is expected inside a dictionary and the value isn't test until with in the Kit, our best unit test for this would be in the kit integration.

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

NSDictionary *attributes = @{@"key": @"value"};
NSDictionary *finalAttributes = @{@"key": @"value", @"sandbox": @"true"};
NSDictionary *placements = @{@"placement": @"test"};
MPRoktEmbeddedView *exampleView = [[MPRoktEmbeddedView alloc] initWithFrame:CGRectZero];
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

In Android it is called RoktEmbeddedView, should we align with the name on both the platforms ? cc: @Mansi-mParticle

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Namespacing isn't available in Objective C or Swift so adding prefixes is the standard way of preventing naming collisions.

Copy link
Copy Markdown

@WeiYewT WeiYewT left a comment

Choose a reason for hiding this comment

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

looks good to me, we will need to do something similar like android with injecting the RoktEmbeddedView at the kit level.

Copy link
Copy Markdown
Contributor

@Mansi-mParticle Mansi-mParticle left a comment

Choose a reason for hiding this comment

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

LGTM

@BrandonStalnaker BrandonStalnaker merged commit f4fb946 into development Apr 17, 2025
12 checks passed
@BrandonStalnaker BrandonStalnaker deleted the feat/SQDSDKS-7200-Create-MPRoktEmbeddedView-In-Core branch April 17, 2025 16:21
mparticle-automation added a commit that referenced this pull request Apr 24, 2025
# [8.30.0](v8.29.0...v8.30.0) (2025-04-24)

### Features

* Add disabledKits option to MParticleOptions ([#347](#347)) ([f708431](f708431))
* Add MPRoktEmbeddedView Class ([#345](#345)) ([f4fb946](f4fb946))
* Add user attribute mapping ([#343](#343)) ([50ce934](50ce934))
* Automatically include sandbox in MPRokt Attributes ([#344](#344)) ([bdf4280](bdf4280))
@mparticle-automation
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 8.30.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants