Releases: mapbox/mapbox-search-android
Releases · mapbox/mapbox-search-android
1.0.0-beta.32
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
1.0.0-beta.31
Breaking changes
- [CORE]
OfflineSearchEngine
is a 1-step search now, which means thatSearchResult
's returned in the first step withoutSearchSuggestion
selection.OfflineSearchEngine.select()
function has been removed.OfflineSearchEngine.search()
acceptsSearchCallback
callback type. - [CORE] Now automatically cancelled by the Search SDK search requests made to the
SearchEngine
andOfflineSearchEngine
will be passingSearchCancellationException
to the corresponding callbacks ofSearchCallback
,SearchSuggestionsCallback
, andSearchSelectionCallback
. - [UI] Now
SearchResultsView.SearchListener
has a new functiononOfflineSearchResults()
.
New features
- [CORE] Autofill SDK prototype is available now.
- [CORE] Now
SearchResult
provides a newaccuracy
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
1.0.0-beta.30
Breaking changes
- [CORE]
IndexableDataProvider.add()
, andIndexableDataProvider.update()
have been replaced with a new functionIndexableDataProvider.upsert()
. - [CORE]
IndexableDataProvider.addAll()
has been renamed toIndexableDataProvider.upsertAll()
. - [CORE]
IndexableDataProviderEngine.add()
, andIndexableDataProviderEngine.update()
have been replaced with a new functionIndexableDataProviderEngine.upsert()
. - [CORE]
IndexableDataProviderEngine.addAll()
has been renamed toIndexableDataProviderEngine.upsertAll()
. - [CORE]
IndexableDataProviderEngine.executeBatchUpdate()
has been removed along withIndexableDataProviderEngine.BatchUpdateOperation
. NowIndexableDataProviderEngine
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
1.0.0-beta.29.1
New features
- [CORE]
SearchResult
andSearchSuggestion
now provideexternalIDs
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
1.0.0-beta.29
Breaking changes
- [CORE]
ServiceProvider.globalDataProvidersRegistry()
has been removed. Now customers should useSearchEngine.registerDataProvider()
for the data providers registration. InterfaceIndexableDataProvidersRegistry
and its internal classes are not available anymore either. - [CORE] Now
IndexableDataProvider
s should providepriority
field which affectsIndexableRecord
's ranking in case of multiple data providers added to a search engine. - [CORE]
IndexableDataProviderEngineLayer
has been renamed toIndexableDataProviderEngine
. Also, functionsregisterIndexableDataProviderEngineLayer()
andunregisterIndexableDataProviderEngineLayer()
ofIndexableDataProvider
have been renamed toregisterIndexableDataProviderEngine()
andunregisterIndexableDataProviderEngine()
. - [CORE] Functionality of
CategorySearchEngine
, andReverseGeocodingSearchEngine
have been merged intoSearchEngine
. Also, functionsMapboxSearchSdk.getCategorySearchEngine()
,MapboxSearchSdk.getReverseGeocodingSearchEngine()
have been removed, callMapboxSearchSdk.getSearchEngine()
orMapboxSearchSdk.createSearchEngine()
instead. - [CORE] Constants
MapboxSearchSdk.LAYER_PRIORITY_HISTORY
,MapboxSearchSdk.LAYER_PRIORITY_FAVORITES
have been movedHistoryDataProvider.PROVIDER_PRIORITY
, andFavoritesDataProvider.PROVIDER_PRIORITY
. - [CORE]
MapboxSearchSdk.addDataProviderInitializationCallback()
andMapboxSearchSdk.removeDataProviderInitializationCallback()
have been removed along withDataProviderInitializationCallback
interface. UseHistoryDataProvider.OnDataProviderEngineRegisterListener()
, andFavoritesDataProvider.OnDataProviderEngineRegisterListener()
instead. - [CORE] Fields
SearchSdkSettings.geocodingEndpointBaseUrl
, andSearchSdkSettings.singleBoxSearchBaseUrl
have been removed. Now you can configure search engine endpoints withSearchEngineSettings
.SearchSdkSettings.Builder
and corresponding functions have also been removed.MapboxSearchSdk.initialize()
now can acceptSearchEngineSettings
. - [CORE] Class
OfflineSearchSettings
has been renamed toOfflineSearchEngineSettings
.MapboxSearchSdk.initialize()
argumentofflineSearchSettings
has also been renamed toofflineSearchEngineSettings
.
New features
- [CORE] Now customers can create several independent from each other
SearchEngine
s. SeeMapboxSearchSdk.createSearchEngine()
. - [CORE] Now
SearchRequestTask
providesisDone
, andisCancelled
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
1.0.0-beta.28
1.0.0-beta.28
New features
- [UI] Now
SearchBottomSheetView
shows all the available search history records along with their addresses. - [UI] Now users can swipe history records left to remove a record from the the recent searches.
Bug fixes
- [UI] Now keyboard is hidden automatically when user navigates back from the feedback card or closes it.
Mapbox dependencies
- Search Native SDK
0.51.0
- Common SDK
21.2.0
- Telemetry SDK
8.1.1
- Kotlin
1.5.31
1.0.0-beta.27
1.0.0-beta.27
New features
- [CORE] Now
SearchSuggestion
has a newcategories
property. - [UI]
SearchBottomSheetView
has a new callbackSearchBottomSheetView.OnSearchViewStateChangeListener
that notifies subscribers when the "Main search view" changes it's state.
Breaking changes
- [CORE] Search SDK doesn't implicitly request
android.permission.ACCESS_COARSE_LOCATION
permission anymore. DefaultLocationEngine
that's passed toMapboxSearchSdk.initialize()
needs location access in order to work properly. - [UI]
SearchResultsView.SearchListener
now has more callback functions:SearchListener.onSuggestions()
,SearchListener.onCategoryResult()
, andSearchListener.onError()
.
Mapbox dependencies
- Search Native SDK
0.50.0
- Common SDK
21.2.0-beta.1
- Telemetry SDK
8.1.1
- Kotlin
1.5.31
1.0.0-beta.26
1.0.0-beta.26
New features
- [CORE] New properties are available
SearchSuggestion.matchingName
,SearchSuggestion.serverIndex
,SearchResult.matchingName
,SearchResult.serverIndex
,ResponseInfo.responseUuid
. - [CORE] Now customers can provide their own feedback IDs in
FeedbackEvent.feedbackId
andMissingResultFeedbackEvent.feedbackId
. - [CORE] Now
SearchSuggestion
provides optionalmetadata
property. - [CORE] Now
SearchResultMetadata
provides optionalcountryIso1
andcountryIso2
properties that provide country codes inISO 3166-1
andISO 3166-2
. These properties are available for bothSearchResult
andSearchSuggestion
types, in SBS and V5 APIs.
Bug fixes
- [CORE] Fixed GSON serialization for
SearchResult
andSearchSuggestion
Mapbox dependencies
- Search Native SDK
0.49.0
- Common SDK
21.1.0
- Telemetry SDK
8.1.1
- Kotlin
1.5.31
1.0.0-beta.25
1.0.0-beta.25
Breaking changes
- [CORE] Public interfaces
SearchResult
,ServerSearchResult
,IndexableRecordSearchResult
,SearchSuggestion
have been marked assealed
as they were not supposed to be implemented by external code. - [UI] Now
SearchCategoriesBottomSheetView.CategoryLoadingStateListener.onLoadingError()
callback provides one more parameter -Exception
occurred during the request. - [UI] Now
SearchCategoriesBottomSheetView.CategoryLoadingStateListener.onCategoryResultsLoaded()
callback provides one more parameter -ResponseInfo
which contains response information.
New features
- [CORE, UI] Now Search SDK documentation and source code is visible in Android Studio.
Bug fixes
- [CORE] Now
SearchRequestException
contains original detail error message returned from the backend.
Mapbox dependencies
- Search Native SDK
0.47.0
- Common SDK
21.1.0-rc.1
- Telemetry SDK
8.1.1
- Kotlin
1.5.31
1.0.0-beta.24
1.0.0-beta.24
Breaking changes
- [UI] Now initialization methods
SearchPlaceBottomSheetView.initialize()
,SearchCategoriesBottomSheetView.initialize()
,SearchResultsView.initialize()
have to be called in order to make these views work properly.
New features
- [UI] Now you can provide distance unit type (imperial or metric) used for views visual information via initialization methods of the views:
SearchBottomSheetView.initializeSearch()
,SearchPlaceBottomSheetView.initialize()
,SearchCategoriesBottomSheetView.initialize()
,SearchResultsView.initialize()
.
Bug fixes
- [UI] Fixed a bug with uninitialized properties in created from
SearchBottomSheetView
favorite record.
Mapbox dependencies
- Search Native SDK
0.46.1
- Common SDK
21.0.1
- Telemetry SDK
8.1.0