learning_ai_common_plat/packages/swift-platform-sdk/Tests
saravanakumardb1 ee762b4612 feat(native-sdks): add BLFieldEncrypt to Swift + Kotlin platform SDKs
- Swift: BLFieldEncrypt.swift + BLFieldEncryptTests.swift (22 tests)
  - CryptoKit AES-256-GCM, BLEncryptedField Codable struct
  - encrypt/decrypt, AAD support, generateKey, keyFromHex, isEncrypted
  - Data hex helpers (hexString, init?(hexString:))

- Kotlin: BLFieldEncrypt.kt + BLFieldEncryptTest.kt (21 tests)
  - javax.crypto AES-256-GCM, BLEncryptedField data class
  - encrypt/decrypt, AAD support, generateKey, keyFromHex, isEncrypted
  - ByteArray/String hex extension functions

- Wire-compatible: same EncryptedField JSON structure as @bytelyst/field-encrypt (TS)
  - { __encrypted: true, v: 1, alg: 'aes-256-gcm', ct, iv, tag, dekId }
  - All hex-encoded, 12-byte IV, 16-byte auth tag

- Fix: ByteLystPlatform.kt getString() → read() (pre-existing compile error)
2026-03-21 10:58:02 -07:00
..
BLAuthClientSmartAuthTests.swift fix(auth): address SmartAuth agent review gaps — Swift mock wiring, passkey SDK consistency, device list parity, JSDoc, SSR docs 2026-03-12 12:27:08 -07:00
BLFeatureFlagClientTests.swift feat(swift-sdk): add ByteLystPlatform unified entry point + 5 new test files (4.1) 2026-03-19 21:05:58 -07:00
BLFieldEncryptTests.swift feat(native-sdks): add BLFieldEncrypt to Swift + Kotlin platform SDKs 2026-03-21 10:58:02 -07:00
BLKeychainTests.swift feat(swift-sdk): add ByteLystPlatformSDK — shared Swift package for all iOS/watchOS/macOS apps 2026-02-28 22:12:20 -08:00
BLKillSwitchClientTests.swift feat(swift-sdk): add ByteLystPlatform unified entry point + 5 new test files (4.1) 2026-03-19 21:05:58 -07:00
BLPlatformConfigTests.swift feat(swift-sdk): add ByteLystPlatform unified entry point + 5 new test files (4.1) 2026-03-19 21:05:58 -07:00
BLTelemetryClientTests.swift feat(swift-sdk): add ByteLystPlatform unified entry point + 5 new test files (4.1) 2026-03-19 21:05:58 -07:00
ByteLystPlatformTests.swift feat(swift-sdk): add ByteLystPlatform unified entry point + 5 new test files (4.1) 2026-03-19 21:05:58 -07:00