Commit Graph

5812 Commits

Author SHA1 Message Date
John Firebaugh
76b922453a Set correct strata for background render
Fixes #1478
2015-05-12 10:50:36 +02:00
Minh Nguyễn
54a703bcb2 Consolidated logic for pausing/resuming MGLMapboxEvents
`MGLMapboxEvents` automatically recreates its location manager when the host app is reauthorized for Location Services. Added some redundancy to ensure that there is no location manager when either Location Services or Mapbox Metrics is off.
2015-05-12 01:38:04 -07:00
Minh Nguyễn
58d695f6d3 Respond to opt-out setting change immediately
As soon as the user returns to the host app after changing the opt-out preference in Settings, `MGLMapboxEvents` responds by pausing or resuming. Also moved the IB designables agent check to occur only once, at launch, since the process name is not expected to change mid-session.
2015-05-12 01:38:04 -07:00
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
Brad Leege
48e21ae6e9 #1516 - Adding explicit checks for developer implementation of user Opt Out functionality 2015-05-11 23:31:22 -05:00
Justin R. Miller
b67ce2b09a Merge pull request #1508 from mapbox/1503-add-changelog
refs #1503: add changelog to appledoc
2015-05-11 15:31:37 -07:00
Justin R. Miller
93a5b71af9 Merge pull request #1507 from mapbox/1502-fix-appledoc
pin to appledoc 2.2v963
2015-05-11 15:31:11 -07:00
Justin R. Miller
0664c1ed9d Merge pull request #1505 from mapbox/they-took-our-jobs
bring back $JOBS for ios packaging
2015-05-11 15:30:36 -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
John Firebaugh
ad5450173e Use ios-b1 branch of styles 2015-05-11 11:17:25 -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
b7b532ce28 manage atlas textures with unique_ptrs 2015-05-11 11:28:11 +02: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
Dane Springmeyer
04c73e5ae1 fix integer overflow in line_atlas 2015-05-08 14:52:33 -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