summaryrefslogtreecommitdiff
path: root/gyp
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-02-24 18:01:48 -0800
committerJesse Bounds <jesse@rebounds.net>2016-02-26 14:19:04 -0800
commit09c91008910746667b26d04eca679dfa5bb6b03b (patch)
tree710fead6e631c61f955887afbcfa47a282664d17 /gyp
parentb3adb96e4a34123a337027f5d3ecc377e33397c3 (diff)
downloadqtlocation-mapboxgl-09c91008910746667b26d04eca679dfa5bb6b03b.tar.gz
Introduce MGLLocation Manager
https://github.com/mapbox/mapbox-gl-native/pull/4115 This change makes background data gathering more efficient by disabling standard location updates when the device has been stationary for at least five minutes. It also establishes region monitoring and significant location change monitoring so that if the device appears to be in motion again then background telemetry data collection can resume. All of this reduces the amount of time required for telemetry data collection to the time the device is in motion only. It also only applies to host apps that already run in the background and have the always location permission from their users. This also includes some changes to make the internal pause/resume API of the MGLMapboxEvents class less complex and autonomous. The side effects of the map view waking or sleeping are no longer required for mapbox events to work as intended.
Diffstat (limited to 'gyp')
-rw-r--r--gyp/platform-ios.gypi2
1 files changed, 2 insertions, 0 deletions
diff --git a/gyp/platform-ios.gypi b/gyp/platform-ios.gypi
index e2c840581b..dc1c082edd 100644
--- a/gyp/platform-ios.gypi
+++ b/gyp/platform-ios.gypi
@@ -48,6 +48,8 @@
'../platform/ios/src/MGLMapboxEvents.m',
'../platform/ios/src/MGLAPIClient.h',
'../platform/ios/src/MGLAPIClient.m',
+ '../platform/ios/src/MGLLocationManager.h',
+ '../platform/ios/src/MGLLocationManager.m',
'../platform/ios/src/MGLMapView.mm',
'../platform/ios/src/MGLAccountManager_Private.h',
'../platform/ios/src/MGLAccountManager.m',