Skip to content

Commit

Permalink
[wip] Common with Turf
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksproger committed Nov 2, 2024
1 parent fb97a45 commit ac3dcf6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ extension GeofencingExample {
NSLayoutConstraint.activate(textLayoutConstraints)
geofenceDisabledText = textView

let isConsentGiven = GeofencingUtils.getUserConsent()
let isConsentGiven = true

self.geofencingBt?.isHidden = !isConsentGiven
self.geofenceDisabledText?.isHidden = isConsentGiven
Expand Down
12 changes: 6 additions & 6 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/mapbox/mapbox-common-ios.git",
"state" : {
"revision" : "c5ff61ca878f937407276d17137b8bab5a05f632",
"version" : "24.8.0-beta.1"
"branch" : "sapial/CORESDK-3099/0",
"revision" : "b49f9ace1249eaef95b5823b9bffda15bfaef599"
}
},
{
"identity" : "mapbox-core-maps-ios",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mapbox/mapbox-core-maps-ios.git",
"state" : {
"revision" : "1ce341acc0a5e2d0f0f7c3dedb8553bb22888437",
"version" : "11.8.0-beta.1"
"branch" : "sapial/CORESDK-3099/0",
"revision" : "eff168cfed784957bd1792ac1ab7a9059f10ab16"
}
},
{
"identity" : "turf-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mapbox/turf-swift.git",
"state" : {
"revision" : "1997fb3c3dc0d8181690a1ec192ed907bcead9e8",
"version" : "3.0.0"
"branch" : "main",
"revision" : "f869ec2055ace4f95101b623a45f1506fa6f1503"
}
}
],
Expand Down
14 changes: 8 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ let package = Package(
targets: ["MapboxMaps"]),
],
dependencies: [
.package(url: "https://github.com/mapbox/turf-swift.git", exact: "3.0.0"),
] + coreMaps.packageDependencies + common.packageDependencies,
.package(url: "https://github.com/mapbox/mapbox-common-ios.git", branch: "sapial/CORESDK-3099/0"),
.package(url: "https://github.com/mapbox/mapbox-core-maps-ios.git", branch: "sapial/CORESDK-3099/0"),
.package(url: "https://github.com/mapbox/turf-swift.git", branch: "main")
],
targets: [
.target(
name: "MapboxMaps",
dependencies: [
coreMaps.mapsTargetDependencies,
common.mapsTargetDependencies,
.product(name: "MapboxCoreMaps", package: "mapbox-core-maps-ios"),
.product(name: "MapboxCommon", package: "mapbox-common-ios"),
.product(name: "Turf", package: "turf-swift")
],
path: mapboxMapsPath,
Expand Down Expand Up @@ -63,7 +65,7 @@ let package = Package(
.process("Resources/MapInitOptionsTests.xib"),
]
)
] + coreMaps.packageTargets + common.packageTargets
]
)

struct MapsDependency {
Expand Down Expand Up @@ -132,4 +134,4 @@ struct MapsDependency {
var registryURL: String {
return "https://api.mapbox.com/downloads/v2/\(registryProjectName)/\(registryReleaseFolder)/ios/packages/\(version)/\(registryFileName)"
}
}
}

This file was deleted.

0 comments on commit ac3dcf6

Please sign in to comment.