LocalOverrideStore
class LocalOverrideStore(context: Context, isDebug: Boolean, prefsName: String = DEFAULT_PREFS_NAME, logger: KommonLogger = NoOpLogger) : ConfigOverrideSource
Debug-only local override store for remote config values.
In release builds (isDebug = false) the override accessors return null/no-op so they can never accidentally shadow remote values in production. Implements ConfigOverrideSource, so it plugs straight into a io.github.maniramezan.kommon.remoteconfig.ConfigResolver.
If a key's ConfigValueType changes between app versions, a previously stored override of the old type is discarded (and removed) instead of crashing with a ClassCastException.
Constructors
Link copied to clipboard
constructor(context: Context, isDebug: Boolean, prefsName: String = DEFAULT_PREFS_NAME, logger: KommonLogger = NoOpLogger)