Commit Graph

7032 Commits

Author SHA1 Message Date
John Firebaugh
9cd749b55a Update test suite 2015-05-13 18:51:25 -07:00
Konstantin Käfer
83484dc849 move result deployment to after_failure script 2015-05-13 17:19:53 -07:00
Konstantin Käfer
37a34d4287 update test suite and fail Travis when comparisons fail 2015-05-13 17:19:53 -07:00
Minh Nguyễn
164ff72297 Fall back on MGLAccountManager access token
Makes IB designables aware of access tokens set via Info.plist.
2015-05-13 16:33:40 -07:00
Minh Nguyễn
cbb7112e8c Set up MGLAccountManager without any prodding
`MGLAccountManager` is now guaranteed to initialize without the code ever making any mention of it. It also is guaranteed to be set up before `MGLMapboxMetrics` but will definitely cause `MGLMapboxMetrics` to be set up on the main thread if the access token is set in Info.plist.
2015-05-13 16:08:40 -07:00
Minh Nguyễn
2529baa62b Grab access token and other app-wide data from Info.plist
That way there’s no ambiguity about when you should call things like `+[MGLAccountManager setMapboxMetricsEnabledSettingShownInApp:]`. In fact, that method is now deprecated because it’s so easy to call in the wrong place.

Fixes #1535.
2015-05-13 15:33:28 -07:00
John Firebaugh
4db34bd9ef Don't do things that set -e in Travis's shell
Sourcing files that set flags bleed into Travis' wrapper script, which
messes with their workflow, e.g. preventing after_failure scripts from
triggering.

These changes fix that:

* Move exported variables from install.sh to setup.sh, so install.sh
  doesn't have to be sourced.
* Source setup.sh from run.sh, rather than directly from .travis.yml.

In addition, as a good practice, remove `set -e` etc. from setup.sh,
and add a comment not to add them back. It's the sourcing script's
responsibility to set these flags.
2015-05-13 15:21:56 -07:00
John Firebaugh
b334b7ee4e Remove unnecessary use of shared_from_this()
If the request is cancelled, the response callback won't be called, and
~Source ensures that the request is cancelled. So it's safe to bind
`this` in the lambda.
2015-05-13 13:57:32 -07:00
John Firebaugh
e6eb6c7fe4 Use uv::async 2015-05-13 13:54:16 -07:00
John Firebaugh
386be7c0fa Remove unused
There are no longer any requests made that don't have a run loop to
dispatch back to.
2015-05-13 13:54:16 -07:00
Justin R. Miller
059d42c8cb [publish ios-v0.2.25] 2015-05-13 13:03:33 -07:00
Justin R. Miller
625f644180 bump podspec to 0.2.25 2015-05-13 13:02:36 -07:00
Mike Morris
0117921017 Merge pull request #118 from mapbox/separate-threads
separate threads
2015-05-13 14:47:58 -04:00
Konstantin Käfer
ac1dcecef6 Merge pull request #1532 from mapbox/1465-text_collision
Calculate text collision correctly
2015-05-13 11:29:32 -07:00
Mike Morris
40ad3501a7 Merge pull request #119 from mapbox/travis-1339
update travis script
2015-05-13 13:46:01 -04:00
Justin R. Miller
1ae3b1d122 Merge pull request #1547 from mapbox/1ec5-ib-nil
Return nil for IB designables agent
2015-05-13 10:28:09 -07:00
Mike Morris
99b37c64f9 compile OS X with --std=c++1y
because Travis uses Apple LLVM 6.0 and full c++14 support landed in 6.1
https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/WhatsNewXcode.pdf
2015-05-13 12:58:34 -04:00
Mike Morris
1b9f98440a ignore GCC diagnostics for node.h 2015-05-13 12:58:34 -04:00
Mike Morris
1eeb7b65e9 update travis script for https://github.com/mapbox/mapbox-gl-native/pull/1339
refactor mbgl travis scripts

source travis_helper.sh, run setup.sh

pushd/popd

sudo false

travis matrix with c++14 support?

drop setup_mesa.sh

update binding.gyp

language: c

drop thread_object, add async_queue

fix async_queue.hpp includes

std::make_unique

pip install awscli
2015-05-13 12:58:04 -04:00
Justin R. Miller
1d38b63640 Merge pull request #1547 from mapbox/1ec5-ib-nil
Return nil for IB designables agent
2015-05-13 09:03:41 -07:00
Minh Nguyễn
9a404a3088 Return nil for IB designables agent
In Objective-C, the return value for a non-void method is the receiver by default. Hello NeXTSTEP.
2015-05-13 07:53:32 -07:00
Konstantin Käfer
f4221dcdd2 Merge pull request #1523 from mapbox/1523-fix-still-image-rendering
Still image rendering doesn't wait until all tiles are parsed
2015-05-13 11:44:00 +02:00
Konstantin Käfer
e274959753 abort rendering early when we don't need to
when rendering still images, we don't need to render until everything is completely loaded
2015-05-13 10:39:22 +02:00
Konstantin Käfer
3ec48b1030 allow passing --debug to view tile boundaries in mbgl-render 2015-05-13 10:39:22 +02:00
Konstantin Käfer
42b626ea1e Merge pull request #1532 from mapbox/1465-text_collision
Calculate text collision correctly
2015-05-13 10:38:43 +02:00
Thiago Marcos P. Santos
3b92725de1 Stop processing SymbolBuckets at the first incomplete bucket
In order to calculate the collision correctly, the layer ordering
matters. Because of that, when we find the first incomplete symbol
bucket, we stop processing any furter SymbolBucket.

