From 1865269bd66b206559f13a16a0f97e2ad00cb4e6 Mon Sep 17 00:00:00 2001 From: Jack Alto Date: Thu, 21 Mar 2024 10:18:27 -0400 Subject: [PATCH 1/4] Upgrade MapboxCoreSearch to 2.0.0-alpha.14 - SSDK-643 --- CHANGELOG.md | 2 ++ Cartfile | 2 +- Cartfile.resolved | 2 +- Package.swift | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62b065d6d..de8978d47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,8 @@ Guide: https://keepachangelog.com/en/1.0.0/ - [Tests] Change MockResponse into a protocol, create separate enums conforming to MockResponse for each API type (geocoding, sbs, autofill), add MockResponse as generic to each test base class and MockWebServer. +**MapboxCoreSearch**: v2.0.0-alpha.14 + ## 2.0.0-rc.2 - [Discover] Add support for country, proximity, and origin parameters in Discover.Options search parameters. This fixes an issue when using search-along-route to query category results. diff --git a/Cartfile b/Cartfile index 79d73d1bf..f4021b2b4 100644 --- a/Cartfile +++ b/Cartfile @@ -1,2 +1,2 @@ -binary "https://api.mapbox.com/downloads/v2/carthage/search-core-sdk/MapboxCoreSearch.xcframework.json" == 2.0.0-alpha.13 +binary "https://api.mapbox.com/downloads/v2/carthage/search-core-sdk/MapboxCoreSearch.xcframework.json" == 2.0.0-alpha.14 binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" == 24.0.0 diff --git a/Cartfile.resolved b/Cartfile.resolved index c3afef44a..a1c6204fe 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,2 +1,2 @@ binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" "24.0.0" -binary "https://api.mapbox.com/downloads/v2/carthage/search-core-sdk/MapboxCoreSearch.xcframework.json" "2.0.0-alpha.13" +binary "https://api.mapbox.com/downloads/v2/carthage/search-core-sdk/MapboxCoreSearch.xcframework.json" "2.0.0-alpha.14" diff --git a/Package.swift b/Package.swift index d1f0e131b..bea7c4906 100644 --- a/Package.swift +++ b/Package.swift @@ -4,7 +4,7 @@ import PackageDescription import Foundation -let (coreSearchVersion, coreSearchVersionHash) = ("2.0.0-alpha.13", "bbd236f9aae5a06c23a0541e79d7196e569880ef3e8cfbdd7a906875dde3b884") +let (coreSearchVersion, coreSearchVersionHash) = ("2.0.0-alpha.14", "bbd236f9aae5a06c23a0541e79d7196e569880ef3e8cfbdd7a906875dde3b884") let commonMinVersion = Version("24.0.0") let commonMaxVersion = Version("25.0.0") From 25517e6a1e376101ff362c3ff48b359ebd251b7e Mon Sep 17 00:00:00 2001 From: Jack Alto Date: Thu, 21 Mar 2024 10:26:36 -0400 Subject: [PATCH 2/4] Update package checksum --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index bea7c4906..c2df3da6a 100644 --- a/Package.swift +++ b/Package.swift @@ -4,7 +4,7 @@ import PackageDescription import Foundation -let (coreSearchVersion, coreSearchVersionHash) = ("2.0.0-alpha.14", "bbd236f9aae5a06c23a0541e79d7196e569880ef3e8cfbdd7a906875dde3b884") +let (coreSearchVersion, coreSearchVersionHash) = ("2.0.0-alpha.14", "c3e61341f2beb1b8043f3c71caccdd9bea12a23f221cb90eb452e2abe299c3e0") let commonMinVersion = Version("24.0.0") let commonMaxVersion = Version("25.0.0") From a83250299d0b01381ee989105c9ae157b83f7102 Mon Sep 17 00:00:00 2001 From: Jack Alto Date: Thu, 21 Mar 2024 10:34:56 -0400 Subject: [PATCH 3/4] Update SearchResultAccuracy for new proximate case - SSDK-643 --- Sources/MapboxSearch/PublicAPI/SearchResultAccuracy.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/MapboxSearch/PublicAPI/SearchResultAccuracy.swift b/Sources/MapboxSearch/PublicAPI/SearchResultAccuracy.swift index 48403c891..3132730c8 100644 --- a/Sources/MapboxSearch/PublicAPI/SearchResultAccuracy.swift +++ b/Sources/MapboxSearch/PublicAPI/SearchResultAccuracy.swift @@ -17,6 +17,9 @@ public enum SearchResultAccuracy: String, Codable { /// Result is a known address point but has no specific accuracy. case point + /// Result is a known address point but does not intersect a known rooftop/parcel. + case proximate + /// Result is for a specific building/entrance. case rooftop @@ -34,6 +37,7 @@ extension SearchResultAccuracy { case .point: return .point case .rooftop: return .rooftop case .street: return .street + case .proximate: return .proximate @unknown default: return nil From 7b356116d12764f56f2526e594762eef2077b335 Mon Sep 17 00:00:00 2001 From: Jack Alto Date: Thu, 21 Mar 2024 10:58:02 -0400 Subject: [PATCH 4/4] Update changelog with note for SearchResultAccuracy.proximate - SSDK-643 --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index de8978d47..6d9bf40ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ Guide: https://keepachangelog.com/en/1.0.0/ +- [Core] Add `SearchResultAccuracy.proximate` case which "is a known address point but does not intersect a known rooftop/parcel." + - [UI] Add Right-to-Left language support for Categories/Favorites segment control and fix xib errors. - [UI] Add Preview file for CategoriesFavoritesSegmentControl to fix compiler problems.