Commit Graph

44 Commits

Author SHA1 Message Date
Brad Leege
074687e732 #1271 - Changing "new" to "alloc init" 2015-04-15 09:39:00 -05:00
Brad Leege
21685caa2a #1268 - Adding horizontalAccuracy to location event 2015-04-14 18:03:59 -05:00
Brad Leege
22a35c23be #1252 - Merging 2 "created" attribute value setting attempts into 1 2015-04-10 15:53:07 -05:00
Brad Leege
19e4bc7541 #1247 - Adding Altitude and Vertical Accuracy attributes to location events 2015-04-09 18:08:15 -05:00
Brad Leege
e86597011f #1216 - Added test usage of pausing / resuming Metrics to simulate app entering background mode and no other location manager running. Added paused state checking to pauseMetricsCollection and resumeMetricsCollection 2015-04-07 15:53:17 -05:00
Brad Leege
def309ba24 #1216 - Adding start and stop location manager update to pause and resume functions. 2015-04-06 23:15:00 -05:00
Brad Leege
4092e46982 #1216 - Add pause and resume methods with corresponding isPaused boolean flag property 2015-04-06 23:03:27 -05:00
Brad Leege
86d05d7ece #1217 - Changing date format to ISO 8601 2015-04-06 19:12:05 -05:00
Brad Leege
efdcdfb70d #1217 - Documenting why [NSTimeZone resetSystemTimeZone] is called 2015-04-06 17:51:24 -05:00
Brad Leege
67ce07cada #1217 - Changing date formatter to use device's system timezone and to give both timezone abbreviation as well as hour offset 2015-04-06 17:50:02 -05:00
Brad Leege
17ded82d87 #1215 - Refactoring cellularNetworkType and wifi to support nil data if no cell type or wifi is found. 2015-04-06 17:36:54 -05:00
Minh Nguyễn
da13225a81 Made MGLMapView designable in IB
When an access token is set in the Attributes inspector (or as a user-defined runtime attribute), we draw some lovely Mapbox branding so the view shows up. (Manipulating invisible rectangles is a frustrating exercise, I’m told.) In the absence of an access token, the view displays a helpful message with directions for obtaining and setting the access token.

Along the way, completely opt out of `MGLMapboxEvents` when targeting Interface Builder, because touching Core Location throws an exception in that environment and it doesn’t make sense to record any metrics when designing on the Interface Builder canvas. Also, don’t start `mbgl::Map` at all (and don’t update it) because none of the runtime drawing code should ever be run in the designable. Normally these chunks of code would be excluded in IB using the TARGET_INTERFACE_BUILDER preprocessor macro. However, Mapbox GL is being packaged as a static library, so the macro is only evaluated when the library is prebuilt, even if the library eventually makes its way into the CocoaPods-generated framework. Instead, we detect that we’re being run by the IBDesignablesAgentCocoaTouch process.

Overrode `-[MGLMapView initWithFrame:]` to call `-commonInit`. We’ve marked this initializer unavailable in the header, but IB still calls it regardless.