The side effect of this change is, if the first SymbolBucket is the
last to receive its resources, we won't see any label at all on
the screen until the last moment, when everything will be draw at
once.
2015-05-13 09:58:29 +02:00
Thiago Marcos P. Santos
af63b4980d Move the Collision object from TileParser to VectorTileData
We keep the Collision object alive longer because we need it
for the SymbolBuckets yet to be created in case more data
resources arrive. When the tile is no longer needed or if it
is completely parsed or obsolete (i.e. in a immutable state)
we throw the Collision object away.
2015-05-13 09:58:29 +02:00
Thiago Marcos P. Santos
41d619771e Make the state attribute private
Also add a virtual setState() method to give subclasses a chance
to intercept the change of state. This will be used by VectorTileData
to release resources when the TileData becomes immutable.
2015-05-13 09:58:19 +02:00
Konstantin Käfer
40b604448f add BinPack test 2015-05-12 20:46:56 -07:00
Konstantin Käfer
8dd6da5b5e don't implicitly cast to bool since this will make comparisons fails 2015-05-12 20:46:56 -07:00
karenzshea
76b47e801e add mobile badge 2015-05-12 20:44:31 -07:00
Mike Morris
a65c90fdcb compile OS X with --std=c++1y
because Travis uses Apple LLVM 6.0 and full c++14 support landed in 6.1
2015-05-12 20:43:01 -07:00
Justin R. Miller
7c14d8c8bf [publish ios-v0.2.24] 2015-05-12 18:54:11 -07:00
Justin R. Miller
bc0b783b59 bump podspec to 0.2.24 2015-05-12 18:53:48 -07:00
Justin R. Miller
6519d23611 Merge pull request #1491 from mapbox/1ec5-metrics-opt-way-out
refactor metrics system to immediately jettison data & tracking when users opt out
2015-05-12 18:48:10 -07:00
Justin R. Miller
13405479b7 Merge pull request #1517 from mapbox/metrics-tests
refs #1491: iOS metrics testing
2015-05-12 18:45:45 -07:00
Minh Nguyễn
523239c0e6 Merge pull request #1530 from mapbox/1ec5-metrics-assert
Corrected Settings.bundle assertion message
2015-05-12 18:45:30 -07:00
Minh Nguyễn
f140733414 Merge pull request #1528 from mapbox/1516-getter
Adding Getter Method
2015-05-12 18:45:11 -07:00
Brad Leege
0a1e89a9ca Merge pull request #1520 from mapbox/1516-opt-out-checking
Explicit Opt Out Checking
2015-05-12 18:44:49 -07:00
Justin R. Miller
a47f749fe4 Merge pull request #1491 from mapbox/1ec5-metrics-opt-way-out
refactor metrics system to immediately jettison data & tracking when users opt out
2015-05-12 18:36:59 -07:00
Justin R. Miller
190e911209 fix dispatch-thread pattern
1. Always bail early if in IB.
 2. Always run on main thread if not already.
 3. THEN dispatch_once to create the static instance.
2015-05-12 18:23:59 -07:00
Justin R. Miller
1c8d3c5e42 patch up test project 2015-05-12 17:14:29 -07:00
Justin R. Miller
efc4bb4ef6 add header docs for new MGLAccountManager; reorg 2015-05-12 16:44:26 -07:00
John Firebaugh
606e2c7383 Remove currently unsupported styles from defaultStyles 2015-05-12 16:42:26 -07:00
Justin R. Miller
18b96ec4fd fix spacing, ordering, imports 2015-05-12 16:33:32 -07:00
Minh Nguyễn
7ed31065ed Cleaned up in-app opt-out property
Renamed the property to be consistent with the public class methods. Also removed a spurious #import of a .m file.
2015-05-12 16:16:48 -07:00
Minh Nguyễn
9850488253 Merge branch '1ec5-metrics-determinism' into 1ec5-metrics-opt-way-out 2015-05-12 16:12:25 -07:00
Minh Nguyễn
b1992a4516 Merge branch 'master' into 1ec5-metrics-opt-way-out 2015-05-12 16:09:10 -07:00
Minh Nguyễn
afbb9c2717 Enable Metrics by default default default
Enable Mapbox Metrics by default when Settings.bundle is absent, but allow Settings.bundle to override the default. Don’t register defaults for non-Mapbox preferences. The two-phase registration ensures that the defaults don’t default to unexpected values, yet gives the developer a chance to call `+[MGLAccountManager mapboxMetricsEnabledSettingShownInApp]` before the hard assertion.

Fixes #1518.
2015-05-12 15:26:07 -07:00
Justin R. Miller
50d7add6b0 Merge pull request #1517 from mapbox/metrics-tests
refs #1491: iOS metrics testing
2015-05-12 13:54:39 -07:00