summaryrefslogtreecommitdiff
path: root/platform/ios/framework/Mapbox.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/framework/Mapbox.m')
-rw-r--r--platform/ios/framework/Mapbox.m29
1 files changed, 29 insertions, 0 deletions
diff --git a/platform/ios/framework/Mapbox.m b/platform/ios/framework/Mapbox.m
new file mode 100644
index 0000000000..93f58b9be6
--- /dev/null
+++ b/platform/ios/framework/Mapbox.m
@@ -0,0 +1,29 @@
+#import <Mapbox/Mapbox.h>
+
+#import "../src/NSBundle+MGLAdditions.h"
+#import "../src/NSProcessInfo+MGLAdditions.h"
+#import "../../darwin/src/NSString+MGLAdditions.h"
+
+__attribute__((constructor))
+static void InitializeMapbox() {
+ static int initialized = 0;
+ if (initialized) {
+ return;
+ }
+
+ mgl_linkBundleCategory();
+ mgl_linkStringCategory();
+ mgl_linkProcessInfoCategory();
+
+ [MGLAccountManager class];
+ [MGLAnnotationImage class];
+ [MGLMapCamera class];
+ [MGLMapView class];
+ [MGLMultiPoint class];
+ [MGLPointAnnotation class];
+ [MGLPolygon class];
+ [MGLPolyline class];
+ [MGLShape class];
+ [MGLStyle class];
+ [MGLUserLocation class];
+}