Skip to content

[WIP] Feature/mobile 160#191

Open
Vailence wants to merge 5 commits intodevelopfrom
feature/MOBILE-160
Open

[WIP] Feature/mobile 160#191
Vailence wants to merge 5 commits intodevelopfrom
feature/MOBILE-160

Conversation

@Vailence
Copy link
Copy Markdown
Collaborator

@Vailence Vailence commented May 6, 2026

Vailence added 4 commits May 5, 2026 19:47
Place all required Configuration constructor params consecutively, with
operationsDomain among the optional params at the end.
Switch from nullable String? with conditional toMap to default empty
string with unconditional serialization. Native sides treat empty as
"not set" (Android skips builder call; iOS converts to nil), mirroring
how previousDeviceUUID and previousInstallationId are wired.
Capture init MethodCall args and verify operationsDomain is forwarded
across the platform channel both when set and when defaulted.
- Configuration dartdoc: use Dart `null`/empty wording, remove the
  native-config reference that leaks SDK-internal behavior.
- MindboxAndroidPlugin: rename local to operationsDomainArg and apply
  the builder method outside the chain to avoid name collision with the
  builder method.
- example: drop the placeholder commented-out arg from the sample app.
@Vailence Vailence requested a review from enotniy May 6, 2026 10:23
Comment thread mindbox/CHANGELOG.md Outdated
@@ -1,3 +1,7 @@
## Unreleased

* Add optional `operationsDomain` parameter to `Configuration` for sending operations to a separate host. Forwarded to the native iOS and Android SDKs.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

А это зачем? Это только в релизной ветке надо делать

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.

Ага, убрал.

Это по додам выполнилось)

.subscribeCustomerIfCreated(subscribeIfCreated)
.shouldCreateCustomer(shouldCreateCustomer)
.build()
if (operationsDomainArg.isNotEmpty()) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

а зачем тут проверка?
previousDeviceUuid тоже может быть пустым, но все же работает

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.

Убрал, тут согласен, можно и без этого.

@Vailence Vailence force-pushed the feature/MOBILE-160 branch from 7eddbc3 to 5cfafe6 Compare May 6, 2026 12:05
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.

2 participants