Skip to content

1.0.0-beta.29

Pre-release
Pre-release
Compare
Choose a tag to compare
@DzmitryFomchyn DzmitryFomchyn released this 22 Apr 18:52
· 218 commits to main since this release
69a683a

1.0.0-beta.29

Breaking changes

  • [CORE] ServiceProvider.globalDataProvidersRegistry() has been removed. Now customers should use SearchEngine.registerDataProvider() for the data providers registration. Interface IndexableDataProvidersRegistry and its internal classes are not available anymore either.
  • [CORE] Now IndexableDataProviders should provide priority field which affects IndexableRecord's ranking in case of multiple data providers added to a search engine.
  • [CORE] IndexableDataProviderEngineLayer has been renamed to IndexableDataProviderEngine. Also, functions registerIndexableDataProviderEngineLayer() and unregisterIndexableDataProviderEngineLayer() of IndexableDataProvider have been renamed to registerIndexableDataProviderEngine() and unregisterIndexableDataProviderEngine().
  • [CORE] Functionality of CategorySearchEngine, and ReverseGeocodingSearchEngine have been merged into SearchEngine. Also, functions MapboxSearchSdk.getCategorySearchEngine(), MapboxSearchSdk.getReverseGeocodingSearchEngine() have been removed, call MapboxSearchSdk.getSearchEngine() or MapboxSearchSdk.createSearchEngine() instead.
  • [CORE] Constants MapboxSearchSdk.LAYER_PRIORITY_HISTORY, MapboxSearchSdk.LAYER_PRIORITY_FAVORITES have been moved HistoryDataProvider.PROVIDER_PRIORITY, and FavoritesDataProvider.PROVIDER_PRIORITY.
  • [CORE] MapboxSearchSdk.addDataProviderInitializationCallback() and MapboxSearchSdk.removeDataProviderInitializationCallback() have been removed along with DataProviderInitializationCallback interface. Use HistoryDataProvider.OnDataProviderEngineRegisterListener(), and FavoritesDataProvider.OnDataProviderEngineRegisterListener() instead.
  • [CORE] Fields SearchSdkSettings.geocodingEndpointBaseUrl, and SearchSdkSettings.singleBoxSearchBaseUrl have been removed. Now you can configure search engine endpoints with SearchEngineSettings. SearchSdkSettings.Builder and corresponding functions have also been removed. MapboxSearchSdk.initialize() now can accept SearchEngineSettings.
  • [CORE] Class OfflineSearchSettings has been renamed to OfflineSearchEngineSettings. MapboxSearchSdk.initialize() argument offlineSearchSettings has also been renamed to offlineSearchEngineSettings.

New features

  • [CORE] Now customers can create several independent from each other SearchEngines. See MapboxSearchSdk.createSearchEngine().
  • [CORE] Now SearchRequestTask provides isDone, and isCancelled properties.

Mapbox dependencies

  • Search Native SDK 0.52.0
  • Common SDK 21.3.0-rc.2
  • Telemetry SDK 8.1.1
  • Kotlin 1.5.31