Extracts duplicated platform integration code from ChronoMind + LysnrAI into a single Swift Package. Eliminates ~1,100+ lines of copied code per product app. Components: - BLPlatformConfig — product-specific configuration (productId, baseURL, bundleId) - BLPlatformClient — generic HTTP client with auth injection, x-request-id, timeout - BLKeychain — Keychain CRUD for secure token storage - BLTelemetryClient — telemetry queue + batch flush (matches @bytelyst/telemetry-client) - BLAuthClient — full auth operations (matches @bytelyst/auth-client) - BLFeatureFlagClient — feature flag polling from platform-service /flags/poll - BLSyncEngine — generic offline-first sync with delta pull + batch push Platforms: iOS 17+, watchOS 10+, macOS 14+
15 lines
732 B
Swift
15 lines
732 B
Swift
// ── ByteLystPlatformSDK ──────────────────────────────────────
|
|
// Re-exports all public types for convenience.
|
|
//
|
|
// Usage in product apps:
|
|
// import ByteLystPlatformSDK
|
|
//
|
|
// let config = BLPlatformConfig(productId: "peakpulse", baseURL: "...", bundleId: "com.saravana.peakpulse")
|
|
// let client = BLPlatformClient(config: config)
|
|
// let telemetry = BLTelemetryClient(config: config, client: client)
|
|
// let auth = BLAuthClient(config: config, client: client)
|
|
// let flags = BLFeatureFlagClient(config: config, client: client)
|
|
|
|
// All types are exported via their respective files.
|
|
// This file exists for module-level documentation only.
|