Commit Graph

9488 Commits

Author SHA1 Message Date
Tobrun
e706ede0b4 [android] - remove overlay SurfaceView examples (#7278) 2016-12-06 19:40:40 +01:00
Tobrun
077d685656 [android] - make rotation gesture easier to trigger (#7299) 2016-12-06 19:40:20 +01:00
Tobrun
bcf911ba8b [android] Fix javadoc for MapboxMap.updateMarker() (#7301) 2016-12-06 19:40:01 +01:00
Konstantin Käfer
467fa30f05 [android] use Identical Code Folding to reduce binary size 2016-12-06 14:58:38 +01:00
Tobrun
9a9e7978db [android] - Refactor dependencies, introduce focused components (#7189)
* [android] - refactor dependencies

* ignore tests
2016-12-06 13:46:49 +01:00
Minh Nguyễn
890b681b18 [ios, macos] Update changelogs (#7287)
* [ios, macos] Updated changelogs

* [ios, macos] Removed duplicate changeset entries
2016-12-05 16:05:20 -08:00
John Firebaugh
c8e34d581b [node] Update brew package name 2016-12-05 15:06:34 -08:00
John Firebaugh
385fbe6a07 [all] Upgrade to boost 1.62.0 2016-12-05 08:31:00 -08:00
Minh Nguyễn
3503c0e767 Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.4-master 2016-12-03 15:36:42 -08:00
Jesse Bounds
9eb7f88b2c [ios, macos] Update MGLStyle API documentation with warnings for dupes
This adds notes to the methods for adding sources and layers to warn
of the hazards of using duplicate instances or identifiers.
2016-12-02 14:21:05 -08:00
Jesse Bounds
179e9c610f [ios, macos] Consolidate tests of MGLStyle addSource in MGLStyleTests
This replaces the integration test of `addSource` when duplicate
identifiers are used in `MGLSourceTests` with a more direct unit test
in the style class's unit test file `MGLStyleTests`. Although tests of
the case where the same instance are actually integration tests where
the source instance itself throws, it is easier to test all of this
functionality in one place using the public facing MGLStyle API.
2016-12-02 14:21:05 -08:00
Jesse Bounds
1db0a96927 [ios, macos] Raise NSException if layer or source added more than once
When MGLSource and MGLLayer instances are added to the style, they lose
ownership of their std::unique_ptr<T> after it is moved to the mbgl
level. Subsequent attempts to add such instances result in a C++
exception.

This adds logic in the Darwin platform to raise a NSException if the
source and layer addToMapView methods are called more than once and the
pointer is invalid. In addition, the documentation in MGLStyle for
addSource: and addLayer: has been update to warn developers to avoid
adding the same instance twice and, for that matter, instances with the
same identifier.
2016-12-02 14:21:05 -08:00
Jesse Bounds
2db31be8bc [ios, macos] Rename MGLMapViewTests back to MGLStyleLayerTests 2016-12-02 13:03:05 -08:00
Ivo van Dongen
37026a14ff [ios, macos] handle duplicate source error 2016-12-02 11:39:16 -08:00
Ivo van Dongen
d44d1c8401 [ios, macos] renamed MGLStyleLayerTests to MGLMapViewTests 2016-12-02 11:28:34 -08:00
Ivo van Dongen
2c4e7ae70f [core] guard against duplicate source id’s 2016-12-02 11:25:30 -08:00
Minh Nguyễn
84038832e4 [test] Updated mapbox-gl-test-suite version
Followup to #7123.
2016-12-02 09:11:45 -08:00
Konstantin Käfer
5c88309264 [build] speedup Android packaging by not building unit tests 2016-12-02 12:18:08 +01:00
Ivo van Dongen
d904ba66ab [android] telemetry - horizontal accuracy 2016-12-02 12:23:29 +02:00
Konstantin Käfer
4a3081e071 [build] add permissions to write public metrics to BitriseUser 2016-12-02 10:49:12 +01:00
Jesse Bounds
8317a11a10 [ios] Update changlog for ios-v3.3.7 2016-12-01 17:02:12 -08:00
Jesse Bounds
fae3d80e2f Merge branch 'release-ios-v3.3.7' 2016-12-01 15:35:07 -08:00
Jesse Crocker
5dd71d3c30 [ios, macos] Make tap gesture recognizer fail if it doesn’t do anything (#7246)
* Make tap gesture recognizer fail if it doesn’t do anything.

* fix typo

* Use the right nullable

* update changelog

* Make single click gesture recognizer fail if it doesn’t select an annotation

* fix changelog typo

* Remove singleTapGestureRecognizer from public header
2016-12-01 11:50:20 -08:00
Tobrun
73fa7ea666 [android] - ignore unreliable tests (#7265) 2016-12-01 18:47:40 +01:00
Konstantin Käfer
8ab872eb65 [build] upgrade Android NDK to r13b 2016-12-01 18:32:48 +01:00
John Firebaugh
7d16824fda [core] Functions must have at least one stop
This is already enforced by the style validator in mapbox-gl-style-spec. Enforce it here too.
2016-12-01 09:00:06 -08:00
Jesse Bounds
b2c2d4ebc4 [ios, macos] Update style predicate documentation
Note the support of CONTAINS and the lack of support for case and
diacritic operator modifiers.
2016-12-01 08:57:41 -08:00
Jesse Bounds
7e9457214a [ios, macos] Add back support for CONTAINS operator
This reverts commit 6877e3efe7.
2016-12-01 08:57:41 -08:00
John Firebaugh
54c557d982 [core] Use indexed rendering everywhere 2016-12-01 08:57:11 -08:00
Cameron Mace
b1068b432e cherry-picked 7013 into master (#7247) 2016-12-01 08:48:25 -05:00
Jesse Bounds
dbb520662d [ios, android] Move der files to ios platform
.der files are used only by the iOS platform for SSL pinning. This
moves them out of the `platform/default/resources` directory and into
`platform/ios/resources`. The make configuration for Android is
updated so that it stops attempting to copy the files at all.
2016-11-30 16:19:22 -08:00
Jesse Bounds
e9504912dc [ios] Use new pinning cert for staging
This updates the cert for the staging environment. It also adjusts the
telem implementation to send along the horizontal accuracy for each
location event and removes the previous battery level gathering logic.
2016-11-30 16:19:22 -08:00
Jesse Bounds
37a087c675 [ios, macos] Avoid unsafe cast when removing style layers (#7227)
This updates the code generation for style layers to add a test to check
that the style object returned from mbgl can be safely cast into the
expected type so ownership can be returned to the caller when removing
layers.

This scenario was previously possible if a layer of type T was
added before a layer of type U but both layers shared the same
identifier. In that case, if the pointer to the second layer of type U
was used to remove a layer, a runtime exception would occur since mbgl
returns the layer with type T (the first one added).

Now, an exception will still occur if layers with the same
identifier are manipulated as described above but it is done as part of
a validation check for all public style layer methods at the Darwin
platform level. The NSException attempts to warn developers about using
and reusing style identifiers to avoid this issue in the first place.
2016-11-30 11:59:29 -08:00
Chris Loer
5f29c3ba26 [core] Full support for line breaking bidirectional text using ICU bidi functionality.
- Trim whitespace from labels before determining their max-width for alignment.
 - Fix crash on labels that contain lines with only a single character of whitespace.
2016-11-30 11:54:08 -08:00
Ivo van Dongen
d8cef78502 [ios, macos] handle duplicate source error 2016-11-30 19:35:29 +02:00
Ivo van Dongen
379bf08723 [ios, macos] renamed MGLStyleLayerTests to MGLMapViewTests 2016-11-30 19:35:29 +02:00
Ivo van Dongen
5e7de1c9c2 [android] test duplicate source id exception handling 2016-11-30 19:35:29 +02:00
Ivo van Dongen
60e451174f [core] guard against duplicate source id’s 2016-11-30 19:35:29 +02:00
Jesse Bounds
ba775404d8 [ios, macos] Add notes to APIs that rely on style and source ids (#6886)
Update documentation to make the implications of identifiers clearer.
2016-11-30 09:26:21 -08:00
Pablo Guardiola
13b7b3a92b [android] - add uithread annotation and regenerate classes (#7156) 2016-11-30 13:54:26 +01:00
Fredrik Karlsson
17db5210bf [ios, macos] rename style spec properties 2016-11-30 11:36:39 +01:00
Minh Nguyễn
4096544188 [ios, macos] Marked C array parameters as const
Fixes #7214.
2016-11-29 22:47:30 -08:00
Konstantin Käfer
7104a358f8 [build] trigger shader rebuild when build-shaders.js changed 2016-11-29 17:12:42 -08:00
Minh Nguyễn
336d48df48 [ios, macos] Fixed spurious offline storage test failure
Even if the expectation is immediately fulfilled, we still have to wait for it to be fulfilled, because the expectation only gets unregistered after waiting. The zombie expectation was fulfilling a stricter expectation in a test method.
2016-11-29 13:36:55 -08:00
Aki Koskinen
5e79077491 Always use a dot as a decimal point in string, independent of locale
std::to_string() potentially uses a decimal point character different
than a dot (.), depending on the environment's locale. But since this
generated string will be part of GLSL code, there needs to be a dot and
nothing else.
2016-11-29 16:54:28 -02:00
Jesse Bounds
d830c48e4a [ios, macos] Refcount view activations (#7208)
This adds a ref count to guard against calling activate after it has
already been called. This can happen when a layer is added during
certain map lifecycle methods like MapChangeWillStartRenderingFrame
that also triggers activation. This also protects against issues
related to a deactivation of the context happening in an inner scope
while an outer scope is still expecting to be able to use the context.
2016-11-29 08:56:59 -08:00
John Firebaugh
3d2d57cd30 [core] Assert valid range for color components 2016-11-29 06:52:24 -08:00
Tobrun
99c2bf2580 [android] - disable CI failing test (#7204) 2016-11-29 11:40:20 +01:00
Minh Nguyễn
83e134eb9f [macos] Added option to localize labels
Added a setting to macosapp to change all symbol layers in the current style to use the preferred language if available. If the setting is off, change all symbol layers to use local languages.
2016-11-28 15:45:44 -08:00
Minh Nguyễn
f611355912 [macos] Name custom style in toolbar
Display the custom style’s name in the Style toolbar button.
2016-11-28 15:45:44 -08:00