Commit Graph

4189 Commits

Author SHA1 Message Date
Brad Leege
d44450ac7b #1659 - Adding tile stream certificate and ssl pin check for test server. 2015-05-28 15:51:50 -07:00
John Firebaugh
6c166b564e Remove boost install instructions; now installed via mason 2015-05-28 11:23:36 -07:00
Mike Morris
1a3e7bfefe added link with clang-3.5+ linux install 2015-05-28 11:20:48 -07:00
AJ Ashton
6eb6e2d1a8 Linux build instruction updates
[skip ci]
2015-05-28 11:20:48 -07:00
Thiago Marcos P. Santos
a96a251de9 Merge pull request #1632 from mapbox/1632-handle_currupt_data
Corrupt data not handled properly
2015-05-28 10:15:51 +03:00
Thiago Marcos P. Santos
379d7830d9 Add tests for handling corrupted data
The MockFileSource will insert garbage on the reply and report as
a request done successfully. The network stack cannot detect this
kind of errors but the consumer should report it like we do for
network problems.
2015-05-28 09:43:56 +03:00
Thiago Marcos P. Santos
f8cc50683a Notify tile parsing errors
The tile parsing is done in a worker thread and if it fails,
we set the tile state to "obsolete" and set an error message.

When the completion callback is fired, we check for the error
message and if it is set, we emit the error signal.

The trick here is the signal cannot be emitted directly from
the worker thread because that would violate data ownership rules.
2015-05-28 09:33:08 +03:00
Thiago Marcos P. Santos
48875d8d6c Notify glyph parsing errors
Emit a signal when the glyphs are not parsed correctly.
2015-05-28 09:33:08 +03:00
Thiago Marcos P. Santos
4819379020 Notify sprite parsing errors
Emit a signal when the JSON or the sprite image was not
parsed correctly.
2015-05-28 09:33:08 +03:00
Minh Nguyễn
9dd8d26729 Merge pull request #1653 from mapbox/1ec5-init-unfail
Make init methods unfailable
2015-05-27 13:15:03 -07:00
Minh Nguyễn
86dd0e99bc Defailablize init methods
If an OpenGL context couldn’t be created, there’s just no point to soldiering on. Things are going to fall apart pretty quickly anyways. Assert and be done with it.
2015-05-27 12:51:30 -07:00
Minh Nguyễn
ceef4d3841 Merge pull request #1652 from mapbox/1ec5-init-nil
Return nil upon failure to initialize
2015-05-27 12:48:08 -07:00
Minh Nguyễn
a2986b2019 Return nil upon failure to initialize 2015-05-27 12:36:52 -07:00
Justin R. Miller
2ce4ae3047 [publish ios-v0.3.2] 2015-05-26 21:23:16 -07:00
Justin R. Miller
8248fca38b bump podspec to 0.3.2 2015-05-26 21:22:40 -07:00
Brad Leege
d0864d719b #1641 - Changing version to a static constant instead of a property 2015-05-26 14:24:02 -07:00
Brad Leege
ad0a2af6b5 #1641 - Adding version and instance to Turnstile event and keeping them DRY for general events processing 2015-05-26 13:50:01 -07:00
Konstantin Käfer
f4707f72e0 Replace mbgl::util::make_unique<> with std::make_unique<> 2015-05-26 17:57:38 +02:00
Konstantin Käfer
fdf6026e62 rename reachability on OS X as well 2015-05-26 15:10:18 +02:00
John Firebaugh
87b1da7611 DefaultFileSource has responsibility for handling mapbox:// URLs 2015-05-26 12:14:10 +02:00
Konstantin Käfer
f11a9f8fd9 prefix Reachability with "MGL" to avoid linking conflicts and app store rejections 2015-05-26 11:13:08 +02:00
Konstantin Käfer
ba3a6ea2b0 update Reachability with latest version 2015-05-26 11:08:31 +02:00
Minh Nguyễn
343941d24c Merge pull request #1618 from mapbox/1ec5-utility
Pull self-less utility methods out of MGLMapView into functions
2015-05-22 09:53:56 -07:00
Thiago Marcos P. Santos
a20b89e4ff Merge pull request #1627 from mapbox/hide_logs
Add check for log messages on ResourceLoader tests
2015-05-22 18:00:07 +03:00
Thiago Marcos P. Santos
733539e36a Add check for log messages on ResourceLoader tests
This will make the tests less verbose and at the same
time make sure we are logging properly.
2015-05-22 17:24:38 +03:00
Thiago Marcos P. Santos
eaf1c24cdc Do not call abandon texture if there is no texture
Check if the texture was created before abandoning on SpriteAtlas
destructor. Linux driver was fine with that, but was crashing on Mac.
2015-05-22 15:21:39 +03:00
Konstantin Käfer
3cf76ce907 split up glyph_store.cpp into multiple files 2015-05-22 12:30:18 +02:00
Thiago Marcos P. Santos
8678d5034a Merge pull request #1588 from mapbox/1565-failed_requests
Notify renderStill() of request failures
2015-05-22 10:55:46 +03:00
Thiago Marcos P. Santos
6624dbb225 Add ResourceLoader unit tests
This first test will simulate a request failure on every resource
directly or indirectly loaded by the ResourceLoader. The idea is
to verify whenever we are failing gracefully or not.
2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
6ef6591a52 Add MockFileSource and MockView for testing the ResourceLoader
- MockFileSource
  Will load pre-defined resources from the filesystem. It supports
  passing a string, that when it matches an URL, will simulate a failure.

