Justin R. Miller
44835707a2
update test app to use fake in-app settings
2015-05-12 13:53:54 -07:00
Justin R. Miller
1ad640f5b7
iOS metrics tests
2015-05-12 13:49:03 -07:00
Minh Nguyễn
476fec6b74
Merge pull request #1530 from mapbox/1ec5-metrics-assert
...
Corrected Settings.bundle assertion message
2015-05-12 13:46:58 -07:00
Minh Nguyễn
b88b917cd4
Acknowledge the existence of other Mapbox GL classes
2015-05-12 12:28:43 -07:00
Minh Nguyễn
576caf0855
Corrected Settings.bundle assertion message
...
It’s `-[MGLAccountManager setMapboxMetricsEnabledSettingShownInApp:]`. Also clarified when the setter has to be called.
2015-05-12 11:49:40 -07:00
John Firebaugh
4c89323f6d
Merge pull request #1527 from mapbox/travis-setup
...
break out setup.sh from run.sh, take two
2015-05-12 10:51:00 -07:00
Minh Nguyễn
310e26f45b
Merge pull request #1528 from mapbox/1516-getter
...
Adding Getter Method
2015-05-12 10:16:46 -07:00
Brad Leege
8548ab0346
#1516 - Adding public setter method to MGLAccountManager.h. Fixing example signal opt out in MBXAppDelegate.
2015-05-12 11:37:40 -05:00
Mike Morris
2b7d2c2319
source install.sh to export mason on PATH
2015-05-12 12:13:10 -04:00
Brad Leege
3391d8f6d8
Merge pull request #1520 from mapbox/1516-opt-out-checking
...
Explicit Opt Out Checking
2015-05-12 11:04:14 -05:00
Mike Morris
3034d9d704
Revert "Revert "Merge pull request #1429 from mapbox/travis-setup""
...
This reverts commit 3ccb0b5610 .
Conflicts:
.travis.yml
2015-05-12 11:51:46 -04:00
Brad Leege
87551c6d0e
#1516 - Renaming setShowsOptOutInApp to setMapboxMetricsEnabledSettingShownInApp for app consistency. Implementing wordsmith edits to NSAssert text. Removing technical debt.
2015-05-12 10:50:46 -05:00
Konstantin Käfer
1062121586
Merge pull request #1524 from mapbox/1524-build-render-on-travis
...
Build mbgl-render on Travis
2015-05-12 15:29:38 +02:00
Konstantin Käfer
fc74f8dcd5
Merge pull request #1484 from mapbox/fix-line-atlas-overflow
...
Fix potential integer overflow in line_atlas
2015-05-12 15:21:00 +02:00
Konstantin Käfer
f31b3d2ce5
build render binary
2015-05-12 15:15:05 +02:00
Konstantin Käfer
bb33493710
use boost_program_options from mason
2015-05-12 15:10:03 +02:00
Konstantin Käfer
e12c70337e
Merge pull request #1510 from mapbox/after-failure
...
Run correct after_failure script
2015-05-12 13:31:22 +02:00
John Firebaugh
57d78bd46a
Run correct after_failure script
2015-05-12 13:20:58 +02:00
John Firebaugh
bc7e2b9b94
Set correct strata for background render
...
Fixes #1478
2015-05-12 11:15:42 +02:00
Konstantin Käfer
448ffac2fa
Merge pull request #1513 from mapbox/1478-vanishing-layers
...
Set correct strata for background render
2015-05-12 11:15:17 +02:00
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