Commit Graph

7400 Commits

Author SHA1 Message Date
Thiago Marcos P. Santos
02e91428fd [core] Fix modernize-use-auto errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
cee3910f17 [core] Fix modernize-return-braced-init-list errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Alexander Shalamov
71efb24e2d Bump mapbox-base to 1.2.0 2020-03-23 11:33:06 -04:00
Thiago Marcos P. Santos
d15b9c1f9c [core] Fix performance-unnecessary-value-param errors
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Thiago Marcos P. Santos
991cfee7df [core] Fix performance-noexcept-move-constructor errors
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Kevin Li
3aa80ff407 Update map_snapshotter.cpp (#16308) 2020-03-16 08:03:30 +08:00
Juha Alanen
428f666adb [test][ios] Update iOS render test data setup script 2020-03-12 15:24:37 +02:00
Juha Alanen
cd320d8591 [glfw] Add OpenGL files only when the flag is enabled 2020-03-12 15:24:37 +02:00
Thiago Marcos P. Santos
deb1161366 [ios] Disable ccache 2020-03-09 17:25:37 -07:00
Thiago Marcos P. Santos
bb5c4e81c5 [build] Make curl for Android a vendor package
This will make it easier to add it as dependencies of different targets.
2020-03-09 19:57:10 +02:00
Alexander Shalamov
202b5a8ecc [core] Calculate size of an ambient cache without offline resources 2020-03-07 10:14:18 +02:00
Alexander Shalamov
039bc80411 [android] Update android snapshotter 2020-03-05 17:43:37 +02:00
Alexander Shalamov
d86eb878ce [glfw] Use simplified Snapshotter API 2020-03-05 17:43:37 +02:00
Alexander Shalamov
ca4356fd0f [glfw] Add snapshotter to glfw test app 2020-03-05 17:43:37 +02:00
Alexander Shalamov
deca818614 [core] Simplify MapSnapshotter constructor and add observer interface 2020-03-05 17:43:37 +02:00
Alexander Shalamov
174f40dee3 [core] Add Snapshotter::cancel method 2020-03-05 17:43:37 +02:00
Alexander Shalamov
1577a6b537 [core] Expose Style from Snapshotter 2020-03-05 17:43:37 +02:00
Alexander Shalamov
29eff4028d [core] Remove Actor from public Snapshotter API 2020-03-05 17:43:37 +02:00
Alexander Shalamov
09e69654fa [core] Refactor Snapshotter
Move renderer to a separate thread while keeping map on a client thread.
2020-03-05 17:43:37 +02:00
Thiago Marcos P. Santos
dc510e44c0 [default] Build a no-op number formatter for old ICUs
This has been causing too many build problems and it is
a major source of complains because of different ICU interfaces.
2020-03-05 01:58:34 +02:00
Kevin Li
fb0c7c93a0 [android] Add sort key jni binding for fill_layer and line_layer (#16256) 2020-03-04 19:57:07 +08:00
Kevin Li
efc605bed6 [android] Update toGeoJSON in android_conversion.hpp (#16243)
* [android] Update toGeoJSON in android_conversion.hpp

* Fix review comments

* Update android_conversion.hpp
2020-03-04 14:15:14 +08:00
Mikhail Pozdnyakov
25c8d0ecc8 [default] Fix possible crash at RunLoop::wake() 2020-03-02 10:32:20 +02:00
Mikhail Pozdnyakov
3bf9143079 Emit error message with URL details on load error 404 2020-02-28 12:52:26 +02:00
Mikhail Pozdnyakov
2b1bb1dc4a [core][offline] Offline download does not hang on 404 error 2020-02-28 12:52:26 +02:00
Kevin Li
e0c2b3e771 [android] Add jni binding for min and max pitch (#16236)
* [android] Add jni binding for min and max pitch

* Update CHANGELOG.md
2020-02-28 17:26:15 +08:00
Minh Nguyễn
668a453022 [ios] Restored support for iOS 9–11 by default 2020-02-28 10:07:34 +02:00
Minh Nguyễn
8212f94f07 [ios, macos] Redirect documentation to mapbox-gl-native-ios 2020-02-27 17:14:20 -08:00
Minh Nguyễn
206b9bde5e [ios, macos] Deleted iOS/macOS map SDK sources, resources, scripts 2020-02-27 17:14:20 -08:00
Minh Nguyễn
bd252e16a3 [ios, macos] Cleaned up iOS, macOS CMake configuration 2020-02-27 17:14:20 -08:00
Thiago Marcos P. Santos
427d785848 [build] Make csscolorparser and parsedate vendors
They have a different license from the rest of the code
and this will make it explicit. Also the script for generating
the license will dectect them correctly.
2020-02-27 18:19:31 +02:00
Juha Alanen
1ac1d9363c [build][ios] Move iOS test runners to a separate cmake file 2020-02-27 10:09:35 +02:00
Juha Alanen
b756ff8e14 [build][ios] Move iOS specific ccache scripts to platform directory 2020-02-27 10:09:35 +02:00
Juha Alanen
18e9ed1c0b [build] Build files related to OpenGL renderer only when the flag is enabled 2020-02-27 10:09:35 +02:00
Mikhail Pozdnyakov
ba4f5efa09 [core] OnlineFileSource is never accessed directly 2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
aad13f6a3f [core] FileSourceManager::getFileSource() returns PassRefPtr 2020-02-26 22:31:59 +02:00
Juha Alanen
9aefd2f2fa [glfw] Add option to test pitch bounds 2020-02-26 11:21:04 +02:00
Mikhail Pozdnyakov
7c48611f9e [core] Consolidate file source keys in the generic FileSource header
Thus we do not need to include specific headers to use `{set|get}Property`
API with key constants.
2020-02-25 23:15:47 +02:00
Mikhail Pozdnyakov
3c05bd984a [core] Fix offline region download freezing
Downloaded resources are put in the buffer and inserted in the database in batches.

Before this change, the buffer was flushed only at the network response callback
and thus it never got flushed if the last required resources were present locally
and did not initiate network requests -> it caused freezing.

Now the buffer is flushed every time the remaining resources container gets empty.
2020-02-25 23:15:47 +02:00
Kevin Li
43c1aac7e8 [android] add jni binding for source zoom delta (#16221)
* [android] and jni interface for source zoom delta

* handle nullopt in setter and getter

* Use jni::Integer
2020-02-24 18:47:16 +08:00
Thiago Marcos P. Santos
44f9a694c5 [qt] Fix compilation error
GCC complains about this variable being potentially not initialized.
2020-02-20 19:41:03 +03:00
Jordan Kiley
e27055ff21 Revert "[ios, macos] Include SKU token for offline requests (#16130)" (#16193)
* Revert "[ios, macos] Include SKU token for offline requests (#16130) (#16133)"

This reverts commit d85ce77deba12167f1c25a911ef81f44e35daa2a.

* [ios] Keep skipping docs for ios-release
2020-02-19 15:10:50 -08:00
Juha Alanen
cea87c9f2d [benchmark] Add iOS benchmark runner 2020-02-18 16:10:23 +02:00
Juha Alanen
a5ec862a2a [test-runner] Share common code between test runners
Also remove some unnecessary files.
2020-02-18 16:10:23 +02:00
Alexander Shalamov
96655276f8 [android] Don't construct weak sheduler in renderer's custructor
Android renderer creates mailbox that is owned by the scheduler that
is required by the mailbox itself. Construction should be split, so
that scheduler is fully constructed and it's weakPtr can be created.
2020-02-17 11:25:43 +02:00
Juha Alanen
bf8bde5029 [build] Bump minimum iOS version to 12.0 2020-02-14 12:01:52 +02:00
Juha Alanen
6d815401b1 [test-runner] Share common code between iOS test runners 2020-02-14 12:01:52 +02:00
Juha Alanen
632c5f9d4c [test] Add iOS unit test runner 2020-02-14 12:01:52 +02:00
Alexander Shalamov
89eab0530d [core] Set priorData from cache only if resource is useable
In cases when cached resource is useable, yet don't have an expiration
timestamp, we provided data to the requester from the cache and the same
data was returned once 304 response was received from the network.
2020-02-14 11:54:02 +02:00
Mikhail Pozdnyakov
3bd2d0e4d7 style::Style::getImage() returns optional<style::Image> 2020-02-11 14:34:46 +02:00