Files
purchases-ios/Sources/Networking/RemoteConfigTopic.swift
T
Rick 5fe329ff64 feat(remote-config): add APIs for reading topic/blob data from RemoteConfigManager (#7134)
* feat(remote-config): add read facade for blob data

* docs(remote-config): document read facade APIs

* refactor(remote-config): clarify refresh waiter continuations

* docs(remote-config): document manager refresh state

* fix(remote-config): update purchases test manager mock

* fix(remote-config): read facade cache data off caller executor

* fix(remote-config): avoid async work in nimble autoclosures

* fix(remote-config): honor disabled state after topic reads

* fix(remote-config): avoid async unwrap autoclosures

* test(remote-config): fix disabled blob read assertion

* refactor(remote-config): move topic store protocol near disk cache

* fix(remote-config): stop reads after manager closes

* fix(remote-config): avoid repeated read refreshes

* fix(remote-config): guard committed reads against cache clears

* test(remote-config): make stale read tests deterministic
2026-07-06 09:34:12 +02:00

25 lines
591 B
Swift

//
// RemoteConfigTopic.swift
// RevenueCat
//
// Created by Rick van der Linden.
// Copyright © 2026 RevenueCat, Inc. All rights reserved.
import Foundation
/// Remote config topics that SDK code can read through `RemoteConfigManager`.
///
/// The sync path remains string-keyed so unknown server topics can still be persisted.
/// The read facade uses this closed set to avoid arbitrary or misspelled topic reads.
enum RemoteConfigTopic: String {
case workflows
case uiConfig = "ui_config"
case sources
var wireName: String {
return self.rawValue
}
}