Skip to content

Commit dc7bdf3

Browse files
committed
Adopt interactions core changes
1 parent 68e6099 commit dc7bdf3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Sources/MapboxMaps/Foundation/CoreAliases.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ typealias CoreInteractionHandler = MapboxCoreMaps_Private.InteractionHandler
4444
typealias CoreRenderedQueryGeometry = MapboxCoreMaps_Private.RenderedQueryGeometry
4545
typealias CoreFeaturesetFeatureId = MapboxCoreMaps_Private.FeaturesetFeatureId
4646
typealias CoreFeaturesetQueryTarget = MapboxCoreMaps_Private.FeaturesetQueryTarget
47-
typealias CoreFeaturesetDescriptor = MapboxCoreMaps.FeaturesetDescriptor // TODO: This will be moved to _Private in Core
47+
typealias CoreFeaturesetDescriptor = MapboxCoreMaps_Private.FeaturesetDescriptor

Sources/MapboxMaps/Foundation/QueriedRenderedFeature+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ extension QueriedRenderedFeature {
88
@_documentation(visibility: public)
99
public var queryTargets: [FeaturesetQueryTarget] {
1010
// TODO: make refined for swift.
11-
targets.map(FeaturesetQueryTarget.init(core:))
11+
__targets.map(FeaturesetQueryTarget.init(core:))
1212
}
1313
}

Sources/MapboxMaps/Interactions/FeaturesetDescriptor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ extension FeaturesetDescriptor {
9191

9292
var core: CoreFeaturesetDescriptor {
9393
CoreFeaturesetDescriptor(
94-
__featuresetId: featuresetId,
94+
featuresetId: featuresetId,
9595
importId: importId,
9696
layerId: layerId
9797
)

Tests/MapboxMapsTests/Foundation/Mocks/MockStyleManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import Foundation
33
@_implementationOnly import MapboxCommon_Private
44

55
class MockStyleManager: StyleManagerProtocol {
6-
let getFeaturesetsStub = Stub<Void, [FeaturesetDescriptor]>(defaultReturnValue: [])
7-
func getStyleFeaturesets() -> [FeaturesetDescriptor] {
6+
let getFeaturesetsStub = Stub<Void, [CoreFeaturesetDescriptor]>(defaultReturnValue: [])
7+
func getStyleFeaturesets() -> [CoreFeaturesetDescriptor] {
88
getFeaturesetsStub.call()
99
}
1010

0 commit comments

Comments
 (0)