Skip to content

MOBILE-161: Add operationsDomain support#172

Open
enotniy wants to merge 1 commit intodevelopfrom
feature/MOBILE-161-operations-domain
Open

MOBILE-161: Add operationsDomain support#172
enotniy wants to merge 1 commit intodevelopfrom
feature/MOBILE-161-operations-domain

Conversation

@enotniy
Copy link
Copy Markdown
Collaborator

@enotniy enotniy commented May 5, 2026

@enotniy enotniy force-pushed the feature/MOBILE-161-operations-domain branch from 12b852b to ba52b81 Compare May 5, 2026 07:56
Copy link
Copy Markdown

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

Adds support for an optional operationsDomain initialization parameter across the React Native JS API and both native bridges, allowing operations to be routed via a dedicated host when configured.

Changes:

  • Extended InitializationData with optional operationsDomain.
  • Updated JS initialization payload building to include operationsDomain only when it’s a non-empty string.
  • Passed operationsDomain through to native configuration on both iOS (via MBConfiguration) and Android (via MindboxConfiguration.Builder), with unit tests covering presence/absence/empty-string behavior.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/types/InitializationData.ts Adds optional operationsDomain to the public initialization type.
src/index.tsx Includes operationsDomain in the native init payload only when non-empty; updates inline usage example.
src/tests/index.test.ts Adds unit tests verifying payload behavior for operationsDomain.
ios/MindboxSdk.swift Decodes and forwards operationsDomain into MBConfiguration.
android/src/main/java/com/mindboxsdk/MindboxSdkModule.kt Forwards operationsDomain into MindboxConfiguration.Builder when present in the payload.

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

Comment thread src/index.tsx
Comment on lines 82 to 86
* shouldCreateCustomer: true,
* previousInstallId: '',
* previousUuid: '',
* operationsDomain: 'anonymizer.example.com',
* });
@enotniy enotniy requested a review from Vailence May 5, 2026 12:17
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.

3 participants