diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-04-18 00:34:25 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-04-18 16:56:14 -0700 |
commit | 4edd1e9658eb17de98e06a3213d33c7538259655 (patch) | |
tree | 10759fce6f73347393a5d6450d2ccb00541b9d45 /platform/ios/src/MGLMapboxEvents.m | |
parent | 0c44266ffb1bba02e2d6034f28b5ea8739bdde70 (diff) | |
download | qtlocation-mapboxgl-4edd1e9658eb17de98e06a3213d33c7538259655.tar.gz |
[ios] Use staging server in simulator
Use the staging telemetry server when compiled for the iOS Simulator.
Fixes #3621.
Diffstat (limited to 'platform/ios/src/MGLMapboxEvents.m')
-rw-r--r-- | platform/ios/src/MGLMapboxEvents.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m index 7e6add662e..f4acc01185 100644 --- a/platform/ios/src/MGLMapboxEvents.m +++ b/platform/ios/src/MGLMapboxEvents.m @@ -140,6 +140,9 @@ const NSTimeInterval MGLFlushInterval = 180; @"MGLMapboxAccountType": accountTypeNumber ?: @0, @"MGLMapboxMetricsEnabled": @YES, @"MGLMapboxMetricsDebugLoggingEnabled": @NO, +#if TARGET_OS_SIMULATOR + @"MGLTelemetryTestServerURL": @"https://cloudfront-staging.tilestream.net", +#endif }]; } } @@ -360,7 +363,7 @@ const NSTimeInterval MGLFlushInterval = 180; [self pushTurnstileEvent]; } - if ([self isPaused]) { + if (self.paused) { return; } @@ -450,7 +453,7 @@ const NSTimeInterval MGLFlushInterval = 180; // Called implicitly from public use of +flush. // - (void)postEvents:(NS_ARRAY_OF(MGLMapboxEventAttributes *) *)events { - if ([self isPaused]) { + if (self.paused) { return; } |