New SDK components extracted from product apps: - BLBlobClient — Azure Blob Storage upload via SAS tokens (from LysnrAI BlobService) - BLKillSwitchClient — Kill switch check from platform-service (from LysnrAI KillSwitchService) - BLLicenseClient — License key activation + status (from LysnrAI LicenseService) - BLBiometricAuth — Face ID / Touch ID wrapper (from LysnrAI BiometricAuth) - BLCrashReporter — MetricKit crash reporting (from ChronoMind CrashReporter) - BLAuditLogger — Local rotating JSON audit log (from LysnrAI AuditLogger) SDK now has 13 source files. Updated README with full component table and migration status (3 apps fully migrated, 18 wrappers total).
35 lines
2.1 KiB
Swift
35 lines
2.1 KiB
Swift
// ── ByteLystPlatformSDK ──────────────────────────────────────
|
|
// Shared Swift platform client for all ByteLyst iOS/watchOS/macOS apps.
|
|
// Re-exports all public types via their respective source files.
|
|
//
|
|
// 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)
|
|
// let blob = BLBlobClient(config: config, client: client)
|
|
// let license = BLLicenseClient(config: config, client: client)
|
|
// let killSwitch = BLKillSwitchClient(config: config)
|
|
// let crashReporter = BLCrashReporter(productId: config.productId)
|
|
//
|
|
// Components (13 source files):
|
|
// - BLPlatformConfig — Product-specific config (productId, baseURL, bundleId, appGroupId)
|
|
// - BLPlatformClient — Generic HTTP client (auth injection, x-request-id, fire-and-forget)
|
|
// - BLKeychain — Keychain CRUD (configurable service string)
|
|
// - BLTelemetryClient — Telemetry event queue + batch flush
|
|
// - BLAuthClient — Full auth operations (login, register, refresh, password ops)
|
|
// - BLFeatureFlagClient — Feature flag polling from /flags/poll
|
|
// - BLSyncEngine — Generic offline-first sync with BLSyncAdapter protocol
|
|
// - BLBlobClient — Azure Blob Storage upload via SAS tokens
|
|
// - BLKillSwitchClient — Kill switch check from platform-service
|
|
// - BLLicenseClient — License key activation via platform-service
|
|
// - BLBiometricAuth — Face ID / Touch ID wrapper
|
|
// - BLCrashReporter — MetricKit crash and performance reporting
|
|
// - BLAuditLogger — Local rotating JSON audit log
|
|
|
|
// All types are exported via their respective files.
|
|
// This file exists for module-level documentation only.
|