Commit Graph

14981 Commits

Author SHA1 Message Date
Juha Alanen
9e262ee55f [core] Add feature state support to isFeatureConstant expression 2019-09-18 14:29:15 +03:00
Juha Alanen
75d18e32fc [core] Add feature state support to expression 2019-09-18 14:29:15 +03:00
Juha Alanen
e51fafd4eb [core] Add new types for feature states 2019-09-18 14:29:15 +03:00
Juha Alanen
8795bd6d55 [build] Update mapbox-base version 2019-09-18 14:29:15 +03:00
Guillaume
77420b98c8 [android] fix: MapSnapshotter.withApiBaseUri function 2019-09-18 09:19:23 +02:00
Julian Rex
fc7d2938dd [ios] Fixed test name (since validAccessToken has been removed in another PR). Added some more asserts. (#15643) 2019-09-17 16:18:14 -04:00
Julian Rex
634c95c8d9 [ios, macos] Ensure potential variables that might be nil have a fallback. (#15645)
* [ios] Ensure potential variables that might be nil have a fallback.

* [ios, macos] (potentially) free the returned arch info.
2019-09-17 16:13:50 -04:00
Julian Rex
3dbc44404f [ios, macos] Tail work from 15385 (#15647)
* [ios] Tweak iosapp headers.

* [ios] Revert bundle identifier change.

* [ios, macos] Remove parameter not referenced.
2019-09-17 15:52:18 -04:00
zmiao
0a219d182c [Core] Fix wrong maxzoom setting of tileSet when using URL source (#15581)
* [core] Take max/min zoom option from style if they are set

* [core] std::move input value

* [Core] Add changelogs

* [Core] Fix clang-format reported error

* [Core] fix clang-tidy reported error
2019-09-17 18:00:37 +03:00
Łukasz Paczos
4f91073414 [android] - ignore location tracking mode based animations when the camera is transitioning 2019-09-17 15:03:35 +02:00
Thiago Marcos P. Santos
5254876b39 [build] Remove Qt builds from legacy buildsystem 2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
5d8dbefdb1 [build] Do not run clang-tidy on the legacy workflow
Already running on the new build.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
f6bb784439 [build] CI config
Run it in parallel with the old build system. This will offer
a migration path and make sure we keep everything working at
the cost of running many CI bots. New stuff is prefixed with "next".

Appveyor already got migrated to the next buildsystem.

After merging, we will follow-up removing duplicated core bots.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
ef1a7aad70 [build] Add simple instructions 2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
eb02f8e96d [build] Rewrite our CMake buildsystem
- Try as much as possible not to use explicit compiler flags,
  relying on CMake to do the job in a portable away.
- Build mbgl-core as a single static library and leverage lto as
  much as possible.
- Support a MinSizRel build for other platforms.
- Make GLFW and Node a client of mbgl-core public interface.
- Same for the offline tool and static render tool.
- Use only target settings (do not pollute the global scope)
- Confine core code in a single file.
- Confine platform code inside a single include (exception being Qt
  that needs AUTOMOC before adding the targets)
- Align the Android build with the Android toolchain file.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
f28d14c7c5 [build] Install missing node deps
Needed to run the query tests.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
a10254f1ec [build] Fix expression-test build 2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
f604280812 [build] Do not override new/delete on render-test for sanitize builds
Sanitizers will also do the same and it will conflict.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
83a019d021 [build] Fix clang format and tidy checks 2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
1304502f81 [build] Fix iOS nits
- Hardcoded the bundle identifier on Info.plist, CMake is not
  picking it up.
- Do not use installed headers when building the framework.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
c507cc4c8a [build] Disable a test that requires a debug build
Overdraw debug layer is only available on debug builds.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
3cc026dc16 [build] Remove Qt test dependency on core
This test is testing the Qt bindings and should only
link with QMapboxGL.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
5cf2c7eb50 [build] Use the system CURL on Linux
And we don't need to use Mason anymore.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
a849b38390 [build] Mark explicitly visible symbols
Easier to maintain than a linker script. We build
everything with visibility hidden by default.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
79670593de [build] Make test/util.hpp a public interface
We will build the tests as a library and platforms will
provide the test runner.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
d424850257 [build] Make the default styles part of GL Native
The reason is applications using it, like GLFW, don't need
to depend on code inside platform/default.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
8ee6cfa8fb [build] Cosmetics on vendor packages
- Add include guards on all the files
- Add a vendor package for sqlite and gtest
- Use relative paths to all the files
2019-09-17 12:28:55 +03:00
Alexander Shalamov
e3421e042f [core] Fix for FormatSectionOverrides::hasOverride 2019-09-17 11:16:42 +03:00
Julian Rex
a99240a54f [ios] Add support for running tests (that require an access token) individually. (#15629) 2019-09-16 21:30:54 -04:00
Nadia Barbosa
8331b7adfe [ios, macos] Introduce custom drawing overlays for MGLMapSnapshotter 2019-09-16 12:55:36 -07:00
Julian Rex
40b0cb74cb [ios] Update change log. (#15626) 2019-09-16 13:32:35 -04:00
Jordan Kiley
e5ae7187d9 [ios] Small fixes to the Swift Playground (#15603) 2019-09-16 10:22:42 -07:00
Julian Rex
99492ff5e7 [ios] Add custom XCTestSuite to check for "pending" tests and tests requiring a valid access token. (#15477) 2019-09-13 23:20:17 -04:00
Langston Smith
7db7d64270 [android] Adjusted 8.4.0-alpha.2 changelog to fix since section (#15610) 2019-09-13 08:50:13 -07:00
Mikhail Pozdnyakov
048e2c8e8e [ios][android] Add a change log entry 2019-09-13 13:45:48 +03:00
Mikhail Pozdnyakov
0d9e4afd20 [core] Coalesce buckets updates from several tiles 2019-09-13 13:45:48 +03:00
Mikhail Pozdnyakov
fc741cdd21 [core] Initiate new placement only when a new bucket appeares 2019-09-13 13:45:48 +03:00
Mikhail Pozdnyakov
796cc3a4d6 [core] Bitmask operations for enums 2019-09-13 13:45:48 +03:00
Mikhail Pozdnyakov
f9c15f708e [core] Fix placement for updated buckets
Buckets update initiates new placement, so that
newly added symbols are placed and shown immediately.
2019-09-13 13:45:48 +03:00
Peng Liu
69bc5244ea [android] Fix MapSnapshotter regression and add activity sanity tests (#15580)
* [android] Include more generated sanity tests for Android test app.

* [android] Add null check for camera position padding.

* [android] Skip map load tests if no mapView is found, include more generated sanity tests for Android test app.

* [android] Set mapboxMap to null during the mapView destroy process, fix failed sanity tests.

* [android] Add file source related activities to the sanity test exclude list.

* [android] Fixes according to @tobrun's review.

* [android] Add more activities to exclude list, keep MapSnapshotterActivity for regression test.
2019-09-12 18:17:45 +03:00
Peng Liu
1b35d39cc1 [android] Fix debugTree path for generating JacocoReport. (#15620) 2019-09-12 15:46:46 +03:00
Ming Li
14d23a3a4b [core] Fix compilation failure caused by compilation warning for gcc 8
When compiling with gcc 8.3 under linux, I've got compiler error caused
by the following warning:
../src/mbgl/util/chrono.cpp:26:26: error: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Werror=format-truncation=]
I need to slightly increase the buffer size to get rid of the warning.
2019-09-12 12:33:42 +03:00
Peng Liu
f0d3d459b8 [android] Keep CompassView's state up to date when compass is enabled. (#15606)
* [android] Keep CompassView's state up to date when compass is enabled.

* [android] Add unit test for updating compass view.

* [android] Add change log.
2019-09-12 11:59:56 +03:00
Rebecca Rice
53e56945eb [node] release v4.3.0 (#15428) 2019-09-11 21:48:34 -04:00
Mikhail Pozdnyakov
a84a3f05c9 [ios][android] Add change log entries 2019-09-12 00:40:08 +03:00
Mikhail Pozdnyakov
6899337f86 [core] Add Map.Issue15342 unit test
The newly added test checks the fix for constant repaint,
caused by `RenderSource::hasFadingTiles()` returning `true` all the time.
2019-09-12 00:40:08 +03:00
Mikhail Pozdnyakov
8af78ddbb9 [core] Update MapObserver::onDidFinishRenderingFrame() API 2019-09-12 00:40:08 +03:00
Mikhail Pozdnyakov
03dadb1cea [core] Set fading tiles flag at TilePyramid::updateFadingTiles() 2019-09-12 00:40:08 +03:00
Julian Rex
3f1d7ede66 [ios] Update podspecs (#15611) 2019-09-11 17:11:44 -04:00
Langston Smith
9a1e8d3ebb [android] updated android changelog for 8.4.0-alpha.2 release (#15609) 2019-09-11 10:15:46 -07:00