Skip to navigation

Changes from v4

Learn about major changes in the SDK's API from v4 to v5.

This guide is relevant for the current Mobile SDK. While we highly recommend using the latest version, if you are using a legacy integration, refer to the iOS or Android documentation.

Bot Defender

  • Function renaming:
    • canHandleResponse renamed to canHandleBlockResponse.
    • handleResponse renamed to handleBlockResponse.
    • In Android, added a new suspend function called handleBlockResponse.

Environment

  • SDK Build Specifications:

    • The SDK is now built for API 36 and Kotlin 2.3.21.
  • New Dependencies:

    • The SDK has a new list of dependencies (see below). When fetching the SDK from our Artifactory, these dependencies are automatically included.

If you need to change the version of some dependencies, you may integrate the SDK manually and select the exact versions that work for your app.

implementation 'androidx.core:core-ktx:1.18.0' // any version (select 1.10.1 if your app has 'targetSdkVersion 33')
implementation 'androidx.lifecycle:lifecycle-process:2.10.0' // min v2.6.0 (select 2.6.2 if your app has 'targetSdkVersion 33')
implementation 'androidx.datastore:datastore-preferences:1.2.1' // any version (select 1.0.0 if your app targets API 33)
implementation 'com.google.android.material:material:1.13.0' // min v1.6.0 (select 1.9.0 if your app has 'targetSdkVersion 33')
implementation 'com.fasterxml.uuid:java-uuid-generator:5.2.0' // min v3.0.0
implementation 'io.ktor:ktor-client-okhttp:3.4.3' // min v3.0.0