Minh Nguyễn
bb788f56f2
Renamed settings keys
...
The new keys fit the standard naming convention for Info.plist keys and more clearly communicate how they’re to be used.
2015-05-08 11:51:48 -07:00
Brad Leege
9f0e9fe847
#1474 - Setting flushAfter back to 60 seconds. Removing debug log statements
2015-05-08 10:23:14 -05:00
Brad Leege
11886a9004
#1474 - Adding timer cleanup logic to -flush so that it doesn't loop indefinitely
2015-05-08 10:21:00 -05:00
Brad Leege
ea3979b19e
#1474 - Refactoring timer to be started when first event is added to queue. Debug logic and content also included
2015-05-08 10:13:05 -05:00
Minh Nguyễn
ec3757309f
Fixed leaks of copied CF objects
2015-05-05 12:10:44 -04:00
Minh Nguyễn
900d140f23
Fixed dead store analyzer warnings
...
These values weren’t being used for anything.
2015-05-05 11:41:02 -04:00
Minh Nguyễn
98dc0b6f81
Avoid creating MGLMapboxEvents when Metrics is disabled
...
Mapbox Metrics already has a bottleneck; might as well use it to avoid fetching data in the first place.
2015-05-01 19:24:14 -04:00
Minh Nguyễn
6342712591
Pause collection when tearing down MGLMapboxEvents for whatever reason
2015-04-30 12:28:35 -04:00
Minh Nguyễn
97fb9f6fcf
Tied NSURLSession lifetime to metrics collection
...
Call `-resumeMetricsCollection` on `init` to consolidate the various steps to initialize `MGLMetricsLocationManager`.
2015-04-30 12:22:51 -04:00
Minh Nguyễn
6790a09a08
Turned class methods into instance methods
...
Avoids unnecessary steps to access singletons. Now `MGLMapboxEvents` and `MGLMetricsLocationManager` instances can message themselves directly.
2015-04-30 11:48:56 -04:00
Minh Nguyễn
87c61657a1
Objective-C niceties
...
Added macro for main thread assertions based on `NSAssert()`. Reworded Boolean property per Objective-C conventions.
2015-04-30 11:35:52 -04:00
Justin R. Miller
42b59eb655
fixes #1363 : centrally & better address GL demo/third-party resource bundle issues
2015-04-28 15:03:35 -04:00
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