refactor(ios): Phase 9A — Add Config.swift + KillSwitchService.swift

- Create Shared/Cloud/Config.swift with shared BLPlatformConfig for ChronoMind
- Create Shared/Cloud/KillSwitchService.swift thin wrapper over BLKillSwitchClient

Part of Mobile DRY Refactoring Roadmap Phase 9A.
This commit is contained in:
saravanakumardb1 2026-03-20 22:48:34 -07:00
parent 2060a831bf
commit c328216a0e
2 changed files with 25 additions and 0 deletions

View File

@ -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"
)
}

View File

@ -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()
}
}