Skip to main content

Migration guide

We recommend keeping the SDK up to date: every release includes improvements in detection, accuracy and security. This page lists only the changes that require action in your code or build configuration.

Summary​

VersionChangeAction
7.2.1Face detection engine shared with MobbScan; new release() methodCall faceSDK.release() when the screen is destroyed
7.1Distribution moves from .aar files to a Maven repositorySwitch to Maven
7.0.2The SDK no longer adds the API version to the URLPass the full URL, host and path, in serverUrl
7.0Offline mode removedRemove the mode parameter

From .aar files to Maven (7.1)​

1. Remove the old libraries​

Delete the MobbID .aar files from the libs/ folder (mobbid-core, mobbid-face, mobbid-face-ux and any other library provided by Mobbeel) and remove the flatDir { dirs 'libs' } repository.

2. Add the repository and the dependencies​

Add the Mobbeel Maven repository as described in Installation, then replace the file dependencies:

app/build.gradle.kts
-implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.aar"))))
+implementation("com.mobbeel.mobbid:core:7.2.1")
+implementation("com.mobbeel.mobbid:face:7.2.1")
+implementation("com.mobbeel.mobbid:face-ux:7.2.1")

Gradle now resolves the third-party libraries: remove the ones you declared manually.

3. Update the ProGuard rules​

Replace your MobbID rules with the current ones and remove rules written for the .aar files.

4. Clean and test​

./gradlew clean build

Test enrolment, verification, identification and liveness on a physical device.

Offline mode removed (7.0)​

Remove the mode parameter from initSDK:

Initialisation
-MIDSDK.initSDK(
- applicationId = "your_application_id",
- authToken = "your_auth_token",
- mode = MIDSDK.MIDMode.OFFLINE,
- serverUrl = "your_server_url",
- context = applicationContext,
-)
+MIDSDK.initSDK(
+ applicationId = "your_application_id",
+ authToken = "your_auth_token",
+ serverUrl = "your_server_url",
+ context = applicationContext,
+)