-
Notifications
You must be signed in to change notification settings - Fork 28
feat: add Expo config plugin for mParticle integration and create Expo test app #270
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
Conversation
…o test app - Introduced a new Expo config plugin to facilitate mParticle SDK integration for both iOS and Android. - Created an Expo test app to demonstrate the usage of the mParticle SDK, including event logging and Rokt placements. - Updated onboarding documentation to include instructions for using the new plugin and test app.
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.
Pull request overview
This PR introduces an Expo config plugin for the mParticle React Native SDK, enabling automated native configuration for Expo projects. The implementation supports both iOS and Android platforms with automatic code injection for SDK initialization, kit dependencies, and platform-specific build configurations.
Key Changes:
- Expo config plugin with platform-specific modules for iOS (Swift/Objective-C) and Android (Kotlin/Java) code generation
- ExpoTestApp demonstrating plugin usage with mParticle SDK features and Rokt placements
- Comprehensive documentation updates including plugin configuration options and integration guides
Reviewed changes
Copilot reviewed 17 out of 21 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
plugin/tsconfig.json |
TypeScript configuration for the Expo plugin |
plugin/src/withMParticle.ts |
Main plugin entry point with configuration interface and validation |
plugin/src/withMParticleIOS.ts |
iOS-specific configuration including AppDelegate modification and Podfile updates |
plugin/src/withMParticleAndroid.ts |
Android-specific configuration including MainApplication and build.gradle modification |
app.plugin.js |
Plugin export module for Expo integration |
package.json |
Added plugin build scripts, files list, and Expo dependencies |
README.md |
Added comprehensive Expo setup instructions and plugin configuration documentation |
ONBOARDING.md |
Added ExpoTestApp setup and development workflow documentation |
ExpoTestApp/* |
Complete Expo test application with mParticle and Rokt integration examples |
js/rokt/rokt-layout-view.android.tsx |
Type casting fix for React compatibility |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Mansi-mParticle
left a comment
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.
Android Code LGTM
BrandonStalnaker
left a comment
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.
LGTM
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
e01537f
Mansi-mParticle
left a comment
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.
LGTM
Summary
Testing Plan
Tested locally
iOS
Simulator.Screen.Recording.-.iPhone.17.Pro.-.2025-12-02.at.10.30.56.mov
Android
Screen_recording_20251202_110907.webm
Master Issue
Closes ticket