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
| Version | Change | Action |
|---|---|---|
| 2.37 | 16 KB page-size alignment for the supported native ABIs (arm64-v8a, armeabi-v7a), NDK r29 | Update to 2.37.0 or later. See Installation |
| 2.29 | Distribution moves from .aar files to a Maven repository | Switch to Maven |
| 2.28.11 | First 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
-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.
| Problem | Solution |
|---|---|
401 during Gradle sync | Check the Maven credentials |
| Duplicate or missing classes | Make sure no .aar and no flatDir remain, then clean the project |
| ProGuard warnings | Compare your rules with the current ones and rebuild; test each module your app uses |