Repository navigation
Navigation SDK v3.31.2
Features
- Added
SdkDispatchers(@MapboxExperimental) — a central coroutine dispatcher holder for the Navigation SDK. CallSdkDispatchers.configure {}inApplication.onCreate()to limit SDK parallelism (e.g.setDefaultParallelism,setIoParallelism) and reduce contention with the host application's own thread pools. Ifconfigureis never called the SDK falls back toDispatchers.DefaultandDispatchers.IO. - Replaced
MapboxEvViewOptions.Builder#withIconFactorywithwithIconVariantsFactory, which returns an ordered list of icon variants for a station. The map shows the first variant that fits. Icons are now created lazily fromMapboxEvViewClient#onStyleImageMissing. - Added
MapboxEvViewOptions.Builder#withIconOffsetsto set an icon offset per variant. - Added support for the
INITIALIZEDroute state during EV charging at the departure waypoint. AddedChargingState,RouteProgress#chargingState, andRouteProgress#isChargingExpectedto expose the current charging phase, andMapboxNavigation#startCharging/MapboxNavigation#stopChargingto control charging transitions.
Bug fixes and improvements
- Fixed EV dynamic data updates mixing the battery conditioning model parameters with the legacy preconditioning parameters, which produced a conflicting set that Directions rejected. An update now supersedes the other group, keeping only the parameters from the latest update.
- Fixed Copilot history files not being uploaded in apps minified with R8 full mode.
- Fixed an issue where Copilot could upload history files with an empty or rotated access token captured when the upload was scheduled. The current
MapboxOptions.accessTokenis now used whenever possible.
Mapbox dependencies
This release depends on, and has been tested with, the following Mapbox dependencies:
- Mapbox Maps SDK
v11.31.2(release notes) - Mapbox Navigation Native
v324.31.2 - Mapbox Core Common
v24.31.2 - Mapbox Java
v7.10.1(release notes)