mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-11 22:55:55 +05:45
* 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
25 lines
591 B
Swift
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
|
|
}
|
|
|
|
}
|