Brad Leege
0662c7416a
Merge pull request #1356 from mapbox/1352-visits
...
Visit API
2015-04-27 21:32:15 -04:00
Brad Leege
3040b6462e
#1345 - Changing -buildNumber to /buildNumber
2015-04-27 21:19:45 -04:00
Brad Leege
16bcdb10b8
#1352 - Adding visit event with data attributes
2015-04-27 18:00:31 -04:00
Brad Leege
5092d72599
#1352 - Adding start / stop visit monitoring infrastructure and integrating it with pause / resume metrics api
2015-04-27 17:37:39 -04:00
Brad Leege
c9e5435035
#1307 - Optimizing fallback to digicert check strategy
2015-04-27 16:14:14 -04:00
Brad Leege
353e5661de
Merge pull request #1348 from mapbox/1307-digicert
...
Importing Digicert Cert
2015-04-27 15:42:07 -04:00
Brad Leege
cde989093b
#1307 - Adding digicert to sdks and ssl handshaking check
2015-04-27 12:22:05 -04:00
Brad Leege
50fecb916d
#1345 - Adding app build number to user agent. Updating gl test app build number to be different from build version.
2015-04-27 11:43:23 -04:00
Brad Leege
86e90da6d5
#1346 - Removing allFrameworks iteration search for the bundle as it's not needed now
2015-04-27 10:55:12 -04:00
Justin R. Miller
ad1cc3f1ad
fix SSL pinning for apps including the framework
...
Made it clearer when we are referring to the app bundle and
when we need to get the framework bundle for resources such as
pinned certificates.
2015-04-25 10:25:47 -07:00
Minh Nguyễn
61d4fcc2ba
Merge branch 'master' into 1ec5-strong-self
2015-04-22 13:11:26 -07:00
Brad Leege
d4264edea3
#1166 - Cleaning up logs and old NSURLConnection code
2015-04-21 17:19:37 -05:00
Brad Leege
1a43b773af
#1166 - Initial conversion from NSURLConnection to NSURLSession
2015-04-21 17:13:23 -05:00
Brad Leege
d4add0bfdb
#1306 - Removing kSecTrustResultConfirm as it's deprecated
2015-04-21 11:15:31 -05:00
Brad Leege
a951229591
#1306 - Moving local geoTrustCert to one time setup and cache in immutable NSData object
2015-04-21 11:09:22 -05:00
Brad Leege
736bdca81e
#1306 - Renaming certificate to include geotrust name for easier tracking
2015-04-20 19:59:28 -05:00
Brad Leege
6f9bcd86af
#1306 - Moving api_mapbox_com.der to iOS Resources directory so that it can be accessed via GL Framework
2015-04-20 19:47:24 -05:00
Brad Leege
96a6371fa0
#1306 - Explicitly scheduling NSURLConnections in mainRunLoop so that delegates and connections stay connected.
2015-04-20 18:56:42 -05:00
Brad Leege
fbd610695a
#1306 - Trying strongSelf / weakSelf pattern for delegate
2015-04-20 14:55:39 -05:00
Brad Leege
a2883dddc0
#1306 - Adding api_mapbox_com.der (public key) and nsurlconnection checking infrastructure
2015-04-20 14:28:32 -05:00
Minh Nguyễn
2ec09a663f
Use strongSelf inside blocks
...
It’d be pointless to create a `strongSelf` but not use it; `weakSelf` isn’t guaranteed to exist past that point.
2015-04-20 09:58:05 -07:00
Brad Leege
e7518d56c5
#1303 - Enabling Battery Monitoring for app. Formatting battery level to int instead of float.
2015-04-20 10:59:09 -05:00
Minh Nguyễn
0bb2e05063
weakSelf needs strongSelf
...
The `weakSelf` dance requires the use of a `strongSelf` in non-trivial blocks. In these cases, `weakSelf` could disappear right out from under the block. A crash could potentially occur due to setting a `nil` value in an `NSMutableDictionary`.
2015-04-18 23:28:51 -07:00
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