Commit Graph

16768 Commits

Author SHA1 Message Date
Nadia Barbosa
309e226f74 Introduce limited axis scrolling (#108)
MGLUserScrollingMode -> MGLPanScrollingMode

Add changelog entry

Remove NSLog
2020-01-10 10:04:07 -08:00
Juha Alanen
86a3605349 [build][android] Fix CI bot that validates downstream API breakage 2020-01-10 17:19:30 +02:00
Juha Alanen
94df7ffc2d [build] Run Android unit test on Firebase 2020-01-10 17:19:30 +02:00
Juha Alanen
c7c441167d [test] Increase the threshold for Map.Offline test on Android 2020-01-10 17:19:30 +02:00
Juha Alanen
d3b5f06c8e [test] Skip number-format expression tests on Android 2020-01-10 17:19:30 +02:00
Juha Alanen
f4385a11d2 [android] Use stub HTTP file source for test runners 2020-01-10 17:19:30 +02:00
Juha Alanen
0b3942572e [test] Run unit tests as NativeActivity application on Android 2020-01-10 17:19:30 +02:00
Juha Alanen
f24e4ca068 [android] Fix a RunLoop bug where tasks are run only once
Do not remove tasks from the RunLoop in processRunnables(). Otherwise
the task is run only once.
2020-01-10 17:19:30 +02:00
Jordan Kiley
60a4b3eda3 [ios] Add native_apple_interface to ios.cmake (#16103)
* [ios] Add native_apple_interface to ios.cmake

* [ios] Use Xcode for next-macos-xcode11-release
2020-01-09 12:41:14 -08:00
Peng Liu
7c9a8fc556 Add getVisibleCoordinateBounds method. (#109)
* Update visible region constructor doc.

* Add getVisibleCoordinateBounds method.

* Fix LatLngBounds#contains method, update to use Map::latLngBoundsForCameraUnwrapped(const CameraOptions& camera) on native side.

* Revert changes in LatLngBounds#contains.
2020-01-09 19:38:29 +02:00
Tobrun
6470565b66 [docs] update changelog for v8.6.1 patch release (#137) 2020-01-09 17:22:54 +01:00
Langston Smith
5284d51cad adjusted snapshot section of readme (#125) 2020-01-09 07:51:52 -08:00
tobrun
52edd9b43b [android] add CI bot that validates downstream API breakage 2020-01-09 16:09:51 +01:00
Mikhail Pozdnyakov
3ea459233a [core] Fix GeoJSONVTData ownership and life cycle
Before this change, the `GeoJSONVTData` instance was retained at the scheduled
lambda, which run on the worker thread represented by the `GeoJSONVTData::scheduler`
class member:

```
        std::weak_ptr<GeoJSONVTData> weak = shared_from_this();
        scheduler->scheduleAndReplyValue(
            [id, weak, this]() -> TileFeatures {
                if (auto self = weak.lock()) {
                    return impl.getTile(id.z, id.x, id.y).features;
                }
                return {};
            },
            fn);
```

It caused program termination in case `self` turned to be the last reference to `this`,
as the `std::thread` destructor was called from the thread it represented.

Now, only the `GeoJSONVTData::impl` class member is retained.
2020-01-09 16:52:13 +02:00
Tobrun
ca64ba520d [deps] update mapbox-gestures-android to 0.6.0 and mapbox-java to 5.0.0 (#136) 2020-01-09 15:23:54 +01:00
Peng Liu
236afc0395 [android][core] Add Map::latLngBoundsForCameraUnwrapped and jni binding for getVisibleCoordinateBounds. (#16069)
* [android] Add getVisibleCoordinateBounds method.
* Fix Map::latLngBoundsForCamera, add Android binding for getVisibleRegionBounds.
* Add unit tests for CameraToLatLngBoundsWithRotation and CameraToLatLngBoundsCrossDateLine.
* Move API breaking changes to a new method name latLngBoundsForCameraUnwrapped.
2020-01-09 15:53:23 +02:00
Tobrun
509eeb89d3 [filesource] - update javadoc of setResourceCachePath (#135) 2020-01-09 14:40:17 +01:00
Peng Liu
de4e18b7f5 [ci] Archive debuggable objects as a single tar file in android-release job. (#134) 2020-01-08 19:52:21 +02:00
Peng Liu
b392522d87 Bump the gl-native pin and update changelog for alpha.1 for release-unicorn. (#133) 2020-01-08 17:19:35 +02:00
Thiago Marcos P. Santos
d3a5ed968c [build] Remove uneeded submodules
Not needed after the render tests are using the offline cache.
2020-01-08 16:48:44 +02:00
Thiago Marcos P. Santos
d148908cf1 [render-test] Make the manifest mandatory
At the moment we have an invalid path as default.
2020-01-08 14:58:05 +02:00
Thiago Marcos P. Santos
5a0f43037f [render-test] Remove positional argument
Not in use, for running a single test, use -f instead.
2020-01-08 14:58:05 +02:00
Tobrun
0130763391 Update codebase to androidX (#129)
* update codebase to androidX
2020-01-08 13:46:13 +01:00
Thiago Marcos P. Santos
87013ad6e1 [metrics] Add new baselines
More accurate now since everything goes through the FileSource.
2020-01-08 13:07:12 +02:00
Thiago Marcos P. Santos
d08bb49c34 [core] Make it possible to reopen the database read-only for testing
Needed for Android, because the database is in readonly filesystem
and also because it is annoying to see files modified every time we
run the tests.
2020-01-08 13:07:12 +02:00
Thiago Marcos P. Santos
f306957a6d [metrics] Add 2 tests to the ignore list
Need further investigation on why these tests are failing
after we started to use the cache database.
2020-01-08 13:07:12 +02:00
Thiago Marcos P. Santos
13c5505572 [metrics] Use the cache database instead of file paths for fixtures
Now that we use a cache, we no longer need "asset_path" and
"vendor_path".
2020-01-08 13:07:12 +02:00
Thiago Marcos P. Santos
af8092a86f [render-test] Use image from the cache for addImage operation
Instead of trying to read it from the filesystem.
2020-01-08 13:07:12 +02:00
Thiago Marcos P. Santos
f0d2a2f636 [render-test] Effectively use the offline cache for fixtures 2020-01-08 13:07:12 +02:00
Thiago Marcos P. Santos
26cfddaf47 [render-test] Add access token to the test manifest
Needed if we want to run tests online. Will default to the
MAPBOX_ACCESS_TOKEN environment value.
2020-01-08 13:07:12 +02:00
Thiago Marcos P. Santos
4d815d8306 [render-test] Add flag to run tests online
And also make it not go to the network by setting the status
explicitly when when the -o flag is not passed.
2020-01-08 13:07:12 +02:00
Thiago Marcos P. Santos
08f03b1bbb [render-test] Add cache database path to the manifest
A path relative to the manifest pointing at the data cache.
2020-01-08 13:07:12 +02:00
Thiago Marcos P. Santos
502ddd3c8a [render-test] Fixed typo and remove unused 2020-01-08 13:07:12 +02:00
Thiago Marcos P. Santos
f14985f783 [tools] Added cache tool
A tool for adding resources to a cache database, important for
adding fixtures to our render test cache database.
2020-01-08 13:07:12 +02:00
Mikhail Pozdnyakov
c46f0baa57 Update change log and binary size metrics 2020-01-08 12:43:26 +02:00
Mikhail Pozdnyakov
0379615388 [core] Introduce CollisionIndex::getProjectedCollisionBoundaries()
In order to remove the repeated code.
2020-01-08 12:43:26 +02:00
Mikhail Pozdnyakov
141e4e7935 [core] Introduce CollisionBoundaries and use it in CollisionIndex 2020-01-08 12:43:26 +02:00
Mikhail Pozdnyakov
a46b1a4e4f [test] Update render test expectations 2020-01-08 12:43:26 +02:00
Mikhail Pozdnyakov
cf2946c8ff [core] Use only the first variable anchor for the symbols intersecting tile borders
Do not try the following variable anchors, if the first variable anchor placement failed.
2020-01-08 12:43:26 +02:00
Mikhail Pozdnyakov
1debf4e05b [core] Fix CollisionIndex::featureIntersectsTileBorders() implementation 2020-01-08 12:43:26 +02:00
Mikhail Pozdnyakov
c25fbe9a94 [core] Performance fix for placement in tile mode 2020-01-08 12:43:26 +02:00
Mikhail Pozdnyakov
2040d4d6f5 [core] In tile mode, place labels from tile borders first 2020-01-08 12:43:26 +02:00
Mikhail Pozdnyakov
7e5dc5608a [core] Pre-defined variable anchor at tile borders
In tile mode, stick to the first variable anchor if the label intersects tile borders.
2020-01-08 12:43:26 +02:00
Mikhail Pozdnyakov
07194f7fa5 [core] Add CollisionIndex::featureIntersectsTileBorders() 2020-01-08 12:43:26 +02:00
Mikhail Pozdnyakov
2125548a6e [core] Consolidate more logic in calculateVariableLayoutOffset() 2020-01-08 12:43:26 +02:00
Tobrun
aa50f6eae2 Update major version number to 9 (#132) 2020-01-08 11:06:38 +01:00
Samuel Thibault
5f031dfa56 [util] fix thread.cpp portability 2020-01-08 10:50:42 +02:00
Tobrun
2da60d28fd Use hasInstance on public static getters of Mapbox.java (#128) 2020-01-07 13:35:50 +01:00
tobrun
f54d47137b [android] promote releaseCoreLayer from protected to public 2020-01-06 15:44:03 +01:00
Lloyd Sheng
58aa0015e9 Add ornaments position asserts (#124)
* add ornaments position asserts
2020-01-06 18:09:25 +08:00