fix(ios): Fix KillSwitchService — BLKillSwitchClient.check() returns Void
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.
This commit is contained in:
parent
151d8361ed
commit
d3c3affc1b
@ -6,7 +6,10 @@ import ByteLystPlatformSDK
|
||||
enum KillSwitchService {
|
||||
private static let client = BLKillSwitchClient(config: ChronoMindConfig.platform)
|
||||
|
||||
static func check() async -> BLKillSwitchResult {
|
||||
static var isDisabled: Bool { client.isDisabled }
|
||||
static var maintenanceMessage: String { client.maintenanceMessage }
|
||||
|
||||
static func check() async {
|
||||
await client.check()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user