Skip to content

v4.1.0

Latest

Choose a tag to compare

@akovalov akovalov released this 03 Dec 12:13
· 1 commit to master since this release

Highlights

  • Terminate: terminate() stops the SDK completely: turbulence detection and recording, location tracking, data fetching and server communication. Call initialize(with:completion:) to start again. fetchConfig is reset to its defaults, so set it again after initializing; the delegate is kept. An initialize still in progress completes with GeneralError.notStarted.
  • Fetch status: the new optional SkyPathDelegate.didUpdateFetchStatus(_:dataType:areaType:) notifies when fetching starts, completes or fails, per data type and area. Check the current status at any time, from any thread, with fetchStatus(for:areaType:). See FetchStatus.
  • Simulation on any environment: SkyPath.shared.testing simulation APIs now work on production too. Simulated data is sent to the server on staging only, never on production.

Breaking Changes

  • testing.enablePushSimulated(_:) is removed. Remove the call; whether simulated data is sent is now decided by the environment.
  • stop() is replaced by terminate(). Xcode offers a fix-it.

Fixes

  • Fixed a crash when locations are provided at a high rate or from a background thread. inject(location:) can now be called from any thread.
  • The first injected location is used right away when no other location is available.
  • Fixed data races when terminating the SDK.
  • Fixed rare crashes on app start and while recording turbulence.

Improvements

  • Various stability improvements.