Skip to content

feat: Add support for Rokt event channel subscription#53

Merged
rmi22186 merged 4 commits into
developmentfrom
feat/SQDSDKS-7415-rokt-events-channel-support
Jun 24, 2025
Merged

feat: Add support for Rokt event channel subscription#53
rmi22186 merged 4 commits into
developmentfrom
feat/SQDSDKS-7415-rokt-events-channel-support

Conversation

@thomson-t

@thomson-t thomson-t commented Jun 23, 2025

Copy link
Copy Markdown
Contributor

Instructions

  1. PR target branch should be against development
  2. PR title name should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-title-check.yml
  3. PR branch prefix should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-branch-check-name.yml

Summary

  • Add RoktEventHandler to forward native Rokt events to Flutter.
  • Use an EventChannel to stream events from the native Android and iOS side.
  • Add lifecycle-runtime-ktx dependency to safely collect events tied to the Activity lifecycle.
  • Make the plugin ActivityAware to get the required Activity context.
  • Add iOS events API and use the callback to subscribe to events and map them to the Flutter side.
  • Update the example app to demonstrate listening for Rokt events.

Testing Plan

  • Was this tested locally? If not, explain why.
    iOS
Screen.Recording.2025-06-23.at.4.47.17.pm.mov

Android

Screen.Recording.2025-06-23.at.3.00.24.pm.mov

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

- Add RoktEventHandler to forward native Rokt events to Flutter.
- Use an EventChannel to stream events from the native Android and iOS side.
- Add lifecycle-runtime-ktx dependency to safely collect events tied to the Activity lifecycle.
- Make the plugin ActivityAware to get the required Activity context.
- Add iOS events API and use the callback to subscribe to events and map them to the Flutter side.
- Update the example app to demonstrate listening for Rokt events.
@thomson-t thomson-t force-pushed the feat/SQDSDKS-7415-rokt-events-channel-support branch from bd07a9c to 970059c Compare June 23, 2025 07:37
- Change macOS runner version from 14 to 15.
- Add step to set up Xcode 16.3.0 for building the iOS Flutter app.

@BrandonStalnaker BrandonStalnaker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM iOS wise including the yml changes

@thomson-t thomson-t force-pushed the feat/SQDSDKS-7415-rokt-events-channel-support branch from acfccfa to b5c93a0 Compare June 24, 2025 01:21

@Mansi-mParticle Mansi-mParticle 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.

Android changes LGTM

@rmi22186 rmi22186 merged commit ba75ed6 into development Jun 24, 2025
17 of 19 checks passed
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