Skip to main content

Migration guide

Upgrade to the latest version whenever you can: each release improves capture, accuracy and security. This page covers migration history from 2.28 onward; the first listed change is 2.28.11. It lists only changes that require action in your code or build.

Summary​

VersionChangeAction
2.3716 KB page-size alignment for the supported native ABIs (arm64-v8a, armeabi-v7a), NDK r29Update to 2.37.0 or later. See Installation
2.29Distribution moves from .aar files to a Maven repositorySwitch to Maven
2.28.11First 16 KB memory page size support (ARM only)Superseded by 2.37

From .aar files to Maven (2.29)​

1. Remove the old libraries​

Delete every Mobbeel .aar from libs/ (mobbscan-sdk-android, mobbscan-video-android, mobb-commons-android, cameraviewplus, mobbscan-detector, opencv-android…) and remove the flatDir { dirs 'libs' } repository.

2. Add the repository and the dependencies​

app/build.gradle
-implementation(name: 'mobb-commons-android', version: 'X.Y.Z', ext: 'aar')
-implementation(name: 'mobbscan-sdk-android', version: 'X.Y.Z', ext: 'aar')
-implementation(name: 'cameraviewplus', version: 'X.Y.Z', ext: 'aar')
-implementation(name: 'mobbscan-detector', version: 'X.Y.Z', ext: 'aar')
-implementation 'org.greenrobot:eventbus:3.3.1'
-implementation 'com.google.code.gson:gson:2.10.1'
-// ...and the other third-party libraries
+implementation 'com.mobbeel:mobbscan-sdk-android:2.37.3'
+implementation 'com.mobbeel:mobbscan-video-android:2.37.3' // optional

Configure the repository as described in Installation. Third-party libraries are now resolved by Gradle: remove them from your build file.

3. Review the ProGuard rules​

Keep your existing rules and compare them with the current rules, including those of each module you use. Maven resolves the dependencies, but that does not make the existing shrinker rules unnecessary: remove or change a rule only after verifying a minified release build. Then run ./gradlew clean build.

4. Test​

Verify document scan, face matching, the license check and, if you use it, video recording.

ProblemSolution
401 during Gradle syncCheck the Maven credentials
Duplicate or missing classesMake sure no .aar and no flatDir remain, then clean the project
ProGuard warningsCompare your rules with the current ones and rebuild; test each module your app uses