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
| Version | Change | Action |
|---|---|---|
| 7.2.1 | Face detection engine shared with MobbScan; new release() method | Call faceSDK.release() when the screen is destroyed |
| 7.1 | Distribution moves from .aar files to a Maven repository | Switch to Maven |
| 7.0.2 | The SDK no longer adds the API version to the URL | Pass the full URL, host and path, in serverUrl |
| 7.0 | Offline mode removed | Remove 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:
-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:
-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,+)