Skip to content

Releases: mapbox/mapbox-search-android

1.0.0-beta.36

08 Sep 17:19
dc44757
Compare
Choose a tag to compare
1.0.0-beta.36 Pre-release
Pre-release

1.0.0-beta.36

Breaking changes

  • [CORE] AsyncOperationTask, SearchCancellationException, SearchRequestException, RoutablePoint have been moved to com.mapbox.search.common package. MainThreadWorker, and SearchSdkMainThreadWorker have been moved to com.mapbox.search.common.concurrent.
  • [CORE] SearchRequestTask has been replaced with AsyncOperationTask
  • [CORE] SearchSuggestion is a class now. Functions signature of SearchSuggestionsCallback, SearchSelectionCallback, SearchMultipleSelectionCallback have been changed for Java users.
  • [CORE, UI] Offline functionality has been moved to a separate dependency which can be resolved via com.mapbox.search:offline:$version. Package name for offline functionality is com.mapbox.search.offline. At the moment Offline SDK version is the same as the main Search SDK version. OfflineSearchEngine instance can be retrieved via OfflineSearchEngine.create(OfflineSearchEngineSettings).
  • [UI] SearchResultsView.SearchListener.onOfflineSearchResults() signature has been changed to onOfflineSearchResults(List<OfflineSearchResult>m OfflineResponseInfo). Also, a new function SearchResultsView.SearchListener.onOfflineSearchResult() has been added.

New features

  • [CORE] FeedbackEvent.FeedbackReason now has few more reasons that can be used in the feedback: INCORRECT_PHONE_NUMBER, and INCORRECT_RESULT_RANK.
  • [UI] A new function SearchPlace.createFromOfflineSearchResult() is available.

Bug fixes

  • [UI] Now created in the SearchPlaceBottomSheetView FavoriteRecord will be saved with id from SearchPlace.id

Mapbox dependencies

  • Search Native SDK 0.59.0
  • Common SDK 23.0.0
  • Kotlin 1.5.31

1.0.0-beta.35

16 Aug 14:32
246141a
Compare
Choose a tag to compare
1.0.0-beta.35 Pre-release
Pre-release

1.0.0-beta.35

Breaking changes

  • [UI] Now SearchPlace constructor requires additional property id. copy() function's signature has also been changed.

New features

  • [CORE] SearchResultType provides a new value - BLOCK which represents the block number. Available specifically for Japan.

Mapbox dependencies

  • Search Native SDK 0.58.0
  • Common SDK 23.0.0-beta.1
  • Kotlin 1.5.31

1.0.0-beta.34

14 Jul 15:31
937c32d
Compare
Choose a tag to compare
1.0.0-beta.34 Pre-release
Pre-release

1.0.0-beta.34

Breaking changes

  • [CORE] Undocumented system property used to enable SBS API Type is deprecated. Use MapboxSearchSdk.createSearchEngine(ApiType, SearchEngineSettings), and MapboxSearchSdk.createSearchEngineWithBuiltInDataProviders(ApiType, SearchEngineSettings) instead. Note that SBS Api Type is still in beta and not available publicly.
  • [AUTOFILL] AddressAutofill.suggestions(String, AddressAutofillOptions) has been replaced with AddressAutofill.suggestions(Query, AddressAutofillOptions). Call Query.create() to create an instance of Query.

New features

  • [CORE] MapboxSearchSdk.createSearchEngine(ApiType, SearchEngineSettings), and MapboxSearchSdk.createSearchEngineWithBuiltInDataProviders(ApiType, SearchEngineSettings) functions are available that allow to choose API Type. Note that ApiType.GEOCODING is the only API Type available publicly.
  • [UI] SearchResultsView.Configuration accepts a new optional argument apiType used for the SearchEngine initialization.

Mapbox dependencies

  • Search Native SDK 0.57.0
  • Common SDK 22.1.0-beta.1
  • Kotlin 1.5.31

1.0.0-beta.33.1

13 Jul 08:13
4fb6f05
Compare
Choose a tag to compare
1.0.0-beta.33.1 Pre-release
Pre-release

1.0.0-beta.33.1

New features

  • [CORE] Now RequestOptions provides new fields endpoint and sessionID.

Bug fixes

  • [CORE] Now SearchAddress.formattedAddress(FormatStyle.Medium) for address with country United States includes region.

Mapbox dependencies

  • Search Native SDK 0.57.0
  • Common SDK 22.1.0-beta.1
  • Kotlin 1.5.31

1.0.0-beta.33

07 Jul 10:55
910f76c
Compare
Choose a tag to compare
1.0.0-beta.33 Pre-release
Pre-release

1.0.0-beta.33

