Minh Nguyễn
ff0ec15e1d
More cleanup and sanitization
...
Moved constant values from ivars into constants. Invalidate the flush timer and clear the event queue on pause. Rewrote some flush logic to be easier to follow.
2015-05-12 01:38:04 -07:00
Minh Nguyễn
2f02a6538e
Folded MGLMetricsLocationManager into MGLMapboxEvents
...
`MGLMetricsLocationManager` was nothing but overhead for `CLLocationManager`. Also removed an unused method.
2015-05-12 01:36:56 -07:00
Minh Nguyễn
c1fe6e1890
Resume iff Metrics is enabled
2015-05-12 01:36:56 -07: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
Minh Nguyễn
60ed9e6d2e
Objective-C method naming convention
...
Removed “get” from names of methods that perform no network or file access.
2015-05-12 01:36:29 -07:00
Minh Nguyễn
1503f33140
Predicate MGLMapboxEvents initialization on user opt-out
2015-05-12 01:36:29 -07:00
Minh Nguyễn
4837359471
Register default user defaults on class initialization
...
`-[MGLMapboxEvents init]` only gets called if `-[MGLMapboxEvents sharedManager]` sees that user defaults call for an `MGLMapboxEvents` to be created. But those user defaults were only being registered inside `-[MGLMapboxEvents init]`. This change moves the registration to `+initialize`, which is called as soon as the class is loaded.
2015-05-12 01:36:29 -07:00
John Firebaugh
3ccb0b5610
Revert "Merge pull request #1429 from mapbox/travis-setup"
...
This reverts commit 9a233c7ed2 , reversing
changes made to 642024af6d .
2015-05-11 22:03:46 -07:00
Justin R. Miller
d784f4755c
Merge pull request #1508 from mapbox/1503-add-changelog
...
refs #1503 : add changelog to appledoc
2015-05-11 13:29:54 -07:00
Justin R. Miller
e46d50c09e
Merge pull request #1505 from mapbox/they-took-our-jobs
...
bring back $JOBS for ios packaging
2015-05-11 13:27:51 -07:00
Justin R. Miller
834e59722c
fixes #1503 : add changelog w/ notes to appledoc index
2015-05-11 13:01:09 -07:00
Justin R. Miller
9ac29c6e44
remove outdated build-related iOS README
2015-05-11 12:46:10 -07:00
Justin R. Miller
467bf65635
first cut of iOS beta-started changelog
2015-05-11 12:45:57 -07:00
Justin R. Miller
44cb91c656
Merge pull request #1507 from mapbox/1502-fix-appledoc
...
pin to appledoc 2.2v963
2015-05-11 12:38:41 -07:00
Mike Morris
319d940161
bring back $JOBS for ios packaging
2015-05-11 15:06:51 -04:00
Justin R. Miller
0d89af422e
pin to appledoc 2.2v963 for now until HEAD is better tested with our setup
2015-05-11 12:00:35 -07:00
Brad Leege
d4fcb5bb98
Merge pull request #1469 from mapbox/1435-android-gl-crash
...
Android GL Crash
2015-05-11 11:42:21 -05:00
Mike Morris
9a233c7ed2
Merge pull request #1429 from mapbox/travis-setup
...
break out setup.sh from run.sh
2015-05-11 11:18:57 -04:00
Thiago Marcos P. Santos
642024af6d
Merge pull request #1499 from mapbox/clang-3.7-libcpp-atomic_flag-initialized
...
Initialize the atomic_flag in the class definition
2015-05-11 16:10:54 +03:00
Thiago Marcos P. Santos
b7c63630a4
Initialize the atomic_flag in the class definition
...
ATOMIC_FLAG_INIT is often defined to { 0 } or { false } and some
compilers might complain about initializing as flag(ATOMIC_FLAG_INIT).
2015-05-11 15:43:55 +03:00
Konstantin Käfer
b9e60efc2b
Merge pull request #1486 from mapbox/fix-division-by-zero
...
fix division by zero conditions
2015-05-11 10:55:52 +02:00
Minh Nguyễn
e7ba65caba
Merge pull request #1497 from mapbox/1ec5-info-menu
...
Attribute Mapbox and OpenStreetMap in-app
2015-05-11 00:27:43 -07:00
Minh Nguyễn
965bc41d43
Round zoom level for Map Feedback tool
...
The Map Feedback tool is still using mapbox.js, so it doesn’t support fractional zoom levels yet.
2015-05-10 23:34:47 -07:00
Minh Nguyễn
7da7f65579
Dismiss attribution popover on rotation
...
Constraints go invalid when rotating an iPad while the popover is visible and anchored to the ℹ️ .
2015-05-10 23:32:38 -07:00
Minh Nguyễn
005af44efb
Merge pull request #1498 from friedbunny/1497-feedback-url
...
Add long/lat/zoom to feedback URL
2015-05-10 23:22:39 -07:00
Jason Wray
fbafa15395
Add long/lat/zoom to feedback URL
2015-05-10 23:14:16 -07:00
Minh Nguyễn
4de7f89f47
Turned copyright notices into action buttons
2015-05-10 04:19:01 -07:00
Minh Nguyễn
965f90c449
Attribute Mapbox and OpenStreetMap in-app
...
ℹ️ now pops up an action sheet with explicit attribution and a direct link to the Map Feedback tool.
2015-05-10 03:53:24 -07:00
Leith Bade
703e0bc2ee
Ignore deactivate when no valid EGL display. Fixes #1435
...
Initialise NativeMapView's EGL variables before Map
Fix hang
Add check for double pause
Add test for double pause
2015-05-09 12:02:39 +10:00
Dane Springmeyer
768c259495
fix division by zero conditions
2015-05-08 15:19:41 -07:00
Justin R. Miller
5ef362bbc4
[publish ios-v0.2.23]
2015-05-08 14:06:00 -07:00
Justin R. Miller
a76e25c49c
bump podspec to 0.2.23
2015-05-08 14:05:36 -07:00
Brad Leege
da55c143a0
Merge pull request #1482 from mapbox/1481-flush-all-events
...
Send All Events At Flush
2015-05-08 15:33:56 -05:00
Brad Leege
08f1d4b511
#1481 - Changing events array to be created with +arrayWithArray
2015-05-08 15:24:19 -05:00
Brad Leege
2eef6b4412
#1481 - Refactoring to use iOS -copy and -removeAllObjects to get away from having to do potentially less stable index calculations
2015-05-08 15:02:32 -05:00
Brad Leege
9d0b67450d
#1481 - Replacing flushAt with eventQueue count of upper range limit
2015-05-08 14:53:39 -05:00
Minh Nguyễn
13a88c5dec
Merge pull request #1480 from mapbox/1ec5-metrics-keys
...
Rename settings keys
2015-05-08 12:06:51 -07:00
John Firebaugh
c2afa54dd7
Merge pull request #1446 from mapbox/1446-transform-to-nan
...
Prevent panning to NaN territory
2015-05-08 11:52:16 -07:00
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
Konstantin Käfer
24ea920810
ignore Transform changes with NaN parameters
2015-05-08 20:25:47 +02:00
Konstantin Käfer
f96580de61
catch NaN values from UIPinchGestureRecognizer
2015-05-08 20:25:43 +02:00
Konstantin Käfer
9014890d44
initialize TransformState helper variables correctly
2015-05-08 20:25:38 +02:00
John Firebaugh
1cf5af9c31
Merge remote-tracking branch 'origin/1369-alternate-fix'
2015-05-08 11:20:10 -07:00
John Firebaugh
499efc8fef
Merge pull request #1470 from mapbox/1470-cancelable-work-requests
...
Make WorkRequests cancelable
2015-05-08 11:18:45 -07:00
Brad Leege
21c419bd91
Merge pull request #1475 from mapbox/1474-ttl
...
Metrics Event TTL Fix
2015-05-08 10:36:25 -05: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
Konstantin Käfer
8ee40a544e
make WorkRequests cancelable
2015-05-08 16:43:18 +02:00
Konstantin Käfer
e20faf7a8d
add worker cancellation test (failing)
2015-05-08 16:43:18 +02:00