diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-02-07 17:51:15 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-02-09 14:56:01 -0800 |
commit | 35fdf32de5af7aef1b2d8f221ff74d631a40bcb8 (patch) | |
tree | 3c1bea7269351e8a26589159867f63c1ed44bad9 /platform/ios | |
parent | 8f48d64c0f16a2d0ba73affe62d6da68ca6f3fcd (diff) | |
download | qtlocation-mapboxgl-35fdf32de5af7aef1b2d8f221ff74d631a40bcb8.tar.gz |
[ios] Load categories in MGLAccountManager for Fabric
These categories need to be loaded explicitly so that they’re linked into the application binary. In the dynamic framework, they’re loaded inside the InitializeMapbox() framework initializer; for static frameworks, we recommend setting the -ObjC flag. Fabric uses the static framework without setting the -ObjC flag, so these redundant calls are needed.
Diffstat (limited to 'platform/ios')
-rw-r--r-- | platform/ios/src/MGLAccountManager.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/ios/src/MGLAccountManager.m b/platform/ios/src/MGLAccountManager.m index 764f9f097b..6b98d5286a 100644 --- a/platform/ios/src/MGLAccountManager.m +++ b/platform/ios/src/MGLAccountManager.m @@ -1,7 +1,9 @@ #import "MGLAccountManager_Private.h" #import "MGLMapboxEvents.h" +#import "MGLMapView.h" #import "NSBundle+MGLAdditions.h" #import "NSProcessInfo+MGLAdditions.h" +#import "NSString+MGLAdditions.h" #import "FABKitProtocol.h" #import "Fabric+FABKits.h" @@ -93,6 +95,14 @@ } else { NSLog(@"MGLAccountManager is used in a project that doesn't have Fabric."); } + + // https://github.com/mapbox/mapbox-gl-native/issues/2966 + mgl_linkBundleCategory(); + mgl_linkStringCategory(); + mgl_linkProcessInfoCategory(); + + // https://github.com/mapbox/mapbox-gl-native/issues/3113 + [MGLMapView class]; } @end |