Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MLNCustomStyleLayer + Metal example #2041

Merged
merged 53 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
0a2cdc9
rename MLNOpenGLStyleLayer to MLNCustomStyleLayer
stefankarschti Jan 19, 2024
c65b600
collapse bazel file groups
stefankarschti Jan 19, 2024
19c6ff4
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Jan 19, 2024
3be46d0
adapt comments
stefankarschti Jan 22, 2024
9b6e19e
rename MLNOpenGLLayerHost to MLNCustomLayerHost
stefankarschti Jan 22, 2024
1262bc9
blank LimeGreenStyleLayer implementation for Metal
stefankarschti Jan 22, 2024
3165e7c
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Jan 22, 2024
0bd120b
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Jan 22, 2024
d2059f2
Metal Custom Layer example: first cut
stefankarschti Jan 24, 2024
f1d5023
fix iOS build
stefankarschti Jan 24, 2024
094a709
Metal example: take 2 (crashing)
stefankarschti Jan 25, 2024
f1b0f3f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 25, 2024
af793ed
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Jan 25, 2024
d2f8429
temporary fix
stefankarschti Jan 25, 2024
2272d6f
Merge branch 'mlncustomstylelayer-refactor' of https://github.com/map…
stefankarschti Jan 25, 2024
57a3693
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 25, 2024
8ff2f8b
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Jan 29, 2024
89a0cd1
working Metal custom layer
stefankarschti Jan 29, 2024
858c6f6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 29, 2024
c9f4a09
fix legacy build
stefankarschti Jan 29, 2024
c26eb55
Merge branch 'mlncustomstylelayer-refactor' of https://github.com/map…
stefankarschti Jan 29, 2024
4162aeb
warnings
stefankarschti Jan 29, 2024
f2d1de7
fix test
stefankarschti Jan 29, 2024
8ec43cb
fix android build
stefankarschti Jan 29, 2024
8762216
make MLNMapViewMetalRenderableResource.bind callable from the custom …
stefankarschti Jan 29, 2024
7ee1f41
upload_pass and render_pass don't need conditional resource binding a…
stefankarschti Jan 29, 2024
7ade61f
re-enable custom layer in testAddingLayersWithDuplicateIdentifiers test
stefankarschti Jan 29, 2024
cdd673d
fix Android example custom layer
stefankarschti Jan 29, 2024
d1d526c
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Jan 30, 2024
8c0d4cd
revert some changes
stefankarschti Jan 30, 2024
a46948a
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Jan 30, 2024
da6547e
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Jan 30, 2024
118b133
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Feb 1, 2024
5059a41
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Feb 1, 2024
e9815e7
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Feb 1, 2024
b0bff78
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Feb 2, 2024
07e3f2a
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Feb 6, 2024
9e5ae86
Merge branch 'main' of https://github.com/maplibre/maplibre-gl-native…
stefankarschti Feb 8, 2024
103ca99
merge fixes
stefankarschti Feb 8, 2024
d86a99a
include MLNBackendResource in MLN_DARWIN_OBJC_HEADERS
stefankarschti Feb 8, 2024
246c6c1
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Feb 8, 2024
6ae0e97
remove ex-OpenGL custom layer leftover in bazel build
stefankarschti Feb 9, 2024
358d994
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Feb 12, 2024
dbb48b8
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Feb 12, 2024
41e1cb4
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Feb 12, 2024
40a48d8
make renderEncoder a property
stefankarschti Feb 12, 2024
fb35da9
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Feb 13, 2024
2421fd9
plug a leak
stefankarschti Feb 13, 2024
02f2be0
Merge branch 'main' into mlncustomstylelayer-refactor
stefankarschti Feb 13, 2024
9e4cd57
fix android and node build
stefankarschti Feb 13, 2024
906f295
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 13, 2024
215c000
Merge branch 'main' of https://github.com/maplibre/maplibre-gl-native…
stefankarschti Feb 15, 2024
517c173
update Metal example. fix stencil interaction
stefankarschti Feb 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 0 additions & 10 deletions platform/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ objc_library(
"//platform/ios:ios_public_hdrs",
"//platform/ios:ios_sdk_hdrs",
] + select({
"//:metal_renderer": [],
"//conditions:default": [
"//platform/darwin:darwin_objcpp_opengl_srcs",
],
}) + select({
"//:legacy_renderer": [],
"//conditions:default": [
"//platform/darwin:darwin_objcpp_custom_drawable_srcs",
Expand Down Expand Up @@ -262,11 +257,6 @@ sh_binary(
"//platform/macos:macos_private_hdrs",
"//platform/macos:macos_public_hdrs",
] + select({
"//:metal_renderer": [],
"//conditions:default": [
"//platform/darwin:darwin_objcpp_opengl_srcs",
],
}) + select({
"//:legacy_renderer": [],
"//conditions:default": [
"//platform/darwin:darwin_objcpp_custom_drawable_srcs",
Expand Down
8 changes: 0 additions & 8 deletions platform/darwin/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ load(
"MLN_DARWIN_OBJC_HEADERS",
"MLN_DARWIN_PRIVATE_HEADERS",
"MLN_DARWIN_PUBLIC_OBJCPP_CUSTOM_DRAWABLE_SOURCE",
"MLN_DARWIN_PUBLIC_OBJCPP_OPENGL_SOURCE",
"MLN_DARWIN_PUBLIC_OBJCPP_SOURCE",
"MLN_DARWIN_PUBLIC_OBJC_SOURCE",
"MLN_GENERATED_DARWIN_STYLE_HEADERS",
Expand Down Expand Up @@ -42,12 +41,6 @@ filegroup(
visibility = ["//visibility:public"],
)

filegroup(
name = "darwin_objcpp_opengl_srcs",
srcs = MLN_DARWIN_PUBLIC_OBJCPP_OPENGL_SOURCE,
visibility = ["//visibility:public"],
)

filegroup(
name = "darwin_objcpp_custom_drawable_srcs",
srcs = MLN_DARWIN_PUBLIC_OBJCPP_CUSTOM_DRAWABLE_SOURCE,
Expand Down Expand Up @@ -328,7 +321,6 @@ exports_files(
"scripts/check-public-symbols.sh",
] + MLN_DARWIN_PUBLIC_OBJC_SOURCE +
MLN_DARWIN_PUBLIC_OBJCPP_SOURCE +
MLN_DARWIN_PUBLIC_OBJCPP_OPENGL_SOURCE +
MLN_DARWIN_PUBLIC_OBJCPP_CUSTOM_DRAWABLE_SOURCE +
MLN_DARWIN_PRIVATE_HEADERS +
MLN_DARWIN_OBJC_HEADERS +
Expand Down
2 changes: 1 addition & 1 deletion platform/darwin/app/LimeGreenStyleLayer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "Mapbox.h"

@interface LimeGreenStyleLayer : MLNOpenGLStyleLayer
@interface LimeGreenStyleLayer : MLNCustomStyleLayer

@end
8 changes: 3 additions & 5 deletions platform/darwin/bazel/files.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ MLN_DARWIN_OBJC_HEADERS = [
"src/MLNCompassDirectionFormatter.h",
"src/MLNComputedShapeSource.h",
"src/MLNCoordinateFormatter.h",
"src/MLNCustomStyleLayer.h",
"src/MLNDefaultStyle.h",
"src/MLNDistanceFormatter.h",
"src/MLNFeature.h",
Expand Down Expand Up @@ -124,6 +125,7 @@ MLN_DARWIN_OBJCPP_HEADERS = [
MLN_DARWIN_PRIVATE_HEADERS = [
"src/MLNAttributionInfo_Private.h",
"src/MLNComputedShapeSource_Private.h",
"src/MLNCustomStyleLayer_Private.h",
"src/MLNFeature_Private.h",
"src/MLNFoundation_Private.h",
"src/MLNGeometry_Private.h",
Expand Down Expand Up @@ -158,6 +160,7 @@ MLN_DARWIN_PRIVATE_HEADERS = [
MLN_DARWIN_PUBLIC_OBJCPP_SOURCE = [
"src/MLNAttributionInfo.mm",
"src/MLNComputedShapeSource.mm",
"src/MLNCustomStyleLayer.mm",
"src/MLNDefaultStyle.mm",
"src/MLNFeature.mm",
"src/MLNForegroundStyleLayer.mm",
Expand Down Expand Up @@ -203,11 +206,6 @@ MLN_DARWIN_PUBLIC_OBJCPP_SOURCE = [
"src/NSPredicate+MLNAdditions.mm",
"src/NSValue+MLNStyleAttributeAdditions.mm",
]
MLN_DARWIN_PUBLIC_OBJCPP_OPENGL_SOURCE = [
"src/MLNOpenGLStyleLayer_Private.h",
"src/MLNOpenGLStyleLayer.h",
"src/MLNOpenGLStyleLayer.mm",
]
MLN_DARWIN_PUBLIC_OBJCPP_CUSTOM_DRAWABLE_SOURCE = [
"src/MLNCustomDrawableStyleLayer_Private.h",
"src/MLNCustomDrawableStyleLayer.h",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ typedef struct MLNStyleLayerDrawingContext {
} MLNStyleLayerDrawingContext;

MLN_EXPORT
@interface MLNOpenGLStyleLayer : MLNStyleLayer
@interface MLNCustomStyleLayer : MLNStyleLayer

@property (nonatomic, weak, readonly) MLNStyle *style;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "MLNOpenGLStyleLayer.h"
#import "MLNOpenGLStyleLayer_Private.h"
#import "MLNCustomStyleLayer.h"
#import "MLNCustomStyleLayer_Private.h"

#import "MLNMapView_Private.h"
#import "MLNStyle_Private.h"
Expand All @@ -12,7 +12,7 @@
class MLNOpenGLLayerHost;

/**
An `MLNOpenGLStyleLayer` is a style layer that is rendered by OpenGL code that
An `MLNCustomStyleLayer` is a style layer that is rendered by OpenGL code that
you provide.

By default, this class does nothing. You can subclass this class to provide
Expand All @@ -29,7 +29,7 @@
@warning This API is undocumented and therefore unsupported. It may change at
any time without notice.
*/
@interface MLNOpenGLStyleLayer ()
@interface MLNCustomStyleLayer ()

@property (nonatomic, readonly) mbgl::style::CustomLayer *rawLayer;

Expand All @@ -45,7 +45,7 @@ @interface MLNOpenGLStyleLayer ()

@end

@implementation MLNOpenGLStyleLayer
@implementation MLNCustomStyleLayer

/**
Returns an OpenGL style layer object initialized with the given identifier.
Expand Down Expand Up @@ -166,7 +166,7 @@ - (void)setNeedsDisplay {

class MLNOpenGLLayerHost : public mbgl::style::CustomLayerHost {
public:
MLNOpenGLLayerHost(MLNOpenGLStyleLayer *styleLayer) {
MLNOpenGLLayerHost(MLNCustomStyleLayer *styleLayer) {
layerRef = styleLayer;
layer = nil;
}
Expand Down Expand Up @@ -209,14 +209,14 @@ void deinitialize() {
layer = nil;
}
private:
__weak MLNOpenGLStyleLayer * layerRef;
MLNOpenGLStyleLayer * layer = nil;
__weak MLNCustomStyleLayer * layerRef;
MLNCustomStyleLayer * layer = nil;
};

namespace mbgl {

MLNStyleLayer* OpenGLStyleLayerPeerFactory::createPeer(style::Layer* rawLayer) {
return [[MLNOpenGLStyleLayer alloc] initWithRawLayer:rawLayer];
return [[MLNCustomStyleLayer alloc] initWithRawLayer:rawLayer];
}

} // namespace mbgl
Expand Down
4 changes: 2 additions & 2 deletions platform/darwin/src/MLNStyle.mm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#import "NSDate+MLNAdditions.h"

#if !MLN_RENDER_BACKEND_METAL
stefankarschti marked this conversation as resolved.
Show resolved Hide resolved
#import "MLNOpenGLStyleLayer.h"
#import "MLNCustomStyleLayer.h"
#endif

#if TARGET_OS_IPHONE
Expand Down Expand Up @@ -82,7 +82,7 @@ @interface MLNStyle()
@property (nonatomic, readonly, weak) id <MLNStylable> stylable;
@property (nonatomic, readonly) mbgl::style::Style *rawStyle;
@property (readonly, copy, nullable) NSURL *URL;
@property (nonatomic, readwrite, strong) NSMutableDictionary<NSString *, MLNOpenGLStyleLayer *> *openGLLayers;
@property (nonatomic, readwrite, strong) NSMutableDictionary<NSString *, MLNCustomStyleLayer *> *openGLLayers;
@property (nonatomic) NSMutableDictionary<NSString *, NSDictionary<NSObject *, MLNTextLanguage *> *> *localizedLayersByIdentifier;

@end
Expand Down
2 changes: 1 addition & 1 deletion platform/darwin/src/MLNStyleLayerManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#import "MLNSymbolStyleLayer_Private.h"

#if !MLN_RENDER_BACKEND_METAL
#import "MLNOpenGLStyleLayer_Private.h"
#import "MLNCustomStyleLayer_Private.h"
#endif

#if MLN_DRAWABLE_RENDERER
Expand Down
4 changes: 2 additions & 2 deletions platform/darwin/src/MLNStyle_Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace mbgl {

@class MLNAttributionInfo;
@class MLNMapView;
@class MLNOpenGLStyleLayer;
@class MLNCustomStyleLayer;
@class MLNVectorTileSource;
@class MLNVectorStyleLayer;

Expand All @@ -25,7 +25,7 @@ namespace mbgl {
@property (nonatomic, readonly) mbgl::style::Style *rawStyle;

- (nullable NSArray<MLNAttributionInfo *> *)attributionInfosWithFontSize:(CGFloat)fontSize linkColor:(nullable MLNColor *)linkColor;
@property (nonatomic, readonly, strong) NSMutableDictionary<NSString *, MLNOpenGLStyleLayer *> *openGLLayers;
@property (nonatomic, readonly, strong) NSMutableDictionary<NSString *, MLNCustomStyleLayer *> *openGLLayers;
- (void)setStyleClasses:(NSArray<NSString *> *)appliedClasses transitionDuration:(NSTimeInterval)transitionDuration;

@end
Expand Down
2 changes: 1 addition & 1 deletion platform/darwin/test/MLNStyleTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ - (void)testAddingLayersWithDuplicateIdentifiers {
XCTAssertThrowsSpecificNamed([self.style insertLayer:[[MLNFillStyleLayer alloc] initWithIdentifier:@"my-layer" source:source] aboveLayer:initial], NSException, @"MLNRedundantLayerIdentifierException");
XCTAssertThrowsSpecificNamed([self.style insertLayer:[[MLNFillStyleLayer alloc] initWithIdentifier:@"my-layer" source:source] atIndex:0], NSException, @"MLNRedundantLayerIdentifierException");
#if !MLN_RENDER_BACKEND_METAL
stefankarschti marked this conversation as resolved.
Show resolved Hide resolved
XCTAssertThrowsSpecificNamed([self.style insertLayer:[[MLNOpenGLStyleLayer alloc] initWithIdentifier:@"my-layer"] atIndex:0], NSException, @"MLNRedundantLayerIdentifierException");
XCTAssertThrowsSpecificNamed([self.style insertLayer:[[MLNCustomStyleLayer alloc] initWithIdentifier:@"my-layer"] atIndex:0], NSException, @"MLNRedundantLayerIdentifierException");
#endif
}

Expand Down
22 changes: 11 additions & 11 deletions platform/ios/Integration_Tests/MBGLIntegrationTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ - (void)waitForMapViewToBeRendered {

// This test does not strictly need to be in this test file/target. Including here for convenience.
- (void)testOpenGLLayerDoesNotLeakWhenCreatedAndDestroyedWithoutAddingToStyle {
MLNOpenGLStyleLayer *layer = [[MLNOpenGLStyleLayer alloc] initWithIdentifier:@"gl-layer"];
MLNCustomStyleLayer *layer = [[MLNCustomStyleLayer alloc] initWithIdentifier:@"gl-layer"];
__weak id weakLayer = layer;
layer = nil;

Expand All @@ -31,7 +31,7 @@ - (void)testAddingRemovingOpenGLLayerWithoutRendering {
__weak id weakLayer = nil;

@autoreleasepool {
MLNOpenGLStyleLayer *layer = [[MLNOpenGLStyleLayer alloc] initWithIdentifier:@"gl-layer"];
MLNCustomStyleLayer *layer = [[MLNCustomStyleLayer alloc] initWithIdentifier:@"gl-layer"];
[self.style insertLayer:layer atIndex:0];
weakLayer = layer;

Expand All @@ -49,15 +49,15 @@ - (void)testAddingRemovingOpenGLLayerWithoutRendering {
}

- (void)testReusingOpenGLLayerIdentifier {
__weak MLNOpenGLStyleLayer *weakLayer2;
__weak MLNCustomStyleLayer *weakLayer2;

@autoreleasepool {
MLNOpenGLStyleLayer *layer1 = [[MLNOpenGLStyleLayer alloc] initWithIdentifier:@"gl-layer"];
MLNCustomStyleLayer *layer1 = [[MLNCustomStyleLayer alloc] initWithIdentifier:@"gl-layer"];
[self.style insertLayer:layer1 atIndex:0];
[self waitForMapViewToBeRendered];
[self.style removeLayer:layer1];

MLNOpenGLStyleLayer *layer2 = [[MLNOpenGLStyleLayer alloc] initWithIdentifier:@"gl-layer"];
MLNCustomStyleLayer *layer2 = [[MLNCustomStyleLayer alloc] initWithIdentifier:@"gl-layer"];
weakLayer2 = layer2;

XCTAssertNotNil(layer2);
Expand Down Expand Up @@ -88,7 +88,7 @@ - (void)testAddingRemovingOpenGLLayer {
__weak id retrievedLayer = nil;

@autoreleasepool {
MLNOpenGLStyleLayer *layer = [[MLNOpenGLStyleLayer alloc] initWithIdentifier:@"gl-layer"];
MLNCustomStyleLayer *layer = [[MLNCustomStyleLayer alloc] initWithIdentifier:@"gl-layer"];
[self.style insertLayer:layer atIndex:0];
layer = nil;

Expand All @@ -110,7 +110,7 @@ - (void)testAddingRemovingOpenGLLayer {
}

- (void)testReusingOpenGLLayer {
MLNOpenGLStyleLayer *layer = [[MLNOpenGLStyleLayer alloc] initWithIdentifier:@"gl-layer"];
MLNCustomStyleLayer *layer = [[MLNCustomStyleLayer alloc] initWithIdentifier:@"gl-layer"];
[self.style insertLayer:layer atIndex:0];
[self waitForMapViewToBeRendered];

Expand All @@ -127,7 +127,7 @@ - (void)testReusingOpenGLLayer {
- (void)testOpenGLLayerDoesNotLeakWhenRemovedFromStyle {
__weak id weakLayer;
@autoreleasepool {
MLNOpenGLStyleLayer *layer = [[MLNOpenGLStyleLayer alloc] initWithIdentifier:@"gl-layer"];
MLNCustomStyleLayer *layer = [[MLNCustomStyleLayer alloc] initWithIdentifier:@"gl-layer"];
weakLayer = layer;
[self.style insertLayer:layer atIndex:0];
layer = nil;
Expand All @@ -146,11 +146,11 @@ - (void)testOpenGLLayerDoesNotLeakWhenRemovedFromStyle {
}

- (void)testOpenGLLayerDoesNotLeakWhenStyleChanged {
__weak MLNOpenGLStyleLayer *weakLayer;
__weak MLNCustomStyleLayer *weakLayer;

@autoreleasepool {
{
MLNOpenGLStyleLayer *layer = [[MLNOpenGLStyleLayer alloc] initWithIdentifier:@"gl-layer"];
MLNCustomStyleLayer *layer = [[MLNCustomStyleLayer alloc] initWithIdentifier:@"gl-layer"];
weakLayer = layer;
[self.style insertLayer:layer atIndex:0];
layer = nil;
Expand Down Expand Up @@ -192,7 +192,7 @@ - (void)testOpenGLLayerDoesNotLeakWhenMapViewDeallocs {
self.styleLoadingExpectation = [self expectationWithDescription:@"Map view should finish loading style."];
[self waitForExpectationsWithTimeout:10 handler:nil];

MLNOpenGLStyleLayer *layer = [[MLNOpenGLStyleLayer alloc] initWithIdentifier:@"gl-layer"];
MLNCustomStyleLayer *layer = [[MLNCustomStyleLayer alloc] initWithIdentifier:@"gl-layer"];
weakLayer = layer;
[mapView2.style insertLayer:layer atIndex:0];
layer = nil;
Expand Down
6 changes: 3 additions & 3 deletions platform/ios/sdk-files.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"platform/darwin/src/MLNPointCollection.mm",
"platform/darwin/src/MLNLineStyleLayer.mm",
"platform/ios/src/MLNMapAccessibilityElement.mm",
"platform/darwin/src/MLNOpenGLStyleLayer.mm",
"platform/darwin/src/MLNCustomStyleLayer.mm",
"platform/darwin/src/MLNSettings.mm",
"platform/darwin/src/NSCompoundPredicate+MLNAdditions.mm",
"platform/ios/src/MLNTelemetryConfig.m",
Expand Down Expand Up @@ -185,7 +185,7 @@
"MLNOfflineRegion.h": "platform/darwin/src/MLNOfflineRegion.h",
"MLNMapViewDelegate.h": "platform/ios/src/MLNMapViewDelegate.h",
"MLNDistanceFormatter.h": "platform/darwin/src/MLNDistanceFormatter.h",
"MLNOpenGLStyleLayer.h": "platform/darwin/src/MLNOpenGLStyleLayer.h",
"MLNCustomStyleLayer.h": "platform/darwin/src/MLNCustomStyleLayer.h",
"MLNTileSource.h": "platform/darwin/src/MLNTileSource.h",
"MLNTilePyramidOfflineRegion.h": "platform/darwin/src/MLNTilePyramidOfflineRegion.h",
"MLNVectorTileSource.h": "platform/darwin/src/MLNVectorTileSource.h",
Expand Down Expand Up @@ -277,7 +277,7 @@
"MLNGeometry_Private.h": "platform/darwin/src/MLNGeometry_Private.h",
"NSCompoundPredicate+MLNAdditions.h": "platform/darwin/src/NSCompoundPredicate+MLNAdditions.h",
"NSExpression+MLNPrivateAdditions.h": "platform/darwin/src/NSExpression+MLNPrivateAdditions.h",
"MLNOpenGLStyleLayer_Private.h": "platform/darwin/src/MLNOpenGLStyleLayer_Private.h",
"MLNCustomStyleLayer_Private.h": "platform/darwin/src/MLNCustomStyleLayer_Private.h",
"MLNTileSource_Private.h": "platform/darwin/src/MLNTileSource_Private.h",
"MLNFaux3DUserLocationAnnotationView.h": "platform/ios/src/MLNFaux3DUserLocationAnnotationView.h",
"MLNUserLocationAnnotationView_Private.h": "platform/ios/src/MLNUserLocationAnnotationView_Private.h",
Expand Down
4 changes: 1 addition & 3 deletions platform/ios/src/Mapbox.template.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ FOUNDATION_EXPORT MLN_EXPORT const unsigned char MapboxVersionString[];
#import "MLNOfflinePack.h"
#import "MLNOfflineRegion.h"
#import "MLNOfflineStorage.h"
#if !MLN_RENDER_BACKEND_METAL
#import "MLNOpenGLStyleLayer.h"
#endif
#import "MLNCustomStyleLayer.h"
#import "MLNOverlay.h"
#import "MLNPointAnnotation.h"
#import "MLNPointCollection.h"
Expand Down
6 changes: 3 additions & 3 deletions platform/macos/sdk-files.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"platform/macos/src/MLNAnnotationImage.m",
"platform/darwin/src/NSExpression+MLNAdditions.mm",
"platform/darwin/src/MLNFeature.mm",
"platform/darwin/src/MLNOpenGLStyleLayer.mm",
"platform/darwin/src/MLNCustomStyleLayer.mm",
"platform/macos/src/NSColor+MLNAdditions.mm",
"platform/macos/src/MLNAttributionButton.mm",
"platform/darwin/src/MLNFillStyleLayer.mm",
Expand Down Expand Up @@ -108,7 +108,7 @@
"MLNBackgroundStyleLayer.h": "platform/darwin/src/MLNBackgroundStyleLayer.h",
"MLNPointCollection.h": "platform/darwin/src/MLNPointCollection.h",
"MLNShape.h": "platform/darwin/src/MLNShape.h",
"MLNOpenGLStyleLayer.h": "platform/darwin/src/MLNOpenGLStyleLayer.h",
"MLNCustomStyleLayer.h": "platform/darwin/src/MLNCustomStyleLayer.h",
"MLNSource.h": "platform/darwin/src/MLNSource.h",
"MLNPolygon.h": "platform/darwin/src/MLNPolygon.h",
"MLNClockDirectionFormatter.h": "platform/darwin/src/MLNClockDirectionFormatter.h",
Expand Down Expand Up @@ -202,7 +202,7 @@
"NSDate+MLNAdditions.h": "platform/darwin/src/NSDate+MLNAdditions.h",
"NSColor+MLNAdditions.h": "platform/macos/src/NSColor+MLNAdditions.h",
"MLNMultiPoint_Private.h": "platform/darwin/src/MLNMultiPoint_Private.h",
"MLNOpenGLStyleLayer_Private.h": "platform/darwin/src/MLNOpenGLStyleLayer_Private.h",
"MLNCustomStyleLayer_Private.h": "platform/darwin/src/MLNCustomStyleLayer_Private.h",
"MLNPolygon_Private.h": "platform/darwin/src/MLNPolygon_Private.h",
"MLNShape_Private.h": "platform/darwin/src/MLNShape_Private.h",
"MLNTilePyramidOfflineRegion_Private.h": "platform/darwin/src/MLNTilePyramidOfflineRegion_Private.h",
Expand Down
2 changes: 1 addition & 1 deletion platform/macos/src/Mapbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ FOUNDATION_EXPORT MLN_EXPORT const unsigned char MapboxVersionString[];
#import "MLNBackgroundStyleLayer.h"
#import "MLNHeatmapStyleLayer.h"
#import "MLNHillshadeStyleLayer.h"
#import "MLNOpenGLStyleLayer.h"
#import "MLNCustomStyleLayer.h"
#import "MLNSource.h"
#import "MLNTileSource.h"
#import "MLNVectorTileSource.h"
Expand Down