Skip to content

Commit

Permalink
//wip
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksproger committed Nov 13, 2024
1 parent 66e6076 commit 862995c
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 47 deletions.
3 changes: 2 additions & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
binary "https://api.mapbox.com/downloads/v2/carthage/search-core-sdk/MapboxCoreSearch.xcframework.json" == 2.6.0
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" == 24.8.0
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" == 24.9.0-daily-2024-11-13-08-38
binary "Cartfile.Turf.json" == 4.0.0-beta.1
1 change: 1 addition & 0 deletions Cartfile.Turf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "4.0.0-beta.1": "https://github.com/mapbox/turf-swift/releases/download/v4.0.0-beta.1/Turf.xcframework.zip" }
1 change: 1 addition & 0 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
binary "Cartfile.Turf.json" "3.1.0"
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" "24.8.0"
binary "https://api.mapbox.com/downloads/v2/carthage/search-core-sdk/MapboxCoreSearch.xcframework.json" "2.6.0"
2 changes: 1 addition & 1 deletion MapboxSearch.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ Some iOS platform specifics applies.
s.vendored_frameworks = "**/#{s.name}.xcframework"

s.dependency "MapboxCoreSearch", '2.6.0'
s.dependency "MapboxCommon", '24.8.0'
s.dependency "MapboxCommon", '24.9.0-daily-2024-11-13-08-38'
end
8 changes: 4 additions & 4 deletions MapboxSearch.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@
2CE1B9FD2A13D41A005B043F /* address-suggestions-san-francisco.json in Resources */ = {isa = PBXBuildFile; fileRef = 2CE1B9F92A13D412005B043F /* address-suggestions-san-francisco.json */; };
2CE1B9FE2A13D41A005B043F /* address-retrieve-san-francisco.json in Resources */ = {isa = PBXBuildFile; fileRef = 2CE1B9FA2A13D412005B043F /* address-retrieve-san-francisco.json */; };
3A0D7E56233522D5006D81BB /* MapboxSearch.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A0D7E4C233522D4006D81BB /* MapboxSearch.framework */; };
5550E1162CD7ACE200191EF8 /* MapboxCoreSearch.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5550E1152CD7ACE200191EF8 /* MapboxCoreSearch.xcframework */; };
DFBC8A6D2AD42F5F00D394EF /* Any+dumpAsString.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFBC8A6C2AD42F5F00D394EF /* Any+dumpAsString.swift */; };
E648C0B626428D2B0044315F /* MapboxCoreSearch.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = E648C0B526428D2B0044315F /* MapboxCoreSearch.xcframework */; };
E648C0C9264297A10044315F /* libc++.1.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = E648C0C8264297730044315F /* libc++.1.tbd */; };
F907440F261B00000091899C /* suggestions-san-francisco.json in Resources */ = {isa = PBXBuildFile; fileRef = F907440E261B00000091899C /* suggestions-san-francisco.json */; };
F9074425261B0DF70091899C /* retrieve-san-francisco.json in Resources */ = {isa = PBXBuildFile; fileRef = F9074424261B0DF70091899C /* retrieve-san-francisco.json */; };
Expand Down Expand Up @@ -674,8 +674,8 @@
2CE1B9FA2A13D412005B043F /* address-retrieve-san-francisco.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "address-retrieve-san-francisco.json"; sourceTree = "<group>"; };
3A0D7E4C233522D4006D81BB /* MapboxSearch.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MapboxSearch.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3A0D7E55233522D5006D81BB /* MapboxSearchTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MapboxSearchTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
5550E1152CD7ACE200191EF8 /* MapboxCoreSearch.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = MapboxCoreSearch.xcframework; path = Carthage/Build/MapboxCoreSearch.xcframework; sourceTree = "<group>"; };
DFBC8A6C2AD42F5F00D394EF /* Any+dumpAsString.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Any+dumpAsString.swift"; sourceTree = "<group>"; };
E648C0B526428D2B0044315F /* MapboxCoreSearch.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = MapboxCoreSearch.xcframework; path = Carthage/Build/MapboxCoreSearch.xcframework; sourceTree = "<group>"; };
E648C0B926428D3D0044315F /* MapboxCommon.xcframework */ = {isa = PBXFileReference; expectedSignature = "AppleDeveloperProgram:GJZR2MEM28:Mapbox, Inc."; lastKnownFileType = wrapper.xcframework; name = MapboxCommon.xcframework; path = Carthage/Build/MapboxCommon.xcframework; sourceTree = "<group>"; };
E648C0C8264297730044315F /* libc++.1.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = "libc++.1.tbd"; path = "usr/lib/libc++.1.tbd"; sourceTree = SDKROOT; };
F907440E261B00000091899C /* suggestions-san-francisco.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "suggestions-san-francisco.json"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -959,7 +959,7 @@
buildActionMask = 2147483647;
files = (
042BEB172C2DDFAA0004CD7B /* MapboxCommon in Frameworks */,
E648C0B626428D2B0044315F /* MapboxCoreSearch.xcframework in Frameworks */,
5550E1162CD7ACE200191EF8 /* MapboxCoreSearch.xcframework in Frameworks */,
E648C0C9264297A10044315F /* libc++.1.tbd in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -1576,9 +1576,9 @@
3A0972062361A19E003F200F /* Frameworks */ = {
isa = PBXGroup;
children = (
5550E1152CD7ACE200191EF8 /* MapboxCoreSearch.xcframework */,
E648C0C8264297730044315F /* libc++.1.tbd */,
E648C0B926428D3D0044315F /* MapboxCommon.xcframework */,
E648C0B526428D2B0044315F /* MapboxCoreSearch.xcframework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down
69 changes: 38 additions & 31 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,34 +1,41 @@
{
"object": {
"pins": [
{
"package": "CwlCatchException",
"repositoryURL": "https://github.com/mattgallagher/CwlCatchException.git",
"state": {
"branch": null,
"revision": "3b123999de19bf04905bc1dfdb76f817b0f2cc00",
"version": "2.1.2"
}
},
{
"package": "CwlPreconditionTesting",
"repositoryURL": "https://github.com/mattgallagher/CwlPreconditionTesting.git",
"state": {
"branch": null,
"revision": "dc9af4781f2afdd1e68e90f80b8603be73ea7abc",
"version": "2.2.0"
}
},
{
"package": "MapboxCommon",
"repositoryURL": "https://github.com/mapbox/mapbox-common-ios.git",
"state": {
"branch": null,
"revision": "66c604ce480a5d2e98dbe017b49886652d4d89a2",
"version": "24.0.0"
}
"pins" : [
{
"identity" : "cwlcatchexception",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mattgallagher/CwlCatchException.git",
"state" : {
"revision" : "3b123999de19bf04905bc1dfdb76f817b0f2cc00",
"version" : "2.1.2"
}
]
},
"version": 1
},
{
"identity" : "cwlpreconditiontesting",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mattgallagher/CwlPreconditionTesting.git",
"state" : {
"revision" : "dc9af4781f2afdd1e68e90f80b8603be73ea7abc",
"version" : "2.2.0"
}
},
{
"identity" : "mapbox-common-ios",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mapbox/mapbox-common-ios.git",
"state" : {
"revision" : "a84d60cd007dd7a5119712a22324a531e33c6236",
"version" : "24.9.0-daily-2024-11-13-08-38"
}
},
{
"identity" : "turf-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mapbox/turf-swift.git",
"state" : {
"revision" : "f869ec2055ace4f95101b623a45f1506fa6f1503",
"version" : "4.0.0-beta.1"
}
}
],
"version" : 2
}
4 changes: 1 addition & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation

let (coreSearchVersion, coreSearchVersionHash) = ("2.6.0", "44c8215e1b0e33b5ea6ce1f2147dd918f2d53a908992f5eed80c4577b36faf00")

let mapboxCommonSDKVersion = Version("24.8.0")
let mapboxCommonSDKVersion = Version("24.9.0-daily-2024-11-13-08-38")

let package = Package(
name: "MapboxSearch",
Expand Down Expand Up @@ -50,13 +50,11 @@ let package = Package(
.copy("Resources/PrivacyInfo.xcprivacy"),
]
),

coreSearchTarget(
name: "MapboxCoreSearch",
version: coreSearchVersion,
checksum: coreSearchVersionHash
),

.testTarget(
name: "MapboxSearchTests",
dependencies: [
Expand Down
2 changes: 1 addition & 1 deletion Sources/MapboxSearch/PublicAPI/SearchOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public struct SearchOptions {
route: routeOptions?.route.coordinates.map(Coordinate2D.init(value:)),
sarType: routeOptions?.deviation.sarType?.toCore(),
timeDeviation: timeDeviation,
addonAPI: unsafeParameters
addonAPI: unsafeParameters, offlineSearchPlacesOutsideBbox: true
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,3 @@ extension CoreBoundingBox {
}
}
}

extension CLLocationCoordinate2D: Equatable {
public static func == (lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {
return lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude
}
}

0 comments on commit 862995c

Please sign in to comment.