Migration Guide 3.5
Migration SDK from Old Versions
This section provides a detailed description of API changes introduced or removed in recent SDK upgrades.
We strongly recommend reading this documentation when upgrading the SDK version to understand the differences and update your API calls accordingly.
Migration to Version 3.5.0
Bluetooth Connection Changes Notification
DriveMotion Android SDK now supports real-time notification of Bluetooth connection changes for the recommended peripheral list.
A new field peripheralsFlow has been added to GetRecommendedPeripheralsResponse:
1 | |
Usage:
The peripheralsFlow provides a reactive stream of peripheral list updates. You can observe this StateFlow to receive real-time updates when Bluetooth connection states change.
Example:
1 2 3 4 5 6 7 | |
Note
The peripheralsFlow will be null if the feature is not available or not enabled. Always check for null before collecting the flow.
SQLCipher Update for 16 KB Page Size Support
The SDK has updated SQLCipher to support Android devices with 16 KB page sizes, ensuring compatibility with newer Android devices.
No code changes are required for this update.