summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLAPIClient.h
Commit message (Collapse)AuthorAgeFilesLines
* Flush telemetry cache when data collection is paused (#7672)Jesse Bounds2017-01-111-1/+0
| | | | | | | | | | | | | | | | | | | | [ios] Flush telemetry cache when data collection is paused This flushes the cache just before pausing so that data collected before the pause is not thrown away. It also refactors event creation to avoid possible nil value inserts into dictionaries and adds a small optimization to avoid creating immutable dictionaries to help create mutable ones. Also: - Remove cancel API in API client The cancelAll API is not used. The array of data tasks it maintains has proven problematic. This removes the API and the problematic implementation. As safer version of it can be brought back if cancel task functionality is required in the future. - Remove unused battery method
* [ios, macos] Make Xcode 7.3 the minimum required versionJason Wray2016-08-181-2/+6
| | | | | | | | | - Removes nullability shims for Xcode 6. - Removes MGLTypes.h from files where it was only being used for nullability support. - Accepts that `NS_SWIFT_NAME` is not fully supported by Xcode 7.2 and lower. - Adds documentation about Xcode 7.3 requirement.
* [ios] Introduce API ClientJesse Bounds2016-02-241-0/+12
Addresses https://github.com/mapbox/mapbox-gl-native/issues/3704 This introduces a new utility class that wraps networking via NSURLSession. All related code that used to live inside the telemetry MGLMapboxEvents class has been pulled into the new MGLAPIClient. An API client instance is used as a service by telemetry and can be reused in the future when and if our networking needs grow or become more complex.