summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Guerra <fabian.guerra@mapbox.com>2019-02-27 15:54:47 -0800
committerFabian Guerra <fabian.guerra@mapbox.com>2019-03-28 15:05:26 -0700
commitb91b441ac99802ac29d21da22132b9edfc4fa17e (patch)
tree68a3d4e44917bd3c718df3b9aaed5a4fe667c9c7
parent33aee4fce2f7b12044c63c436f93575e28c3e8d2 (diff)
downloadqtlocation-mapboxgl-b91b441ac99802ac29d21da22132b9edfc4fa17e.tar.gz
[ios, macos] Remove deprecated macro.
-rw-r--r--platform/darwin/src/MGLEventsManager.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLEventsManager.m b/platform/darwin/src/MGLEventsManager.m
index f46a3196a6..3790f55c26 100644
--- a/platform/darwin/src/MGLEventsManager.m
+++ b/platform/darwin/src/MGLEventsManager.m
@@ -1,5 +1,5 @@
#import "MGLEventsManager_Private.h"
-#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
+#if TARGET_OS_IOS
#import "MGLMapboxEvents.h"
#endif
@@ -16,7 +16,7 @@
}
- (void)handleEvent:(NSString *)eventName withAttributes:(NSDictionary *)attributes {
-#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
+#if TARGET_OS_IOS
[MGLMapboxEvents pushEvent:eventName withAttributes:attributes];
#endif
if (self.shouldHandleEvents && self.handler) {