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:
parent
2060a831bf
commit
c328216a0e
13
ios/ChronoMind/Shared/Cloud/Config.swift
Normal file
13
ios/ChronoMind/Shared/Cloud/Config.swift
Normal 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"
|
||||
)
|
||||
}
|
||||
12
ios/ChronoMind/Shared/Cloud/KillSwitchService.swift
Normal file
12
ios/ChronoMind/Shared/Cloud/KillSwitchService.swift
Normal 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()
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user