Test Mode
Test-mode manager.
Implements TestModeContext directly so TestModeState.Actions receive this as their receiver — same pattern as com.superwall.sdk.identity.IdentityManager / com.superwall.sdk.identity.IdentityContext.
State is held in a SequentialActor; pure mutations go through update(Updates.X) (CAS-atomic), async work (network + modal) is dispatched as TestModeState.Actions.
Constructors
Properties
Delegate state reads to the actor.
Functions
Refresh the test product catalog and (when justActivated) present the modal. Runs as a TestModeState.Actions.Activate action and suspends until it completes, so callers that must not wait on the modal's blocking UI (e.g. ConfigState) launch it in their own scope.
Suspend until the test product catalog has been loaded (or timeout elapses). No-op when inactive.
Fire-and-forget dispatch of a sub-action on this context's actor.
Apply a state reducer inline.