summaryrefslogtreecommitdiff
path: root/platform/macos/src/MGLMapView.mm
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-06-20 21:40:42 -0700
committerMinh Nguyễn <mxn@1ec5.org>2018-11-15 22:00:30 -0800
commit425a3ade9ebbd874fc7172afdbfa91d861b49f92 (patch)
treed545aafb79216b004853b75114811955493ec00e /platform/macos/src/MGLMapView.mm
parent8961768eb0b8580f0670ed5f977009e8461a0fac (diff)
downloadqtlocation-mapboxgl-425a3ade9ebbd874fc7172afdbfa91d861b49f92.tar.gz
[ios, macos] Harmonize bundle identifiers
For consistency with each other and with their product name and module name, the iOS and macOS map SDKs now have a bundle identifier of com.mapbox.Mapbox, whether in the form of a static or dynamic framework. The logging subsystem identifier has also been changed to match.
Diffstat (limited to 'platform/macos/src/MGLMapView.mm')
-rw-r--r--platform/macos/src/MGLMapView.mm5
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm
index 486870f51c..2f379ab406 100644
--- a/platform/macos/src/MGLMapView.mm
+++ b/platform/macos/src/MGLMapView.mm
@@ -272,14 +272,13 @@ public:
_mbglView = new MGLMapViewImpl(self);
// Delete the pre-offline ambient cache at
- // ~/Library/Caches/com.mapbox.sdk.ios/cache.db.
+ // ~/Library/Caches/com.mapbox.MapboxGL/cache.db.
NSURL *cachesDirectoryURL = [[NSFileManager defaultManager] URLForDirectory:NSCachesDirectory
inDomain:NSUserDomainMask
appropriateForURL:nil
create:NO
error:nil];
- cachesDirectoryURL = [cachesDirectoryURL URLByAppendingPathComponent:
- [NSBundle mgl_frameworkBundle].bundleIdentifier];
+ cachesDirectoryURL = [cachesDirectoryURL URLByAppendingPathComponent:@"com.mapbox.MapboxGL"];
NSURL *legacyCacheURL = [cachesDirectoryURL URLByAppendingPathComponent:@"cache.db"];
[[NSFileManager defaultManager] removeItemAtURL:legacyCacheURL error:NULL];