summaryrefslogtreecommitdiff
path: root/ios/framework/Mapbox.m
diff options
context:
space:
mode:
Diffstat (limited to 'ios/framework/Mapbox.m')
-rw-r--r--ios/framework/Mapbox.m29
1 files changed, 29 insertions, 0 deletions
diff --git a/ios/framework/Mapbox.m b/ios/framework/Mapbox.m
new file mode 100644
index 0000000000..a81ca09135
--- /dev/null
+++ b/ios/framework/Mapbox.m
@@ -0,0 +1,29 @@
+#import <Mapbox/Mapbox.h>
+
+#import "../../platform/ios/src/NSBundle+MGLAdditions.h"
+#import "../../platform/ios/src/NSProcessInfo+MGLAdditions.h"
+#import "../../platform/darwin/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];
+}