Fixes #929.
2015-04-03 12:16:00 -07:00
Brad Leege
8413da0d68 #1195 - Adding speed and course attributes to location event 2015-04-03 11:10:35 -05:00
Brad Leege
418c802d97 #1178 - Changing "Location" to "location" 2015-04-02 10:34:35 -05:00
Brad Leege
adcbf48ff5 #1162 - Adding appBundleId as an event attribute 2015-03-31 09:46:28 -05:00
Brad Leege
a325cb98b5 #1134 - Removing enabled.email metric and supporting infrastructure 2015-03-27 19:25:59 -05:00
Brad Leege
2f92fa9125 #1144 - Removing conversion of (char)0 and (char)1 to false and true strings 2015-03-27 15:03:02 -05:00
Brad Leege
caf970eab7 Merge pull request #1138 from mapbox/1124-both-ids-take-2
Resplitting anonid into advertiserId and vendorId
2015-03-27 12:49:28 -05:00
Brad Leege
b01aef1c7b #1124 - Resplitting anonid into advertiserId and vendorId 2015-03-27 11:30:20 -05:00
Justin R. Miller
2066e201ea Merge remote-tracking branch 'origin/master' into 1128-convert-booleans 2015-03-27 09:00:07 -07:00
Justin R. Miller
1a8d6445d1 convert metrics BOOLs to strings internally 2015-03-27 00:17:42 -07:00
Justin R. Miller
b330dbe779 no need to iterate passed dictionary 2015-03-26 23:42:29 -07:00
Justin R. Miller
bf3c87b17f more metrics magic strings removals 2015-03-26 23:31:08 -07:00
Justin R. Miller
29cd6b4978 convention cleanups for main thread variable; use class method 2015-03-26 23:00:57 -07:00
Justin R. Miller
0350216d34 Merge remote-tracking branch 'origin/master' into metrics-stability-squash 2015-03-26 22:37:31 -07:00
Justin R. Miller
83f083c7b5 fixes #1116: metrics stability & performance refactor 2015-03-26 21:27:56 -07:00
Justin R. Miller
b04f68be91 unique queue names per process & with bundle ID 2015-03-25 21:18:11 -07:00
Brad Leege
aa1eabe230 #1109 - Converting pushEvent and flush to use actual serial queues that are dispatched asynchronously. 2015-03-25 21:53:01 -05:00
Brad Leege
b06e8c8dfc #1109 - Wrapping event flush method in sync background thread. 2015-03-25 21:07:08 -05:00
Brad Leege
53090afecb #1109 - Putting the event generation and process logic for pushEvent into a serial background thread. 2015-03-25 21:04:12 -05:00
Brad Leege
7d37731102 Changing wifi ssid "<<NONE>>" to "NONE" to be consistent with getCurrentCellularNetworkConnectionType 2015-03-24 20:48:52 -05:00
Brad Leege
fc4fbfd1bc Adding cellularNetworkType attribute 2015-03-24 20:47:50 -05:00
Brad Leege
d699815386 Changing "deviceTimestamp" to "created". 2015-03-24 19:38:14 -05:00
Brad Leege
033f83b1a8 Removing logging from development / testing phase. Removing Settings bundle work from MGLMetricsLocationManager as it's handled in MGLMapboxEvents. 2015-03-24 19:34:27 -05:00
Brad Leege
308d382bd2 #1033 - Building Mapbox Metrics Disabled UI in Settings.app and functionality in Events tracking infrastructure 2015-03-24 11:33:08 -05:00
Brad Leege
25381187be #1033 - Setting up Opt Out UI in Settings.app. Checking for Opt Out status at event push time. 2015-03-24 10:50:26 -05:00
Brad Leege
5acf518ea6 #1033 - Adding blank Settings.bundle infrastructure and ensuring it's loaded into memory 2015-03-24 10:37:59 -05:00
Brad Leege
81f6c5cab2 #1033 - Removing extraneous instance variable of anonId 2015-03-24 10:35:49 -05:00
Brad Leege
2da729dca0 #1033 - Fix automatic overwriting of anonId value 2015-03-24 10:33:35 -05:00
Brad Leege
d1a95e21a7 #1033 - Adding wifi network name attribute 2015-03-24 10:16:16 -05:00
Brad Leege
3e062d0e20 #1033 - Flush all events to server when app enters background 2015-03-24 10:02:13 -05:00
Brad Leege
11aef0d9d0 #1033 - Adding accessibilityFontScale attribute 2015-03-23 18:29:13 -05:00
Brad Leege
de0aaff1f0 #1033 - Adding TODO to location where Opt Out and Metrics Disabled Checking will be implemented. 2015-03-23 11:29:34 -05:00
Brad Leege
ec304d37ac #1033 - Integrating MapboxEvents class. 2015-03-20 16:01:52 -05:00