- MockView
  It is just a no-op to not get in the way when testing
  resource loading.

Few more additions:

- style.json
  Specially crafted style that will look always for the same tile,
  glyph range, etc at the "test/fixtures/resources/" path. No matter
  where you look (or at what zoom), you always get the same stuff.

- vector.pbf
  This taken from a part of Taipei that will request several glyph
  ranges.
2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
ee9b172152 Notify failures when loading glyphs 2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
ac64bef87f Notify failures when loading tiles 2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
7274d2e195 Notify failures when loading the sprite JSON and image 2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
90fd06762c Notify failures when loading the source JSON 2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
da81211fea Add callback for error notifications on renderStill()
The callback will be called when any of the resources requested
from the network failed to load.

There is not recovery implemented yet, so the closest thing to
reseting the Map object and reloading all the resources would
be setting a new style.
2015-05-22 10:44:18 +03:00
John Firebaugh
b304b20073 Add Thread tests; get argument transfer working for all cases 2015-05-21 19:57:28 -07:00
John Firebaugh
d8274639a8 Android NDK r10e 2015-05-21 18:53:40 -07:00
Minh Nguyễn
0689ad693e Merge pull request #1561 from 1ec5-style-id-1500
mapID → styleID
2015-05-21 15:28:27 -07:00
Minh Nguyễn
7fea85a429 Pulled self-less utility methods out into functions
Also include the name of the requested resource when asserting because one can’t be found.
2015-05-21 15:19:08 -07:00
Minh Nguyễn
eb146c0431 Merge pull request #1617 from friedbunny/ios-tests-phablet-support
Add iOS tests support for all screen sizes
2015-05-21 15:13:16 -07:00
Jason Wray
a898ec02b0 Change LaunchScreen text to © because unicode is awesome 2015-05-21 15:10:54 -07:00
Jason Wray
9c309808bd Add iOS test project launch images for older devices, too 2015-05-21 14:59:43 -07:00
Jason Wray
ddc8d63730 Add iOS tests support for iPhone 6/6+ screen sizes 2015-05-21 14:34:04 -07:00
Minh Nguyễn
a2a63301ec Merge pull request #1615 from mapbox/1ec5-plist-order
Fixed account type setting; reworded IB designable message
2015-05-21 14:12:25 -07:00
Minh Nguyễn
2200c51a33 Removed unavailable method implementation
This class method is marked unavailable in MGLAccountManager.h, so this code can never be reached.
2015-05-21 13:29:46 -07:00
Minh Nguyễn
93f92b7805 Rewrote IB designable message
IB designables inside frameworks have no access whatsoever to the host app’s bundle (especially if the host app lacks any designables of its own). So it has no way of knowing whether the access token is set in Info.plist. We could continue to check whether it was set programmatically, but we’d still have no way of knowing whether the host app has a Settings bundle, the other prerequisite for displaying Mapbox maps. Therefore, this change removes the Mapbox logo from the designable and displays a reworded reminder unconditionally. It now displays the URL of the “First steps with Mapbox GL for iOS” guide. I kept Mapbox blue in the designable, but as a border, so you can easily tell where the view ends (a major usability problem for custom views in IB).
2015-05-21 10:10:35 -07:00
Minh Nguyễn
e74997e2c1 Clarified IB designable message
Access tokens are only required for showing Mapbox-hosted maps.
2015-05-21 08:53:40 -07:00
Minh Nguyễn
0c783141f6 Merge pull request #1614 from friedbunny/update-tests-for-token-changes
Update iOS tests for access token changes
2015-05-21 07:13:50 -07:00
Jason Wray
dfd6ff00a2 Update tests for access token changes 2015-05-21 03:13:55 -07:00
Minh Nguyễn
a91b1d73e2 Merge pull request #1611 from friedbunny/1519-actionsheet-metrics-squash
[squash] Add action sheet shortcut to Settings.app metrics opt-out
2015-05-21 01:55:17 -07:00