Skip to content

Commit

Permalink
Release/v2.8.0 rc.1 (#356)
Browse files Browse the repository at this point in the history
* v2.8.0-rc.1 release
  • Loading branch information
chizhavko authored Feb 3, 2025
1 parent 322817b commit 17540f3
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 28 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Guide: https://keepachangelog.com/en/1.0.0/

## Unreleased

## 2.8.0-rc.1

- [Core] Update dependencies.

**MapboxCommon**: v24.10.0-rc.1
**MapboxCoreSearch**: v2.8.0-rc.1

<!-- Add changes for active work here -->

## 2.8.0-beta.1
Expand Down
4 changes: 2 additions & 2 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
binary "https://api.mapbox.com/downloads/v2/carthage/search-core-sdk/MapboxCoreSearch.xcframework.json" == 2.8.0-beta.2
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" == 24.10.0-beta.2
binary "https://api.mapbox.com/downloads/v2/carthage/search-core-sdk/MapboxCoreSearch.xcframework.json" == 2.8.0-rc.1
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" == 24.10.0-rc.1
4 changes: 2 additions & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" "24.10.0-beta.2"
binary "https://api.mapbox.com/downloads/v2/carthage/search-core-sdk/MapboxCoreSearch.xcframework.json" "2.8.0-beta.2"
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" "24.10.0-rc.1"
binary "https://api.mapbox.com/downloads/v2/carthage/search-core-sdk/MapboxCoreSearch.xcframework.json" "2.8.0-rc.1"
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## License

Mapbox Search for iOS version 2.8.0-beta.1
Mapbox Search for iOS version 2.8.0-rc.1
Mapbox Search iOS SDK

Copyright © 2021 - 2025 Mapbox, Inc. All rights reserved.
Expand Down
6 changes: 3 additions & 3 deletions MapboxSearch.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'MapboxSearch'
s.version = '2.8.0-beta.1'
s.version = '2.8.0-rc.1'
s.summary = 'Search SDK for Mapbox Search API'

# This description is used to generate tags and improve search results.
Expand All @@ -24,6 +24,6 @@ Some iOS platform specifics applies.

s.vendored_frameworks = "**/#{s.name}.xcframework"

s.dependency "MapboxCoreSearch", '2.8.0-beta.2'
s.dependency "MapboxCommon", '24.10.0-beta.2'
s.dependency "MapboxCoreSearch", '2.8.0-rc.1'
s.dependency "MapboxCommon", '24.10.0-rc.1'
end
4 changes: 2 additions & 2 deletions MapboxSearch.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3716,15 +3716,15 @@
repositoryURL = "https://github.com/mapbox/mapbox-common-ios.git";
requirement = {
kind = exactVersion;
version = "24.10.0-beta.2";
version = "24.10.0-rc.1";
};
};
042BEB182C2DE30E0004CD7B /* XCRemoteSwiftPackageReference "mapbox-maps-ios" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/mapbox/mapbox-maps-ios.git";
requirement = {
kind = exactVersion;
version = "11.10.0-beta.1";
version = "11.10.0-rc.1";
};
};
043339CB2C61295D001650FA /* XCRemoteSwiftPackageReference "atlantis" */ = {
Expand Down
4 changes: 2 additions & 2 deletions MapboxSearchUI.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'MapboxSearchUI'
s.version = '2.8.0-beta.1'
s.version = '2.8.0-rc.1'
s.summary = 'Search UI for Mapbox Search API'

# This description is used to generate tags and improve search results.
Expand All @@ -23,5 +23,5 @@ Card style custom UI with full search functionality powered by Mapbox Search API

s.vendored_frameworks = "**/#{s.name}.xcframework"

s.dependency 'MapboxSearch', "2.8.0-beta.1"
s.dependency 'MapboxSearch', "2.8.0-rc.1"
end
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import PackageDescription
import Foundation

let (coreSearchVersion, coreSearchVersionHash) = ("2.8.0-beta.2", "4300248e04ea446f24c7010f6710505eff82e2c55e19abaabe5431799b2b9adf")
let (coreSearchVersion, coreSearchVersionHash) = ("2.8.0-rc.1", "b96b5c43cb323b41b95ba29cd9e17fe87aea034b3329602fb33fc041d0453387")

let mapboxCommonSDKVersion = Version("24.10.0-beta.2")
let mapboxCommonSDKVersion = Version("24.10.0-rc.1")

let package = Package(
name: "MapboxSearch",
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ dependencies: [
##### MapboxSearch
To integrate latest pre-release version of `MapboxSearch` into your Xcode project using CocoaPods, specify it in your `Podfile`:
```
pod 'MapboxSearch', ">= 2.8.0-beta.1", "< 3.0"
pod 'MapboxSearch', ">= 2.8.0-rc.1", "< 3.0"
```
##### MapboxSearchUI
To integrate latest pre-release version of `MapboxSearchUI` into your Xcode project using CocoaPods, specify it in your `Podfile`:
```
pod 'MapboxSearchUI', ">= 2.8.0-beta.1", "< 3.0"
pod 'MapboxSearchUI', ">= 2.8.0-rc.1", "< 3.0"
```
### Carthage
Expand All @@ -109,7 +109,7 @@ pod 'MapboxSearchUI', ">= 2.8.0-beta.1", "< 3.0"
2. Follow the [Carthage Quick Start](https://github.com/Carthage/Carthage?tab=readme-ov-file#quick-start) and specificy the MapboxSearch dependency in your `Cartfile`:
```
github "Mapbox/mapbox-search-ios" ~> 2.8.0-beta.1
github "Mapbox/mapbox-search-ios" ~> 2.8.0-rc.1
```
## Contributing
Expand Down
4 changes: 2 additions & 2 deletions Search Documentation.docc/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ To add the Mapbox Search SDK dependency with CocoaPods, you will need to configu
```ruby
use_frameworks!
target "TargetNameForYourApp" do
pod 'MapboxSearchUI', ">= 2.8.0-beta.1", "< 3.0"
pod 'MapboxSearchUI', ">= 2.8.0-rc.1", "< 3.0"
end
```

Expand All @@ -68,7 +68,7 @@ To add the Mapbox Search SDK dependency with CocoaPods, you will need to configu
```ruby
use_frameworks!
target "TargetNameForYourApp" do
pod 'MapboxSearch', ">= 2.8.0-beta.1", "< 3.0"
pod 'MapboxSearch', ">= 2.8.0-rc.1", "< 3.0"
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ protocol CoreSearchResultProtocol {
}

extension CoreSearchResult: CoreSearchResultProtocol {
var namePreferred: String? {
nil
}

var centerLocation: CLLocation? {
center.map { CLLocation(latitude: $0.value.latitude, longitude: $0.value.longitude) }
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MapboxSearch/PublicAPI/MapboxSearchVersion.swift
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/// Mapbox Search SDK version variable
public let mapboxSearchSDKVersion = "2.8.0-beta.1"
public let mapboxSearchSDKVersion = "2.8.0-rc.1"
3 changes: 2 additions & 1 deletion Sources/MapboxSearch/PublicAPI/SearchOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ public struct SearchOptions {
offlineSearchPlacesOutsideBbox: offlineSearchPlacesOutsideBbox,
ensureResultsPerCategory: nil,
// TODO: NAVIOS-2054 Support multiple categories search and ability to ensure results per category.
attributeSets: attributeSets?.map { NSNumber(value: $0.coreValue.rawValue) }
attributeSets: attributeSets?.map { NSNumber(value: $0.coreValue.rawValue) },
evSearchOptions: nil
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ extension CoreSearchOptions {
timeDeviation: 10,
addonAPI: nil,
ensureResultsPerCategory: nil,
attributeSets: nil
attributeSets: nil,
evSearchOptions: nil
)

static let sample2 = CoreSearchOptions(
Expand Down Expand Up @@ -70,6 +71,7 @@ extension CoreSearchOptions {
timeDeviation: 10,
addonAPI: nil,
ensureResultsPerCategory: nil,
attributeSets: nil
attributeSets: nil,
evSearchOptions: nil
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ extension CoreResultMetadata {
parkingAvailable: nil,
valetParking: nil,
streetParking: nil,
parkingType: nil,
servesBreakfast: nil,
servesBrunch: nil,
servesDinner: nil,
Expand All @@ -62,7 +63,12 @@ extension CoreResultMetadata {
servesVegan: nil,
servesVegetarian: nil,
rating: nil,
popularity: nil
popularity: nil,
evMetadata: nil,
directions: nil,
facilities: nil,
timezone: nil,
lastUpdated: nil
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ import XCTest

class OpenHoursTests: XCTestCase {
func testAlwaysOpenedCoreConversion() throws {
let coreHours = CoreOpenHours(mode: .alwaysOpen, periods: [], weekdayText: nil, note: nil)
let coreHours = CoreOpenHours(mode: .alwaysOpen, periods: [], weekdayText: nil, note: nil, exceptionalOpenings: [], exceptionalClosings: [])
let hours = OpenHours(coreHours)

XCTAssertEqual(hours, .alwaysOpened)
}

func testTemporarilyClosedCoreConversion() throws {
let coreHours = CoreOpenHours(mode: .temporarilyClosed, periods: [], weekdayText: nil, note: nil)
let coreHours = CoreOpenHours(mode: .temporarilyClosed, periods: [], weekdayText: nil, note: nil, exceptionalOpenings: [], exceptionalClosings: [])
let hours = OpenHours(coreHours)

XCTAssertEqual(hours, .temporarilyClosed)
}

func testPermanentlyClosedCoreConversion() throws {
let coreHours = CoreOpenHours(mode: .permanentlyClosed, periods: [], weekdayText: nil, note: nil)
let coreHours = CoreOpenHours(mode: .permanentlyClosed, periods: [], weekdayText: nil, note: nil, exceptionalOpenings: [], exceptionalClosings: [])
let hours = OpenHours(coreHours)

XCTAssertEqual(hours, .permanentlyClosed)
}

func testScheduledCoreConversion() throws {
let coreHours = CoreOpenHours(mode: .scheduled, periods: .coreOpenHourPeriods(), weekdayText: nil, note: nil)
let coreHours = CoreOpenHours(mode: .scheduled, periods: .coreOpenHourPeriods(), weekdayText: nil, note: nil, exceptionalOpenings: [], exceptionalClosings: [])
let hours = OpenHours(coreHours)

if case .scheduled(let periods, _, _) = hours {
Expand Down

0 comments on commit 17540f3

Please sign in to comment.