For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
HUMAN DashboardHUMAN WebsiteRequest a Demo
Product GuidesEnforcer GuidesMobile SDKAPI ReferenceCustomer support
Product GuidesEnforcer GuidesMobile SDKAPI ReferenceCustomer support
    • Overview
  • Mobile SDK (for Android, iOS, and visionOS)
    • Android changelog
    • iOS, iPadOs, & visionOS changelog
    • Expo changelog
    • React Native Wrapper changelog
      • Testing practices
      • Integration Guide
      • How to upgrade from v4
  • iOS SDK
    • What's New
    • How to test your app with the SDK
  • Android SDK
    • What's New
    • How to test your app with the SDK
LogoLogo
Login
Login
HUMAN DashboardHUMAN WebsiteRequest a Demo
On this page
  • Changes in the SDK’s API
  • Bot Defender
  • Environment
  • iOS
  • Android
Mobile SDK (for Android, iOS, and visionOS)v5

How to upgrade from v4

Was this page helpful?
Previous

Native - Basic Implementation

Next
Built with

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.

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