Skip to content

Release 2.16.0 - #237

Merged
AndreyEmtsov merged 20 commits into
masterfrom
release/2.16.0
Nov 5, 2026
Merged

AndreyEmtsov merged 20 commits into
masterfrom
release/2.16.0

Conversation

@mindbox-mobile-ci

Copy link
Copy Markdown
Contributor

Automated PR: merge release/2.16.0 into master

Versions:

  • React Native SDK: 2.16.0
  • Android SDK: 2.16.0
  • iOS SDK: 2.16.0

itmindbox and others added 20 commits August 26, 2026 11:57
Merge 'master' into 'develop' after release
* MOBILE-342: Add the embedded block as a Fabric component over the native block

* MOBILE-342: Follow mission/stories — a live height and a place name taken as it is

* MOBILE-342: Answer the review — a nameless place collapses, a sizeless one waits

* MOBILE-342: Say the same about a zero, a negative and a not-a-number height

* MOBILE-342: Leave the pinned version alone and keep the notes to the public API

The SDK version was only lifted into a variable, not changed — and a branch that
changes nothing about it should not touch the line at all. The two dependencies
the block needs are spelled with the version develop already pins.

The notes stay where a caller reads them: the props, the outcomes and the
component itself. The native sides, the codegen spec and the suite carry none.

* MOBILE-342: Draw the embedded block in the old renderer too

The block was a Fabric component and nothing else: `RCTViewComponentView` and the generated
`MindboxSdkSpec` descriptors, with no guard. An app on the old renderer does not install
`React-RCTFabric` or `React-Fabric`, so those headers are not there to include and the pod does not
build at all — and this branch's develop base is the old renderer.

So the file now carries both, split on `RCT_NEW_ARCH_ENABLED`: the component view as it was, and an
`RCTViewManager` whose exported name React Native reads as `MindboxEmbeddedBlockView` once it drops
the `Manager` suffix — the same name `codegenNativeComponent` falls back to asking for when there is
no generated view config.

The block itself is untouched. `MindboxEmbeddedBlockHost` is plain UIKit, so both paths drive the
same host in the same order, and the old renderer's view builds it from `didSetProps:` and
`layoutSubviews` for the reason Fabric builds it from `finalizeUpdates:` — the props of a
transaction and the frame of a layout pass do not arrive together, and either one can be last.

* MOBILE-342: Let the pinned toolchain typecheck the block and run its tests

The block was the first thing under `src/` to write JSX and the first to import the codegen
vocabulary, and the toolchain this repo pins — `react-native@0.63.4` with
`@types/react-native@0.62.13` — describes neither. On a clean checkout that is eleven errors where
`src/` had none: React Native 0.63 ships `CodegenTypes` and `codegenNativeComponent` as JavaScript
with no declarations beside them, and `ViewProps`/`TextProps` of that vintage have no `children`.

The two declaration files say what the pins leave out. The spec keeps importing the codegen types
from the paths the native generator expects — declaring them is what lets that stay true rather than
be worked around — and the `children` file is an augmentation, which is why it carries an
`export {}`: without it the `declare module` would replace React Native's typings instead of adding
to them. Both are marked for deletion once the pinned React Native ships its own types.

`react-test-renderer` was missing outright, so the block's test suite could not start.

Verified in an environment with only this repo's own `node_modules` on the resolution path: tsc
clean, 52 tests passing. Worth knowing for anyone checking locally — this working copy sits under a
parent folder that carries its own `react-native@0.82.1`, and TypeScript walks up into it, so a
plain `npx tsc` here reports a different set of errors than a clean clone does.

* MOBILE-342: Tell React Native this pod carries a Fabric component

The podspec asked for React-Core and nothing else, and that is the one place where
`RCT_NEW_ARCH_ENABLED` gets defined for a library's own sources — React Native sets it through
`install_modules_dependencies` and nowhere else. Left out, the flag is simply absent from this pod's
build settings, so `MindboxEmbeddedBlockView.mm` compiled its old-renderer half on React Native 0.82,
where there is no old renderer to compile it for, and the Fabric component was never registered.