Breaking changes

  • [CORE] ServiceProvider.analyticsService() function has been removed. Now AnalyticsService instance is associated with SearchEngine, and OfflineSearchEngine. AnalyticsService can be retrieved from SearchEngine.analyticsService, and OfflineSearchEngine.analyticsService.
  • [CORE] ServiceProvider.locationEngine() function has been removed. Now LocationEngine instance can be retrieved from settings used for search engines instantiation.
  • [CORE] SearchSdkSettings class has been removed. Now default max number of history records is always 100.
  • [CORE] Now SearchEngineSettings and OfflineSearchEngineSettings accept new constructor parameters. OfflineSearchEngineSettings.copy() function's signature and OfflineSearchEngineSettings.Builder have also been changed. SearchEngineSettings provides SearchEngineSettings.Builder type and new copy() and toBuilder() functions.
  • [CORE] MapboxSearchSdk.initialize() function has been removed. Now it's not needed to initialize Search SDK explicitly.
  • [CORE] MapboxSearchSdk.setAccessToken() function has been removed. Now in case of changed token a new instance of SearchEngine or OfflineSearchEngine should be created.
  • [CORE] MapboxSearchSdk.getSearchEngine() function has been removed, call MapboxSearchSdk.createSearchEngine() function instead.
  • [CORE] MapboxSearchSdk.createSearchEngine() function without parameters has been removed. Now SearchEngineSettings should always be provided as an argument.
  • [CORE] MapboxSearchSdk.getOfflineSearchEngine() function has been removed, call MapboxSearchSdk.createOfflineSearchEngine() function instead.
  • [CORE] OfflineSearchEngine.tileStore property has been removed, call OfflineSearchEngine.settings.tileStore instead.
  • [CORE] Now ApiType has a new AUTOFILL constant.
  • [UI] SearchResultsView.initialize() now accepts SearchResultsView.Configuration object.
  • [UI] SearchBottomSheetView, SearchCategoriesBottomSheetView, SearchFeedbackBottomSheetView views are not supported anymore. These views and their nested types have been removed from the Search SDK. Also, unused types such as IncorrectSearchPlaceFeedback, FavoriteTemplate, Category are not available either.
  • [UI] IncorrectSearchPlaceFeedback has been moved to com.mapbox.search.ui.view.place package.
  • [AUTOFILL] AddressAutofill.create(searchEngine: SearchEngine) has been replaced with AddressAutofill.create(context: Context, accessToken: String).
  • [AUTOFILL] AddressAutofillOptions.countries now is a list of AddressAutofillOptions.Country values and AddressAutofillOptions.language is AddressAutofillOptions.Language value.
  • [AUTOFILL] AddressAutofillResult.address now is an instance of AddressAutofillResult.Address type.

New features

  • [CORE] SearchEngine and OfflineSearchEngine provide settings property that return settings object used for engine initialization.
  • [UI] Now clicked by a user in SearchResultsView search results will be automatically added to the search history.
  • [AUTOFILL] Now autofill works on top of the special-purpose version of the Geocoding V5 API.

Mapbox dependencies

  • Search Native SDK 0.57.0
  • Common SDK 22.1.0-beta.1
  • Kotlin 1.5.31

1.0.0-beta.32

16 Jun 12:27
67bfd1f
Compare
Choose a tag to compare
1.0.0-beta.32 Pre-release
Pre-release

1.0.0-beta.32

Same release as 1.0.0-beta.31 but with Common SDK 22.0.0.

Mapbox dependencies

  • Search Native SDK 0.56.0
  • Common SDK 22.0.0
  • Kotlin 1.5.31

1.0.0-beta.31

15 Jun 11:41
c68127d
Compare
Choose a tag to compare
1.0.0-beta.31 Pre-release
Pre-release

1.0.0-beta.31

Breaking changes

  • [CORE] OfflineSearchEngine is a 1-step search now, which means that SearchResult's returned in the first step without SearchSuggestion selection. OfflineSearchEngine.select() function has been removed. OfflineSearchEngine.search() accepts SearchCallback callback type.
  • [CORE] Now automatically cancelled by the Search SDK search requests made to the SearchEngine and OfflineSearchEngine will be passing SearchCancellationException to the corresponding callbacks of SearchCallback, SearchSuggestionsCallback, and SearchSelectionCallback.
  • [UI] Now SearchResultsView.SearchListener has a new function onOfflineSearchResults().

New features

  • [CORE] Autofill SDK prototype is available now.
  • [CORE] Now SearchResult provides a new accuracy field which is a point accuracy metric for the returned address.

Bug fixes

  • [CORE] Fixed a bug in the previous version of the Search SDK which didn't include http service implementation by default.

Mapbox dependencies

  • Search Native SDK 0.55.0
  • Common SDK 21.3.0
  • Kotlin 1.5.31

1.0.0-beta.30

27 May 11:32
a13fac8
Compare
Choose a tag to compare
1.0.0-beta.30 Pre-release
Pre-release

1.0.0-beta.30

Breaking changes

  • [CORE] IndexableDataProvider.add(), and IndexableDataProvider.update() have been replaced with a new function IndexableDataProvider.upsert().
  • [CORE] IndexableDataProvider.addAll() has been renamed to IndexableDataProvider.upsertAll().
  • [CORE] IndexableDataProviderEngine.add(), and IndexableDataProviderEngine.update() have been replaced with a new function IndexableDataProviderEngine.upsert().
  • [CORE] IndexableDataProviderEngine.addAll() has been renamed to IndexableDataProviderEngine.upsertAll().
  • [CORE] IndexableDataProviderEngine.executeBatchUpdate() has been removed along with IndexableDataProviderEngine.BatchUpdateOperation. Now IndexableDataProviderEngine is a thread-safe entity. If you need multiple operations to be executed one after another, call them in a needed order on the same thread.
  • [CORE] AnalyticsService.sendRawFeedbackEvent() has been removed. Events should be sent immediately.
  • [CORE] AnalyticsService.createRawFeedbackEvent() functions have been made asynchronous and marked as deprecated. These functions return raw events in a very specific format and should not be used.

Mapbox dependencies

  • Search Native SDK 0.54.1
  • Common SDK 21.3.0
  • Kotlin 1.5.31

1.0.0-beta.29.1

13 May 07:26
4c86f97
Compare
Choose a tag to compare
1.0.0-beta.29.1 Pre-release
Pre-release

1.0.0-beta.29.1

New features

  • [CORE] SearchResult and SearchSuggestion now provide externalIDs property.

Mapbox dependencies

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

1.0.0-beta.29

22 Apr 18:52
69a683a
Compare
Choose a tag to compare
1.0.0-beta.29 Pre-release
Pre-release

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