SharedPreferencesMockRuleStorage

The default MockRuleStorage backed by SharedPreferences (no-op build).

Mirrors the :lustro signature so consumer code compiles unchanged. Because the no-op build never captures or mocks traffic, load always returns an empty list and save does nothing. The prefs are accepted and held for API parity but never read or written.

Constructors

Link copied to clipboard
constructor(prefs: SharedPreferences)

Functions

Link copied to clipboard
open override fun load(): List<MockRule>

Returns an empty list; the no-op build persists nothing.

Link copied to clipboard
open override fun save(rules: List<MockRule>)

Does nothing; the no-op build persists nothing.