Minh Nguyễn
9a404a3088
Return nil for IB designables agent
...
In Objective-C, the return value for a non-void method is the receiver by default. Hello NeXTSTEP.
2015-05-13 07:53:32 -07:00
Justin R. Miller
190e911209
fix dispatch-thread pattern
...
1. Always bail early if in IB.
2. Always run on main thread if not already.
3. THEN dispatch_once to create the static instance.
2015-05-12 18:23:59 -07:00
Minh Nguyễn
7ed31065ed
Cleaned up in-app opt-out property
...
Renamed the property to be consistent with the public class methods. Also removed a spurious #import of a .m file.
2015-05-12 16:16:48 -07:00
Minh Nguyễn
b1992a4516
Merge branch 'master' into 1ec5-metrics-opt-way-out
2015-05-12 16:09:10 -07:00
Brad Leege
87551c6d0e
#1516 - Renaming setShowsOptOutInApp to setMapboxMetricsEnabledSettingShownInApp for app consistency. Implementing wordsmith edits to NSAssert text. Removing technical debt.
2015-05-12 10:50:46 -05:00
Minh Nguyễn
f860169f35
Refactored MGLMapboxEvents for better data management
...
The shared `MGLMapboxEvents` now owns the only instance of `MGLMetricsLocationManager`. It also owns a `MGLMapboxEventsData` object, to which all user-specific data has been relegated. This object can be built up and torn down on the fly, whenever the opt-out preference is toggled. `MGLMapboxEvents` has also given up knowledge of the access token and now queries `MGLAccountManager` for that information, which `MGLMapView` keeps up-to-date.
2015-05-12 01:36:56 -07:00
Brad Leege
48e21ae6e9
#1516 - Adding explicit checks for developer implementation of user Opt Out functionality
2015-05-11 23:31:22 -05:00
Brad Leege
804c092c81
#1225 - Simplifying MGLAccountManager for initial setup and access to AccessToken
2015-05-05 11:50:01 -05:00
Brad Leege
7f6cc6cc6d
#1225 - Renaming getAccessToken method to sharedAccessToken to avoid any iOS get naming conventions
2015-05-04 16:52:41 -05:00
Brad Leege
0e36bf1c8d
#1225 - Restoring MapboxGL.h as an Umbrella header file by splitting the singleton code into MGLAccountManager.h and .m
2015-05-04 16:13:18 -05:00