Commit Graph

289 Commits

Author SHA1 Message Date
Peng Liu
7139abdbf5 [android] Expose pre-fetching zoom delta. (#15769)
* [android] Expose pre-fetching zoom delta.

* [android] Fix Clang format.

* [android] Add MapboxMap unit test.

* [android] Add prefetching zoom delta into MapboxMapOptions.

* [android] Deprecate setPrefetchesTiles to migrate to setPrefetchZoomDelta.

* [android] Deprecate getPrefetchesTiles() and migrate to setPrefetchZoomDelta().

* [android] Add unit test to NativeMapViewTest.

* [android] Add IntRange annotation to getPrefetchZoomDelta.
2019-10-08 16:21:46 +03:00
Łukasz Paczos
7475247782 [android] - remove projected meters per pixel and pixel ratio relation
The projected meters per pixel calculation is not dependent on the pixel ratio but rather the tile size, therefore, the division when fetching the value is not necessary.
2019-10-03 11:11:05 +02:00
Łukasz Paczos
4f91073414 [android] - ignore location tracking mode based animations when the camera is transitioning 2019-09-17 15:03:35 +02: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
Tobrun
529ebc7df7 [android] - increase timeout of offline download test (#15419) 2019-09-09 12:08:13 +02:00
Tobrun
ed964fc16b [android] avoid converting float to long in android_conversion.hpp (#15557) 2019-09-04 18:12:12 +03:00
Tobrun
0fa5944f39 Add number format expression (#15424)
* [android] add number format expression
2019-09-02 14:48:11 +02:00
Łukasz Paczos
becc705f05 [android] expose camera padding option
This removes the cached insets on the Android side, making the core TransformState the source of truth. This still leaves an option to lazily set the padding which is going to be applied only when the next camera animation is started.
2019-08-29 14:51:24 +02:00
Łukasz Paczos
baa7086570 Merge pull request #15437 from mapbox/lp-revert-14989
Revert "[android] invalidate camera when setting a padding"
2019-08-21 17:24:11 +02:00
tobrun
073a243862 [android] provide default font list for pre lollipop 2019-08-20 11:36:12 +03:00
Łukasz Paczos
bf34fb0190 [android] check if the CustomGeometrySource's java peer is valid when the thread is shutting down 2019-08-19 10:22:45 +02:00
Łukasz Paczos
8e1bd18eae [android] execute quickzoom scale change based on the Y axis delta change
Using finger's Y axis position allows for a linear zoom additions/deductions during the quick-zoom changes. This is in contrast to the previously used scale factor, which is based on the current span (distance from the origin) to previous span ratio and increases the closer the finger is to the origin of a gesture because the values are smaller.

The scale ratio based changes are also reliant on series of motion events' values and because the Android framework can skip some events, going back and forth during a quick-zoom might not have resulted in the same transformation. This was reproduced by the round-tripping test introduced in this commit.
2019-08-15 20:34:29 +03:00
Alexander Shalamov
dad43ba8fc [android] Android bindings for new 'text-writing-mode' layout property 2019-08-13 13:32:56 +03:00
tobrun
58d7734722 [android] add fallback support to local ideograph font families, allow setting a collection of fonts 2019-08-12 14:30:07 +03:00
Łukasz Paczos
ac94186508 [android] harden MapGestureDetector tests 2019-07-30 09:24:49 +02:00
Tobrun
79bdce6cd4 [android] - update dependencies, target SDK, support library (#15135) 2019-07-19 11:46:38 +02:00
Łukasz Paczos
4a93f39700 [android] ignore a flaky MapSnapshotter test until #11669 is resolved 2019-07-18 14:39:25 +02:00
Łukasz Paczos
048a07e3c9 [android] fail MapSnapshotter test in case of an error returned from core 2019-07-18 10:54:39 +02:00
tobrun
0baa54a194 [android] - create map snapshot from testcase 2019-07-16 17:06:19 +02:00
Łukasz Paczos
ac0431eac5 [android] ensure that move detector is enabled if double-tap is interrupted 2019-07-11 18:18:48 +02:00
Łukasz Paczos
200af48754 [android] add regression tests for recent quick zoom/double tap issues 2019-07-11 14:14:10 +02:00
Łukasz Paczos
afa7cea4c0 [android] ensure location shadow's gradient is greater than 0 2019-07-11 13:27:13 +02:00
Łukasz Paczos
348c437c0a [android] throw configuration exception when accessing Mapbox services with an invalid token 2019-07-11 11:02:24 +02:00
tobrun
532e9dc6ae [android] - add snapshotter and offline test 2019-07-08 08:12:36 +02:00
tobrun
dd16eadc38 [android] - add ktlint, optimise code for ktlint validation 2019-07-04 12:08:49 +02:00
tobrun
21f7522967 [android] - add binding integration for cache management API 2019-07-02 14:23:24 +02:00
Kevin Li
3b90d95b93 [android]Add MicroSoft AppCenter lib. (#14995) 2019-06-26 16:33:59 +08:00
Łukasz Paczos
8fbe63b51b [android] invalidate camera when setting a padding 2019-06-25 13:29:20 +02:00
Tobrun
18885def71 [android] - optimise CameraUpdateFactory#newLatLngBounds to use camera position tilt and bearing values (#14953) 2019-06-19 19:51:44 +02:00
Tobrun
198ed888e3 [android] - increase timeout of image missing test, use GeoJsonSource above CustomGeometrySource 2019-06-06 09:03:51 +02:00
tobrun
36361192b1 [android] - rename style component URL api to URI 2019-06-05 09:38:20 +02:00
Łukasz Paczos
7b5d6c15ac [android] copy features array before passing them to core 2019-06-04 17:49:08 +02:00
Łukasz Paczos
1bef3b7d1d [android] resume file source and wait for result to complete resources cache path change 2019-05-24 15:03:55 +02:00
Łukasz Paczos
b21f9f3e35 [android] return color string values in the [0-255] range 2019-05-22 16:32:04 +02:00
Alexander Shalamov
00790dd022 [android] Add unit test for onRemoveUnusedStyleImages API 2019-05-21 06:49:17 -07:00
Łukasz Paczos
d2dd3cc2c8 [android] split image missing test 2019-05-13 19:57:04 +02:00
Łukasz Paczos
0f599ce804 [android] keep strong callback reference and use application context during cache path change 2019-05-10 14:15:06 +02:00
Mikhail Pozdnyakov
842ee6b6f5 [android] Update ImageMissingTest
Make sure that the `addOnStyleImageMissingListener` callback
is invoked for missing images if sprite request has failed.
2019-05-09 16:48:08 +03:00
Kevin Li
386b013c5e [Android]Expand schema test, modify performance event (#14535)
* expand schema test, modify performance event

* enclose java doc

* revert int to long
2019-05-02 16:55:20 +08:00
Łukasz Paczos
50483cafa6 [android] clear up LocationComponent's z-index positioning docs and add "layer-above" option 2019-04-24 14:24:23 +02:00
Alexander Shalamov
d4149ea5f1 [android] Generate style code for symbol-sort-key 2019-04-17 15:04:08 +03:00
tobrun
278d856372 [android] - program against NativeMap interface 2019-04-16 15:16:07 +02:00
tobrun
0ac95bd994 [android] - add style image missing binding integration, add synchronous
image overloads to style
2019-04-15 14:24:02 +02:00
tobrun
58696a0704 [android] - rework test to use query activity, fix attempt to render without surface crash 2019-04-12 13:12:31 +02:00
Łukasz Paczos
98d3f42e18 [android] add unit tests for #13947 2019-04-04 13:42:14 +02:00
Łukasz Paczos
a75a78242f [android] disable leak canary during instrumentation tests 2019-04-03 10:23:55 +02:00
Osana Babayan
b6910407e8 [android] updated PerformanceEvent (#13894) 2019-04-02 12:26:36 -04:00
Mikhail Pozdnyakov
9fb149b261 [android] Fix style code generation if array default value is missing 2019-03-29 16:18:41 +02:00
Mikhail Pozdnyakov
9fc42b9c3c [core] auto value for 'text-justify' field 2019-03-29 16:18:41 +02:00
Mikhail Pozdnyakov
2b9a52f5e4 [core] Enable 'text-radial-offset' property 2019-03-29 16:18:41 +02:00