Swift BLKillSwitchClient.check() sets isDisabled/maintenanceMessage as properties on the client, not a returned result. Expose isDisabled and maintenanceMessage as computed properties on the wrapper.
16 lines
545 B
Swift
16 lines
545 B
Swift
// ── Kill Switch Service ──────────────────────────────────────
|
|
// Thin wrapper over ByteLystPlatformSDK's BLKillSwitchClient.
|
|
|
|
import ByteLystPlatformSDK
|
|
|
|
enum KillSwitchService {
|
|
private static let client = BLKillSwitchClient(config: ChronoMindConfig.platform)
|
|
|
|
static var isDisabled: Bool { client.isDisabled }
|
|
static var maintenanceMessage: String { client.maintenanceMessage }
|
|
|
|
static func check() async {
|
|
await client.check()
|
|
}
|
|
}
|