The call also brings in what a Fabric component actually needs to build — React-RCTFabric,
ReactCodegen, React-Fabric and the rest — and on the old renderer it adds the same pods but leaves
the flag undefined, which is how the file's other half keeps being the one that compiles.

Verified by running the example on both renderers: React Native 0.82 bridgeless (the stand reports
the block's outcome and its own placeholder holds while `active` is false) and React Native 0.74 on
the old renderer (a failed block collapses to zero and a paused one keeps its height).

* MOBILE-342: Stop warning about space the SDK trims off itself

The component told the host that a place system name is taken exactly as given, that space around it
is part of the name, and that such a block will not match its place. None of that is true on either
platform: iOS normalizes the name with `trimmingCharacters(in: .whitespacesAndNewlines)` before it
resolves, and Android with `orNullIfBlank()`. A padded name finds its place, and the warning sent
the host looking for a bug that was not there.

What stays is the empty name, where the same trimming is what makes it empty: nothing is left to
resolve by, the place reports a failure, and that is worth a word. Checked against the branches this
API is being written for — ios-sdk `mission/stories` and android-sdk `feature/MOBILE-413`.

* MOBILE-342: Keep the lint clean, and say why the one style stays inline

`develop` reports nothing at all, and this branch was leaving a single
`react-native/no-inline-styles` warning behind — CI does not fail on warnings, so it would simply
have sat there for the next person to wonder about.

The style stays where it is: the container's height is the host's number while the block occupies
its place and zero once it hands it back, so there is no StyleSheet entry it could be. The rule is
switched off for that one line, with the reason next to it rather than in a commit nobody reads.

* MOBILE-342: Let the package build where the checkout is not alone

`yarn prepare` — the build that makes the published package — failed on the definitions:

    Type 'NativeSyntheticEvent<Readonly<{ appearance: string; }>>' is not assignable to
    type 'NativeSyntheticEvent<{ appearance: string; }>'.
      Types of property 'currentTarget' are incompatible.
        Type 'NativeMethods' is not assignable to type 'number'.

Two names for one event, and they only agree while both resolve to the same React Native. Here they
did not: this checkout sits inside a host app that carries its own React Native, TypeScript walks up
into it, and the spec's `NativeSyntheticEvent` came from there while the container's came from the
pinned `@types/react-native` — a `currentTarget` that is a view on one side and a number on the
other. The alone-in-a-folder case built fine, which is exactly why this was worth catching: the
submodule layout is the one people actually work in.

The container's handler now takes its type from the prop it is passed to, so there is only ever one
event type in play and nothing left to disagree about. Both layouts build: commonjs, module and the
definitions.

* MOBILE-342: Let a host app point the wrapper at a local native SDK

The Android module was pinned to `cloud.mindbox:mobile-sdk:2.15.4`, and the embedded block hooks are
in no released version of it — so the module could not be compiled at all. The build stopped on
`Unresolved reference 'embedded'` in every file the block touches, and there was no way to say
otherwise short of editing this file.

The version is a property now, defaulting to the same release, so nothing changes for anyone
building against a published SDK. A host app that needs the hooks before they ship sets
`ext.nativeSdkVersion` in its root project or passes `-PMindboxSdk_nativeSdkVersion=...` — this is
what the New Architecture branch had and what the develop-based one lost, and it is how the module
was verified: built against the locally published `2.15.3-rn-local`, debug and release, with codegen
writing `MindboxEmbeddedBlockViewManagerInterface` and `...Delegate` and the AAR carrying the host
view, the manager and both.

The `mindbox-common` line moves to the same property for the same reason, and both dependencies now
say next to them why they are there at all.

* MOBILE-342: Take the native SDK version knob back out

Reverts the property added in ba96dc2 — the Android dependency is a hardcoded 2.15.4 again, as it
was on develop. Asked for by the author, who will shape this part themselves.

Worth knowing while that is open: the embedded block hooks are in no released native SDK, so the
Android module cannot be compiled against this pin — the build stops on `Unresolved reference
'embedded'` in every file the block touches. iOS does not have the same problem only because the
numbers happen to line up: the local iOS SDK calls itself 2.15.3, which is what the podspec asks
for, so an app can point at it with `:path` and satisfy the pin. The Android build of the same SDK
is published as `2.15.3-rn-local`, a different version string, which a hardcoded 2.15.4 cannot
match from the app side.

* MOBILE-342: Say which React Native the package needs

The Android module applies the com.facebook.react Gradle plugin and the block's
glue comes out of Codegen, both of which appeared in React Native 0.71. The peer
dependency said any version would do; now it says 0.71 or newer, and the README
says why.

* MOBILE-342: Warn from an effect, not from the render body

React may run a render more than once for one commit, and a ref flipped during
render does not keep a warning from being said twice under StrictMode. An effect
runs once per commit, so the three warnings move there.

---------

Co-authored-by: Vailence <utekeshev@mindbox.cloud>
…prep (#222)

The wrapper takes mindbox-common compileOnly because mobile-sdk keeps it an
implementation dependency, so the release tooling has to move both lines at once —
otherwise the compile classpath keeps the old common while the runtime one comes
transitively from the new mobile-sdk.

Co-authored-by: Vailence <utekeshev@mindbox.cloud>
…енного блока (#224)

* MOBILE-557: Split the embedded block outcome into onLoad, onEmpty and onFail(reason)

The native blocks report three outcomes since MOBILE-504 (iOS) and MOBILE-505
(Android): the content is shown, the place has nothing to show, or the block
could not be shown, with a reason. The component now reports the same three.

`onEmpty` is new and carries no reason. `onFail` takes a
`MindboxEmbeddedBlockFailReason` — a string with the `networkError` and
`internalError` constants, the same raw values as on the native side, open to
words a later SDK adds. The two outcome events of the native component are
folded into one, `onBlockOutcome`, carrying the outcome word and the reason;
both native halves implement the new listener and delegate methods: the
Android one no longer compiles against the old `onFail(view)`, the iOS one
would otherwise keep compiling against a protocol whose default implementation
silently swallows the failure.

Outcomes are still deduplicated by kind: a failure that repeats with another
reason is the same outcome. A platform without a native block collapses and
reports `internalError`, which the component did not do before. The empty
`MindboxEmbeddedBlockFailure` placeholder type goes: the reason is what it was
reserved for.

* MOBILE-557: Let the block start hidden, with a placeholder, or by the place's memory, and reveal with the SDK's animation

The native blocks take a loading strategy since MOBILE-516 (iOS) and
MOBILE-517 (Android): `automatic` — the default — keeps the block hidden
until the place has shown content once on this device and puts a
placeholder there from then on, `placeholder` takes the space up front,
`hidden` never takes it before the content. Content is revealed with the
SDK's own animation unless `animatesReveal` is off. The component takes both,
fixed at creation like `timeoutMs`, and hands them to the native block.

Three things the JS side has to do itself:

The first look. Both natives decide it synchronously, before the container
exists, through a static `initialAppearance`; JS cannot reach anything
synchronously. `placeholder` and `hidden` are decided from the strategy
alone. `automatic` asks the `MindboxSdk` native module — the one module the
package already has, on both renderers — through a new
`embeddedBlockInitialAppearance` method that the JS side does not export, and
takes no space until it answers: a place that never showed content must not
flash reserved space, and one that has gets its placeholder a frame late
rather than a frame early. The native block's own report, once the native
view exists, outranks a later answer.

The slot. A block that waits hidden used to be impossible: both native halves
build the SDK container only once their view has a frame, and the native view
sat in a slot of zero. The layout now gives the slot — 0 for a collapsed
block — and the block inside keeps its full height under the slot's clip, so
it runs its whole cycle unseen, as the native blocks do.

The growth. The container fades the content in on its own; the growth of a
block that waited hidden is the wrapper's, as in SwiftUI, Compose and Flutter.
The native block says whether the change is the animated reveal — it owns the
gates: animatesReveal, Reduce Motion, "only the arrival of content" — and how
long it takes (`animated` and `revealDurationMs` on the appearance event;
Android's isRevealAnimated and REVEAL_ANIMATION_DURATION_MS, the same two
added to iOS as @_spi in ios-sdk feature/MOBILE-556). The slot then grows from
0 to the height over that duration, an Animated value on the JS side; every
other change lands at once.

* MOBILE-557: Say that whitespace around a place name is the native block's to ignore

iOS strips the whitespace since MOBILE-419, and Android's PlaceKey trims it
too, so a name pasted with a stray space finds its place on both. The
component never trimmed or warned about it — the test that the name reaches
the native block as given stands — and its doc now says so the way the
Flutter widget does, rather than describing what the SDK does with it.

* MOBILE-557: Let the native block alone tell an automatic block its first look

An `automatic` block asked the `MindboxSdk` module what it starts with — the
place's memory, read through the native `initialAppearance` — because the
native view was believed to stay unbuilt while the slot is collapsed. It does
not: the view inside the slot keeps the block's full height, both native
halves build the block as soon as they have a frame, and the block reports its
look the moment it is observed. That report reaches JS in the same mount, no
later than the module's promise could, with the same word read from the same
memory; `hasHeardFromNative` existed only to throw the module's answer away.

The channel goes — the TS module, the `@ReactMethod` and the `@objc` method
with its `RCT_EXTERN_METHOD`, the SPI import the Swift module needed for it —
and the first-look tests drive the native report instead of a mocked promise.

* MOBILE-557: Hand the host its callbacks at creation so the block's first look is not lost

`MindboxEmbeddedBlockHost` subscribed to the block inside `init`, and the SDK
answers a subscription at once with the current look — for an `automatic`
block, the place's memory. `onAppearance` was assigned by the component view
only after `init` returned, so that first report went to nobody. JS learned
the look only through the `.loading` the provider re-emits when the block
enters a window and starts, and a block mounted with `active={false}` did not
start: its remembered placeholder waited for the screen to become active,
while Android, whose emitters are wired before the block exists, showed it at
once.

Both callbacks are now parameters of the host's initializer and non-optional
`let`s, with `isTornDown` as the one guard after teardown; the observer is set
last in `init`. Both renderers pass their blocks in: under Fabric the event
emitter is set before `finalizeUpdates:`, under Paper the event blocks are
props set before `didSetProps:` and any layout pass.

With the emitter always in place when the host is built, the pending-event
buffers of the Fabric view had no path left; they are gone, and the emit
methods keep a plain early return that states the invariant.

* MOBILE-557: Keep every appearance and outcome event of an Android block out of coalescing

React Native's `Event` coalesces by default: same-named events of one view
that are still queued when a frame is dispatched are folded into the last one,
on Paper in `EventDispatcherImpl` and under Fabric through the `canCoalesce`
flag handed to the emitter. The JS side reads every change — a reveal is
content arriving where a placeholder or nothing stood, and every changed
outcome is promised to the host — so a report folded into the next one would
be a report lost. iOS never coalesced these: direct events and the generated
Fabric emitter dispatch each one.

* MOBILE-557: Fade a host overlay out above the content it is replaced by, on the native curve

The native block fades its content in from transparent, and the stand-in the
host's placeholder or error screen is drawn over is clear. The overlay went
away in the frame the look changed, so for the length of the fade the screen's
background showed through where the placeholder had been. SwiftUI writes the
look inside `withAnimation` and Compose fades its stand-in under the content;
here the overlay lies above the native view, so it stays and fades out over
the same duration, touches passing through to the content meanwhile. Any
other change takes it away at once, a fade interrupted included.

The slot's growth and this fade now follow the native curve per platform:
Material's standard curve on Android, ease-in-out on iOS. Tests cover the
fade, its interruption, the opaque placeholder of a reload after it, and the
cell the old reveal test missed — a placeholder or an error screen arriving
mid-growth takes the full height at once and stops the growth.

A nameless place is also told right: both native blocks report it empty, so
the docs, the warning and the test say `onEmpty`, not `onFail`.

* MOBILE-557: Say that a block waiting hidden draws no placeholder or error, and where the layout moves

The docs promised an `error` screen and a layout that does not jump; neither
is true for a block that waits hidden, which under the default strategy is
every place on a fresh install. Such a block draws neither `placeholder` nor
`error` until its content has been shown once — a failure keeps it collapsed
and only `onFail` tells — and an `automatic` block at a remembered place takes
its space a frame after the mount, not from the first one. `onLoad` of a block
that waited hidden comes while it is still growing from zero. The targeting
data a `networkError` may stand for is fetched that way on iOS only.

* MOBILE-557: Name what breaks for a host on 2.16.0-rc, under the header the release workflow expects

`mindbox-sdk@2.16.0-rc` is on npm under the `rc` tag with `onFail(failure)`,
the `MindboxEmbeddedBlockFailure` type, a placeholder from the first frame
and a README that hid the stories section in `onFail`. After this release an
empty place goes to `onEmpty`, so that section stays, and the compiler says
nothing about it. The release workflow inserts `## [Unreleased]` with
brackets; the header without them would have left two sections.

* MOBILE-557: Log an unknown loading strategy on Android once the place name is known

Fabric sets props in no fixed order: a strategy word arriving before the name
was logged against place 'null'. The word is kept and logged when the block
is built, next to the empty-name log, as the iOS host does.

---------

Co-authored-by: Vailence <utekeshev@mindbox.cloud>
…#228)

GitLab moved to a new host, and the old one now redirects the trigger API
to its sign-in page. curl --location followed the redirect and the script
counted the resulting 200 as success, so a manual distribute run went green
without creating any pipeline.

The trigger API answers 201 on success, so anything else now fails. The host
comes from the GITLAB_HOST secret, which keeps it out of the public logs and
lets the next move happen without a code change.
…#229)

GitLab moved to a new host, and the old one now redirects the trigger API
to its sign-in page. curl --location followed the redirect and the script
counted the resulting 200 as success, so a manual distribute run went green
without creating any pipeline.

The trigger API answers 201 on success, so anything else now fails. The host
comes from the GITLAB_HOST secret, which keeps it out of the public logs and
lets the next move happen without a code change.
Only comments change. The tests' layout helpers and one test name now say what their comments did.
One line per public member, worded as in the native SDKs; the README drops its embedded block section. A failed targeting fetch is documented under onEmpty, not networkError, and the advice to hide the section in onEmpty is gone.
…ws (#233)

Release PRs and the master-to-develop merge-back were opened and merged
with PAT_FOR_TRIGGERING_BRANCH_PROTECTION, a personal token of an org
admin account, only because events made with GITHUB_TOKEN start no
workflows. An installation token of the mindbox-mobile-ci App starts
them the same way, covers only this repository and the permissions of
its step, and expires within an hour.

The key comes from the org secret MOBILE_CI_APP_PRIVATE_KEY and the
client ID from the org variable MOBILE_CI_APP_CLIENT_ID. Release and
merge-back PRs are now authored by mindbox-mobile-ci[bot].
…-tracking-ids

MOBILE-389: Add disableTrackingIds support
MOBILE-0000: Drop the hand-written Unreleased section from the changelog
@AndreyEmtsov
AndreyEmtsov merged commit aa3a375 into master Nov 5, 2026
7 checks passed
@AndreyEmtsov
AndreyEmtsov deleted the release/2.16.0 branch November 5, 2026 09:03
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.

6 participants