diff --git a/ios/ChronoMind/Shared/Cloud/Config.swift b/ios/ChronoMind/Shared/Cloud/Config.swift new file mode 100644 index 0000000..9d34515 --- /dev/null +++ b/ios/ChronoMind/Shared/Cloud/Config.swift @@ -0,0 +1,13 @@ +// ── ChronoMind Platform Config ────────────────────────────── +// Single source of truth for BLPlatformConfig used by all SDK wrappers. + +import ByteLystPlatformSDK + +enum ChronoMindConfig { + static let platform: BLPlatformConfig = BLPlatformConfig.fromInfoPlist( + productId: "chronomind", + defaultBaseURL: "https://api.chronomind.app", + bundleId: "com.saravana.chronomind", + appGroupId: "group.com.chronomind.shared" + ) +} diff --git a/ios/ChronoMind/Shared/Cloud/KillSwitchService.swift b/ios/ChronoMind/Shared/Cloud/KillSwitchService.swift new file mode 100644 index 0000000..731e114 --- /dev/null +++ b/ios/ChronoMind/Shared/Cloud/KillSwitchService.swift @@ -0,0 +1,12 @@ +// ── Kill Switch Service ────────────────────────────────────── +// Thin wrapper over ByteLystPlatformSDK's BLKillSwitchClient. + +import ByteLystPlatformSDK + +enum KillSwitchService { + private static let client = BLKillSwitchClient(config: ChronoMindConfig.platform) + + static func check() async -> BLKillSwitchResult { + await client.check() + } +}