> This page is for Applications Protection.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.humansecurity.com/llms.txt.

# How to upgrade from v4

# Changes in the SDK's API

This article covers the major changes in the SDK's API.

## Bot Defender

* **Function renaming:**
  * `canHandleResponse` has been renamed to `canHandleBlockResponse`.
  * `handleResponse` has been renamed to `handleBlockResponse`.
  * In Android, a new suspend function called `handleBlockResponse` has been added.

## Environment

### iOS

* **SDK Build Specifications:**
  * The SDK is now built for **iOS/iPadOS/visionOS 26** and **Swift 6.0**.
  * The SDK's minimum deployment target is **iOS 13**.

### Android

* **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.
  * **Note:** 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.

    ```groovy
      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
    ```

    ```kotlin
    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
    ```