diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-01-21 16:04:27 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-01-22 14:45:57 -0800 |
commit | 1d395e72bd98a31d40c68abbfdefafc23919a61c (patch) | |
tree | 045c0563bcec3df1737a5ccc19eff88f7a51c574 | |
parent | 7338db692d0140b8c02b14656948bb4d193edb21 (diff) | |
download | qtlocation-mapboxgl-1d395e72bd98a31d40c68abbfdefafc23919a61c.tar.gz |
[ios] Derive Fabric versioning from Info.plist
Avoid hard-coding the bundle identifier and version string.
-rw-r--r-- | platform/ios/src/MGLAccountManager.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/ios/src/MGLAccountManager.m b/platform/ios/src/MGLAccountManager.m index 9b60a40986..764f9f097b 100644 --- a/platform/ios/src/MGLAccountManager.m +++ b/platform/ios/src/MGLAccountManager.m @@ -1,5 +1,6 @@ #import "MGLAccountManager_Private.h" #import "MGLMapboxEvents.h" +#import "NSBundle+MGLAdditions.h" #import "NSProcessInfo+MGLAdditions.h" #import "FABKitProtocol.h" @@ -70,11 +71,11 @@ #pragma mark - Fabric + (NSString *)bundleIdentifier { - return @"com.mapbox.sdk.ios"; + return [NSBundle mgl_frameworkBundle].bundleIdentifier; } + (NSString *)kitDisplayVersion { - return @"3.0.1"; + return [NSBundle mgl_frameworkBundle].infoDictionary[@"CFBundleShortVersionString"]; } + (void)initializeIfNeeded { |