Skip to content

chore: Update sample app to ease testing#279

Open
jamesnrokt wants to merge 2 commits intomainfrom
chore/update-sample-app
Open

chore: Update sample app to ease testing#279
jamesnrokt wants to merge 2 commits intomainfrom
chore/update-sample-app

Conversation

@jamesnrokt
Copy link
Contributor

@jamesnrokt jamesnrokt commented Feb 5, 2026

Summary

  • While debugging a partner issue I needed to use a custom layout, this PR adds that via a text input
  • Additionally improves usability of the sample app with better view handling around keyboards and scrolling
Simulator Screenshot - iPhone 17 Pro - 2026-02-04 at 21 21 34

Testing Plan

Tested locally and verified with live stream

Master Issue

Closes N/A

@jamesnrokt jamesnrokt requested a review from a team as a code owner February 5, 2026 02:21
Copilot AI review requested due to automatic review settings February 5, 2026 02:21
Copy link
Contributor

Copilot AI left a 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 enhances the sample app's usability for testing custom layouts by adding a text input field for custom placement identifiers and improving the UI/UX with better keyboard handling and visual design updates. The changes also include dependency updates via yarn.lock and streamlined installation instructions.

Changes:

  • Added custom layout identifier text input with improved UI styling
  • Implemented keyboard-aware scrolling with SafeAreaView and KeyboardAvoidingView
  • Updated iOS configuration and simplified onboarding documentation

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
sample/yarn.lock Updated JavaScript dependencies to latest versions
sample/package.json Added postinstall script to automatically install iOS pods
sample/index.js Added custom identifier input, improved UI with better styling and keyboard handling
sample/ios/MParticleSample/AppDelegate.mm Updated mParticle initialization with debug logging and production environment
sample/ios/MParticleSample.xcodeproj/project.pbxproj Added development team ID and updated Xcode build configuration
ONBOARDING.md Simplified setup instructions by removing manual pod install step

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +25 to +26
MParticleOptions *mParticleOptions = [MParticleOptions optionsWithKey:@"REPLACE_ME"
secret:@"REPLACE_ME"];
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

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

The placeholder text "REPLACE_ME" for API key and secret differs from the original "REPLACE ME" (with space). While this is just a sample app placeholder, it would be better to keep consistency with the original format or use a more conventional placeholder format like "YOUR_API_KEY_HERE" to avoid confusion.

Suggested change
MParticleOptions *mParticleOptions = [MParticleOptions optionsWithKey:@"REPLACE_ME"
secret:@"REPLACE_ME"];
MParticleOptions *mParticleOptions = [MParticleOptions optionsWithKey:@"YOUR_API_KEY_HERE"
secret:@"YOUR_API_SECRET_HERE"];

Copilot uses AI. Check for mistakes.
Comment on lines +22 to +23
MPNetworkOptions *networkOptions = [[MPNetworkOptions alloc] init];
networkOptions.pinningDisabled = true;
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

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

The unused networkOptions variable is declared and configured but never assigned to mParticleOptions. If pinning is intended to be disabled for testing purposes, this line is missing:

mParticleOptions.networkOptions = networkOptions;

Otherwise, this variable declaration should be removed.

Copilot uses AI. Check for mistakes.
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = DLD43Y3TRP;
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

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

A hardcoded development team ID "DLD43Y3TRP" has been added to the Xcode project configuration. This is likely specific to the developer's Apple Developer account and should not be committed to the repository. Team IDs should be configured locally or managed through Xcode's automatic code signing.

Suggested change
DEVELOPMENT_TEAM = DLD43Y3TRP;

Copilot uses AI. Check for mistakes.
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = DLD43Y3TRP;
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

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

A hardcoded development team ID "DLD43Y3TRP" has been added to the Xcode project configuration. This is likely specific to the developer's Apple Developer account and should not be committed to the repository. Team IDs should be configured locally or managed through Xcode's automatic code signing.

Copilot uses AI. Check for mistakes.
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.

1 participant