Releases: mapbox/mapbox-search-android
Releases · mapbox/mapbox-search-android
1.0.0-beta.41
1.0.0-beta.41
Breaking changes
- [CORE]
SearchAddress.FormatStyle.Custom
has been removed because it can't guarantee correct formatting behavior.SearchAddress
provides all the address components with the existing public API and customers still can format address according to needed formatting rules. - [UI]
SearchResultsView.defaultSearchOptions
was not used and was removed from the API.
Bug fixes
- [CORE] Fixed a bug with
SearchAddress
formatting when address house number is empty. - [CORE] Added a proguard rule that prevents DAO classes constructors from being removed.
- [UI] Fixed a bug in
SearchResultsView
when incorrect search options was used for request retry.
Mapbox dependencies
- Search Native SDK
0.64.0
- Common SDK
23.2.0-rc.3
- Kotlin
1.5.31
- Removed
mapbox-android-core
dependency, it is now part of Mapbox Common library.
NOTE: You need to remove any explicit dependency declaration tocom.mapbox.mapboxsdk:mapbox-android-core:<version>
from the project to avoid duplicated class definition errors related to location APIs.
1.0.0-beta.40
1.0.0-beta.40
Mapbox dependencies
- Search Native SDK
0.63.0
- Common SDK
23.2.0-beta.1
- Kotlin
1.5.31
1.0.0-beta.39
1.0.0-beta.39
New features
- [Autofill] Now
AutofillSuggestion
provides a new propertyname
. - [Autofill] Minimal allowed query name has been changed from
3
to2
.
Mapbox dependencies
- Search Native SDK
0.62.0
- Common SDK
23.1.0
- Kotlin
1.5.31
1.0.0-beta.38.1
1.0.0-beta.38.1
Bug fixes
- [UI] Fixed a bug in
SearchEngineUiAdapter
whereSearchListener.onPopulateQueryClick()
was not called when user clicked thequery populate
button.
Mapbox dependencies
- Search Native SDK
0.61.0
- Common SDK
23.1.0-rc.1
- Kotlin
1.5.31
1.0.0-beta.38
1.0.0-beta.38
Breaking changes
- [UI]
SearchResultsView
became a generic view that can work with anySearchEngine
orUse case
. Its API has been changed. UseSearchEngineUiAdapter
to adapt search engines for the view. See MainActivity for usage sample.
New features
- [UI] Now UI module provides
AddressAutofillUiAdapter
that helps to displayAddressAutofill
suggestions on theSearchResultsView
. - [Autofill] Now customers can provide own implementation of the
LocationEngine
. - [Autofill]
AddressAutofill
returns up to 10 suggestions instead of 5. - [Search SDK COMMON]
AsyncOperationTask
providesAsyncOperationTask.COMPLETED
field which represents completed task.
Mapbox dependencies
- Search Native SDK
0.61.0
- Common SDK
23.1.0-rc.1
- Kotlin
1.5.31
1.0.0-beta.37
1.0.0-beta.37
Breaking changes
- [OFFLINE]
OfflineSearchEngine
's functionscreateTilesetDescriptor()
andcreatePlacesTilesetDescriptor()
are static now. - [CORE]
SearchSuggestion.categories
, andSearchResult.categories
are nullable properties now. These properties are null for non-POI search results. - [CORE]
ApiType.AUTOFILL
has been removed. UseAutofill
SDK instead. - [CORE]
MapboxSearcSdk.createSearchEngine()
, andMapboxSearcSdk.createSearchEngineWithBuiltInDataProviders()
functions have been moved toSearchEngine.createSearchEngine()
, andSearchEngine.createSearchEngineWithBuiltInDataProviders()
. - [CORE]
MapboxSearcSdk.serviceProvider
property has been removed, callServiceProvider.INSTANCE
instead. - [CORE]
MapboxSearchSdk
class is not publicly available anymore. - [CORE]
IndexableRecord.coordinate
is a non-null property now. Accordingly,HistoryRecord.coordinate
is also a non-null property. This also makesSearchResult.coordinate
a non-null property. - [CORE]
SearchResult
is a class now. Functions signature ofSearchCallback
,SearchSelectionCallback
,SearchMultipleSelectionCallback
have been changed for Java users. - [CORE] Subtypes
ServerSearchResult
,IndexableRecordSearchResult
have been removed. CallSearchResult.IndexableRecord
to check if aSearchResult
is based on aIndexableRecord
and access the record. - [UI] Function signature of
SearchResultsView.SearchListener
have been changed for Java users. - [UI]
SearchPlace
factory functionscreateFromSearchResult()
,createFromIndexableRecord()
no longer acceptcoordinate: Point
arguments. Instead, coordinate will be taken from providedSearchResult
, andIndexableRecord
objects.
Mapbox dependencies
- Search Native SDK
0.60.0
- Common SDK
23.1.0-beta.1
- Kotlin
1.5.31
1.0.0-beta.36
1.0.0-beta.36
Breaking changes
- [CORE]
AsyncOperationTask
,SearchCancellationException
,SearchRequestException
,RoutablePoint
have been moved tocom.mapbox.search.common
package.MainThreadWorker
, andSearchSdkMainThreadWorker
have been moved tocom.mapbox.search.common.concurrent
. - [CORE]
SearchRequestTask
has been replaced withAsyncOperationTask
- [CORE]
SearchSuggestion
is a class now. Functions signature ofSearchSuggestionsCallback
,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 iscom.mapbox.search.offline
. At the moment Offline SDK version is the same as the main Search SDK version.OfflineSearchEngine
instance can be retrieved viaOfflineSearchEngine.create(OfflineSearchEngineSettings)
. - [UI]
SearchResultsView.SearchListener.onOfflineSearchResults()
signature has been changed toonOfflineSearchResults(List<OfflineSearchResult>m OfflineResponseInfo)
. Also, a new functionSearchResultsView.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
, andINCORRECT_RESULT_RANK
. - [UI] A new function
SearchPlace.createFromOfflineSearchResult()
is available.
Bug fixes
- [UI] Now created in the
SearchPlaceBottomSheetView
FavoriteRecord
will be saved with id fromSearchPlace.id
Mapbox dependencies
- Search Native SDK
0.59.0
- Common SDK
23.0.0
- Kotlin
1.5.31
1.0.0-beta.35
1.0.0-beta.35
Breaking changes
- [UI] Now
SearchPlace
constructor requires additional propertyid
.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
1.0.0-beta.34
Breaking changes
- [CORE] Undocumented system property used to enable SBS API Type is deprecated. Use
MapboxSearchSdk.createSearchEngine(ApiType, SearchEngineSettings)
, andMapboxSearchSdk.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 withAddressAutofill.suggestions(Query, AddressAutofillOptions)
. CallQuery.create()
to create an instance ofQuery
.
New features
- [CORE]
MapboxSearchSdk.createSearchEngine(ApiType, SearchEngineSettings)
, andMapboxSearchSdk.createSearchEngineWithBuiltInDataProviders(ApiType, SearchEngineSettings)
functions are available that allow to choose API Type. Note thatApiType.GEOCODING
is the only API Type available publicly. - [UI]
SearchResultsView.Configuration
accepts a new optional argumentapiType
used for theSearchEngine
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
1.0.0-beta.33.1
New features
- [CORE] Now
RequestOptions
provides new fieldsendpoint
andsessionID
.
Bug fixes
- [CORE] Now
SearchAddress.formattedAddress(FormatStyle.Medium)
for address with countryUnited States
includes region.
Mapbox dependencies
- Search Native SDK
0.57.0
- Common SDK
22.1.0-beta.1
- Kotlin
1.5.31