Android 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.
    APStatsManager.startDurationKpi() and APStatsManager.endDurationKpi()

    fun startDurationKpi(tag: String, context: Map<String, Any>? = null)
    fun endDurationKpi(tag: String)
    
  • Documentation : https://appspanel.readme.io/docs/android-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.

default_configuration.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

Fix

  • Add missing app_id (package name) field in POST /sdk/devices
  • Remove custom vibration pattern from default push notification channel
  • Session IDs are now created in each onResume instead of created when none exist and deleted in onStop

Dependencies upgrades

  • com.google.firebase:firebase-bom 32.1.0 -> 32.8.0
  • com.google.firebase:firebase-analytics removed
  • com.google.firebase:firebase-common-ktx:20.3.2, com.google.firebase:firebase-messaging-ktx:23.1.2 and com.google.firebase:firebase-crashlytics-ktx:18.3.7 now use the bom instead of a specific version, and also now use the recommended non-ktx version (which now includes the -ktx content).
    Essentiallycom.google.firebase:firebase-common-ktx:20.3.2becomescom.google.firebase:firebase-common
  • com.jakewharton.timber:timber 4.7.1 -> 5.0.1
  • com.datadoghq:dd-sdk-android:1.13.0 -> com.datadoghq:dd-sdk-android-logs:2.8.0