b.well SDK v1.18.0

b.well Kotlin SDK v1.18.0 Change Log

b.well Kotlin SDK version 1.18.0 includes new features and several enhancements.

New Additions

New b.well Health Sync SDK for Kotlin

  • Connect and sync on-device health data through Android Health Connect natively, without a WebView or React Native
  • Ships as an additional module, bwell-sdk-kotlin-healthsync, plus an on-device source adapter — the base bwell-sdk-kotlin artifact is unchanged
  • Register the on-device source once at startup with BWellHealthSync.configure(source), after BWellSdk.initialize(config)
  • BWellSdk.healthSync exposes the on-device primitives: sources(), startSession(), endSession(), currentUser(), isAvailable(), requestPermissions(), hasPermission(), and sync()
  • BWellSdk.connect(sourceId) and BWellSdk.disconnect(sourceId) compose the full provisioning handshake, so credentials never reach the caller
  • sourceId may be omitted when exactly one source is registered
  • An installable healthsync-sample app demonstrates the full flow

Updates

Financials: ExplanationOfBenefitRequest now supports coverage

  • Two new builder methods filter claims to one or more insurance plans:
    • coverage(coverage: String) — adds a single Coverage id
    • coverages(coverages: List<String>) — adds multiple Coverage ids
  • The value is the bare Coverage id, without a Coverage/ prefix
  • Multiple Coverage ids are OR-ed
  • See Insurance Claims guide for more info

Consent: ConsentRequest now supports organizationId

  • New organizationId(organizationId: String) builder method narrows the search to the active consent for a specific organization and category combination
  • The value is the bare organization id and must not be blank

SDK identification headers

  • Every outbound GraphQL request now sends three identification headers:
    • apollographql-client-namebwell-kotlin
    • apollographql-client-version — the SDK version
    • bwell-platformAndroid/<os-release>

R8 / ProGuard

  • DeviceMetricsQueryRequest and DeviceMetricsGroupsRequest are now kept in R8, fixing device metrics requests in minified release builds