Lustro
The Lustro debug runtime facade (no-op build).
This is the release-safe :lustro-noop mirror of the :lustro runtime facade. It exposes byte-identical public signatures so consumer code compiles unchanged, but every runtime body is a no-op: no socket is bound, no traffic is captured, networkInterceptor returns a pass-through interceptor, webSocketFactory returns the factory it is given, networkCaptureSink returns a sink that records nothing, and endpoint returns null.
Build one with builder, register DebugTabs, and start it. In this build start returns LustroStatus.DISABLED and stop does nothing; both are idempotent.
Types
Functions
Returns where the debug server listens and its token. The no-op build has no server, so this always returns null.
Returns a NetworkCaptureSink for the requests of another HTTP client. In the no-op build it records nothing, finds no mock rule, and every NetworkCaptureSink.beginRequest returns the same id.
Returns an OkHttp application interceptor. In the no-op build this is always a pass-through interceptor that forwards the request unchanged.
Starts the debug server. In the no-op build nothing binds and this always returns LustroStatus.DISABLED. Idempotent.
Returns a WebSocket.Factory for the app's sockets. In the no-op build this is delegate itself: nothing is wrapped and nothing is recorded.