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 Oct 22, 2024
1 parent fb97a45 commit 9f1af21
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 47 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.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ 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: "f59680a23d8f96a25f61cd6a7f2f82a354a015db")
] + coreMaps.packageDependencies,
targets: [
.target(
name: "MapboxMaps",
dependencies: [
coreMaps.mapsTargetDependencies,
common.mapsTargetDependencies,
.product(name: "Turf", package: "turf-swift")
.product(name: "MapboxCommon", package: "mapbox-common-ios"),
.product(name: "TurfBinary", package: "mapbox-common-ios")
],
path: mapboxMapsPath,
exclude: [
Expand Down Expand Up @@ -63,7 +63,7 @@ let package = Package(
.process("Resources/MapInitOptionsTests.xib"),
]
)
] + coreMaps.packageTargets + common.packageTargets
] + coreMaps.packageTargets
)

struct MapsDependency {
Expand Down Expand Up @@ -132,4 +132,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 9f1af21

Please sign in to comment.