Commit Graph

30 Commits

Author SHA1 Message Date
Randall Lee
1215629591 [iOS] Update to Events SDK v0.9.0 (#13951)
* Update to Events SDK v0.9.0

Minor bug fixes and addition of internal turnstile attributes. Also enables LTO compiler flag.

* Add CLLocationManager+MMEMobileEvents category

* Generate file lists
2019-02-19 16:53:33 -05:00
Julian Rex
b460efdf00 [ios] Partially offscreen annotations (without callouts) are no longer moved on-screen (#13727) 2019-01-22 17:45:06 -05:00
Randall Lee
77e7bd93f0 [iOS] Update Telemetry submodule to v0.8.1 (#13746)
Includes some minor internal bug fixes -- shouldn't require changelog.
2019-01-16 15:38:26 -05:00
Randall Lee
2f9f3f14d6 [iOS] Upgrade Events submodule to v0.8.0 (#13676) 2019-01-07 13:52:49 -05:00
Randall Lee
3aa995bbe1 [iOS] Update mobile events submodule (#13228)
* Update mobile events submodule

Updates submodule to the latest release. https://github.com/mapbox/mapbox-events-ios/releases/tag/v0.7.0

I don't think a changelog addition is necessary.

* Update core files using script
2018-10-30 16:13:58 -04:00
Nadia Barbosa
5f1d4199d9 [ios] Log event when offline pack is created 2018-10-23 15:49:11 -07:00
Jason Wray
0200773762 [ios] Update events library to include symbol namespace fix 2018-10-03 13:26:59 -04:00
Randall Lee
9efdc4c6c3 [iOS] Update events library (#12889)
Updates EventsSDK to patch a crash that happens with offline use.
2018-09-13 17:09:37 -04:00
Randall Lee
15c9ed465e [iOS] Update Events SDK to include key pinning and crash fixes (#12825)
* Update Events SDK to include key pinning and crash fixes
2018-09-05 16:43:34 -04:00
Randall Lee
99a365d7b7 [iOS] Update Events submodule with crash fix (#12542)
* Update events submodule

fixes bug with location manager delegate in the events manager.

* Update changelog
2018-08-03 16:41:09 -04:00
Randall Lee
673d75e6b3 [ios] Update events submodule to include RN override (#12360)
React native user agent override for internal use.
2018-07-10 16:34:59 -04:00
Randall Lee
16c4208a33 [ios] Update Events Library submodule to include china endpoint (#12233)
Brings in changes from mapbox/mapbox-gl-native#11860 and mapbox/mapbox-gl-native#11845
2018-06-27 14:43:55 -04:00
Jason Wray
b84a184d2d [ios, build] Completely remove support for Fabric (#12106) 2018-06-18 22:03:59 -04:00
Randall Lee
5a837c1702 [ios] Add custom events library start-up delay (#12088)
* [ios] Add custom delay 

Adds a custom delay to the events library initialization. This is only active when using certain profile configurations.

* [ios] events library version update to v0.4.1

* Update Events Library to include missing MGL_EXPORT

* Add MMEEventsService files to Events Lib Submodule

* Change delayTime type to int64_t
2018-06-08 14:39:43 -07:00
Jason Wray
f2d2f2d6a9 [ios] Bump mapbox-mobile-events to avoid build warning (#12005) 2018-05-25 12:13:21 -04:00
Julian Rex
0212fd385c [ios] Provide custom hit test for callout views (#11939) 2018-05-24 01:01:20 -04:00
Jason Wray
23ccfce176 [ios] Update mapbox-events-ios to v0.4.0 2018-03-29 14:07:39 -04:00
Julian Rex
d4f2bc07ca [ios,macos] Selecting offscreen annotation pans map to fit annotation & callout view (#3249, #9790) 2018-03-21 13:51:10 -04:00
Jesse Bounds
2e3145db47 Replace embedded telem implementation with mapbox-mobile-events library (#10698)
* [ios] Introduce mobile events dependency

This adds the mobile events dependency including the events library's namespaced header file so that the related compiled symbols are prefixed to make them specific to the maps SDK. A pre-compiled header file is added so that the namespaced header file is added in all places where it is needed (most importantly every events library file).

* [ios] Use new events library for telemetry events

This makes the following significant changes:

Refactors the MGLMapboxEvents singleton to delegate internally to an instance of MMEEventsManager that it keeps for itself. The MGLMapboxEvents public API is refactored to reflect this. Note: MGLMapboxEvents continues to handle checking for opt out

Uses that new events API in MGLMapboxEvents to send all telem events (and turnstile)

All embedded certs are removed since the new telem library uses public key info pinning

Legacy telemetry utility classes for location and networking are removed since those are implemented in the telem library

* [ios] Update submodules initialized by cmake

We no longer bring in SMCalloutView as a submodule so it is removed.
We now vendor the telemetry events library as a submodule so it is added.

* Update mapbox-mobile-events

* Update mobile events lib

* Set events options with MGL user defaults values

For options that historically could be set with user defaults in the Maps SDK, collect them and set the appropriate property values in the new events library.

Also, check the existence of two new optional configuration values MGLTelemetryAccessToken and MGLTelemetryBaseURL so that the events endpoint and access token can be configured and the access token can easily be set dynamically and apart from the access token for the maps API.

MGLTelemetryBaseURL replaces the legacy MGLTelemetryTestServerURL. This is ok because this value was never intended to be used by client applications. The new name better reflects the fact that the URL can be changed to any backend stack, not just a test server.

Because it is possible for the configuration values to be read from user defaults before the events manager is fully set up, this also adds a local cache for the baseURL and accessToken values so that they can be stored and applied once it is time to setup the the events manager.

* Update mapbox-mobile-events

mapbox-mobile-events was forced pushed to include https://github.com/mapbox/mapbox-events-ios/pull/28

* Rename MGLMapboxEvents singleton access method

Manager is not in the name of the class. Just call it an instance.

* Update mapbox-mobile-events

* Add comments about config value loading

* Guard against creating events for IB

* Refactor user defaults update handler

This updates the handling logic for user defaults to break apart config changes that require a check for pausing or resuming the events lib’s telemetry collection from config changes that can happen with no update to the pause/resume state.

It also ports the optimization from https://github.com/mapbox/mapbox-gl-native/pull/10803 so that the call to pause and resume is not performed unless the user defaults store has new values that have not yet been applied to the events library.

* Update mapbox-mobile-events

* Rename events submodule folder

* Fix incorrect events library refs

* Update mapbox-mobile-events

* Update user user agent id value

This value aligns with our schme of {source-sdk-platform} and will be used by the events library in the user agent and vendorid.

* Update mapbox-mobile-events

Pin to v3.0.0 (d522b18)

* Improve code comments

* [ios] Fixed a broken file reference to MGLTelemetryConfig.
2018-02-20 09:54:11 -05:00
Jason Wray
5cefa51511 [ios] Rename SMCalloutView and stop using submodule 2017-10-11 12:21:27 -07:00
Minh Nguyễn
2676ad05b0 [ios] Update SMCalloutView to fix iOS 10 build warnings
Reapplied 76a2a2db28, which was partially rolled back in f6e79d7073.
2017-06-20 18:04:10 -07:00
Lauren Budorick
f6e79d7073 [core] Render fill-extrusion layers (#8431) 2017-04-27 15:56:55 -07:00
Minh Nguyễn
e91be23b7f [ios, macos] Fixed documentation parameter mismatches
Also enabled compiler warnings about incorrect Doxygen commands.
2017-03-13 12:35:09 -07:00
Konstantin Käfer
62ea1f2185 [core] remove trailing whitespace, add trailing newlines, add space after // 2017-01-27 11:44:16 +01:00
Jason Wray
76a2a2db28 [ios] Update SMCalloutView to fix iOS 10 build warnings 2016-10-06 19:54:51 -04:00
Justin R. Miller
f5a0586408 move from Fabric framework to bare headers per Twitter recommendation
Rolls back part of #2742
2015-11-09 17:35:43 -08:00
Justin R. Miller
58c90ac099 bump SMCalloutView by one change to grab accessbility support 2015-10-29 12:23:13 -07:00
Justin R. Miller
144a4714f0 refs #2684: integrate Twitter Fabric 2015-10-23 14:13:56 -07:00
Minh Nguyễn
00d2cbe5cb Updated nfarina/calloutview to 2.1.2
Resolves several warnings via nfarina/calloutview#78 and nfarina/calloutview#79.
2015-03-26 15:16:20 -07:00
Justin R. Miller
10a30daed6 refs #894, fixes #1074: callout views for iOS 2015-03-24 18:43:24 -07:00