iOS SDK 5.5.0

Duration KPIs

  • Add "duration KPIs", a way to record time spent between two points in time, usually time spent on a screen.
    StatsManager.shared.startDurationKpi(), StatsManager.shared.endDurationKpi() and StatsManager.endAllDurationKpis()
    public func startDurationKpi(tag: String, context: Stats.Context? = nil)
    public func endDurationKpi(tag: String)
    public func endAllDurationKpis()
    
  • Documentation : https://appspanel.readme.io/docs/ios-duration-kpi

Version module

  • Add a dialog shown to the user if the app version is older than the one configured in the backoffice.
    This was previously usually done with the dialog module.

DefaultRemoteConfiguration.json

  • Replace uses of any .apnl.ws with .apnl-cloud.com
  • Remove components ad, poll, location, crash, note and log, and parameters object
  • Add component rating
  • Replace/update component feedback

Log module

  • Remove default clientToken, you now have to provide it to the SDK from the app with
        Logger.configure(environment: "env", clientToken: "clientToken")
    

Dependencies upgrades

  • Alamofire 5.5.0 -> 5.9.1
  • DatadogSDK (1.17.0) -> DatadogCore (2.8.1) + DatadogLogs (2.8.1) (now separate pods starting from 2.0)
  • Sourcery 2.0.2 -> 2.2.2