Skip to content

1.2.0 - Swift 6, Instance Client, Result API

Latest

Choose a tag to compare

@mononz mononz released this 10 Jun 16:43

Brings the Swift SDK onto the same bar as the other sdks

Events Properties

3 new properties you can attach with event sends

  • title: notificaton title
  • event: event routing key
  • data: free form json useful in event routing

SDK

  • DI: public ApiAlertsClient + ApiAlertsClientProtocol for injection/mocking, alongside the APIAlerts singleton (now a thin facade). Injectable URLSession for tests.
  • API: no-throw Result API (send fire-and-forget, sendAsync returns Result<SendResult, ApiAlertsError>).
  • Spec: 30s timeout constant, all 7 Event fields, optional fields omitted, correct headers, os.Logger not print.