Commit Graph

1658 Commits

Author SHA1 Message Date
Chris Loer
966b6a53ce [core, ios, qt, android] Close race condition in RunLoop (issue #9620)
Because a message we queue from the foreground may cause the background to complete, exit, and tear down the AsyncTask, we have to block queue processing until we've finished our call to AsyncTask::send().
Broadening the scope of a mutex is scary, but I audited the code of our four implementations of AsyncTask and I don't see any way this could cause a deadlock.
2017-12-06 12:37:48 +01:00
Tobrun
2a13bfd2c4 [android] - add FileSource activation/deactivation to MapSnapshotter, handle multiple deactivate scenario in FileSource (#10556) 2017-12-06 12:37:48 +01:00
Tobrun
bc27322853 [android] - handle destroying activity programmatically as part of theme switching (#10589) 2017-12-06 12:37:48 +01:00
Tobrun
8ad3759b9c [android] - use concurrent lists for camera change listeners (#10542) 2017-12-06 12:37:48 +01:00
Tobrun
f64475f76c [android] - harden MarkerView integration by checking for null bitmap (#10532) 2017-12-06 12:37:48 +01:00
Tobrun
7b7b2c53fb [android] - activate filesource to list offline regions (#10531) 2017-12-06 12:37:48 +01:00
Ivo van Dongen
65d2e0b8f2 [android] Enable map rendering when app is paused 2017-12-06 12:37:48 +01:00
Pablo Guardiola
1ce3d2e5ef [android] remove unnecessary jar generation from gradle-publish.gradle (#10625) 2017-12-05 10:12:16 +01:00
Tobrun
8cebab09ba [android] - attribtuion anchor point calculation fix for short text with full logo on a MapSnapshot (#10558) 2017-11-29 12:21:54 +01:00
Pablo Guardiola
a1f207b090 [android] use location engine abstraction instead of location source (lost) in MyLocationView#init (#10579) 2017-11-29 08:31:46 +01:00
Antonio Zugaldia
85bc035be3 [android] Set a larger limit for the HTTP dispatcher (#10567) 2017-11-27 10:33:14 -05:00
Tobrun
7c8fbc8232 [android] - bump okhttp, remove workaround for Android Oreo (#10515) 2017-11-23 08:49:01 +01:00
Pablo Guardiola
9206e46154 release android v5.2.0 (#10487) 2017-11-20 20:10:04 +01:00
Victor Akap Oben
1d78c04484 Update comment from onDestroy to onDestroyView (#10501)
Updated comment to reflect that MapView's lifecycle callback in a fragment should be called from onDestroyView rather than on onDestroy. This is consistent with that MapFragment is doing.
2017-11-20 16:00:05 +01:00
Pablo Guardiola
84fbb7c576 release v5.2.0-beta.5 (#10464) 2017-11-17 16:39:36 +01:00
Pablo Guardiola
30e59ce738 Monkey crashes (#10440) (#10472)
* [android] - avoid null map from trackballevent

* [android] - fixup animated marker test activity from monkey runs

* [android] - harden NativeMapView OnMapChangeListener

* [android] - harden against destroyed wrapper activity while moving touch pointers

* [android] - harden bulk marker activity for monkey runner

* [android] - harden scale end gesture event for null velocity tracker

* [android] - invalid mapboxMap invocation

* [android] - reset test setup
2017-11-16 16:06:22 +01:00
Tobrun
f0f113bafc MapSnapshot attribution (#10362)
* [android] - add attribution

* [android] - optimise attribution sources

* [android] - rework datamodel to attribution class

* [android] - refactor Attribution, add tests

* [android] - add getter for attribution string

* [android] - rework attribution to include small logo, add layout placement

* [android] - finalise integration and layout logic
2017-11-14 11:13:34 +01:00
Tobrun
a9bd09c015 Downgrade min sdk to 14 (#10355)
* [android] - downgrade minimum sdk version to 14

* [android] bump MAS version to the one which includes min sdk version 14

* bump lost version to 3.0.4
2017-11-13 13:20:41 +01:00
Tobrun
199c0cac25 [android] - harden deselection mechanism for markers (#10403) 2017-11-10 16:34:09 +01:00
Pablo Guardiola
b5140cb342 [android] Cherry picks to agua (#10442)
* [android] fix map snapshotter marker example

The reference to the MapSnapshotter needs to be held for the duration of the snapshot, otherwise it might be GC'd

* [android] MapRendererRunnable - avoid weak reference table overflow

Apparently on some devices the weak reference table is limited (numbers around 52000). Even though we don't use that many weak references, when GC is not called for a while they can stack up and a crash will occur before the GC has had the time to clear the references. The C++ peer now holds on to a global ref (strong) which can be obtained to queue the java peer and then release automatically so that the GC can take over after the runnable has been executed.
2017-11-10 12:56:06 +01:00
Pablo Guardiola
46fcc83097 [android] release 5.2.0-beta.4 (#10384) 2017-11-08 01:58:51 -08:00
Tobrun
cc67335499 [android] - add config file for excluding generated tests, refactor generation script output 2017-11-08 09:58:31 +01:00
tobrun
24de48b772 [android] - update android unit tests, update test make target to SDK 2017-11-06 18:53:50 +01:00
tobrun
4d486e10ce [android] - check for null value when calling mapboxMap.clear 2017-11-06 17:16:27 +01:00
Pablo Guardiola
cdc5dde0ec [android] revert adding mapbox-android-core dependency (#10354) (#10380) 2017-11-03 15:39:53 -07:00
Ivo van Dongen
d1d0c20044 [android] TextureView - cleanup destruction code 2017-11-03 09:19:39 -07:00
Ivo van Dongen
8753edf08f [android] test app - texture view test activities 2017-11-03 09:19:39 -07:00
Ivo van Dongen
3b2bd7ce4f [android] bring back texture view 2017-11-03 09:19:39 -07:00
Ivo van Dongen
e9bb4d1582 [android] texture view map renderer 2017-11-03 09:19:39 -07:00
Ivo van Dongen
fd5f357d1d [android] move egl under renderer package 2017-11-03 09:19:39 -07:00
Ivo van Dongen
6adeee601e [android] encapsulate gl surfaceview rendering specifics in map renderer subclass
- preparation for re-introduction of texture view
2017-11-03 09:19:39 -07:00
Tobrun
d9fe241761 [android] - workaround Android O OkHttp bug. 2017-11-02 13:27:50 -07:00
Tobrun
5dbd94016b [android] - fix logo scale for MapSnapshot 2017-11-02 07:41:53 -07:00
Pablo Guardiola
29a94ae939 [android] make location provider optional (#9488) (#10354) 2017-11-01 18:25:52 -07:00
Osana Babayan
d0d401b007 [android] android.hardware.location.gps feature should not be required (#10347) 2017-11-01 17:10:49 -07:00
Tobrun
e6d50da2c5 [android] - check for possitive animation duration 2017-11-01 14:56:37 -07:00
Tobrun
a5ff277ed9 [android] - add logo resize to MapSnapshotter 2017-11-01 14:56:37 -07:00
Tobrun
cb7f6dfaec [android] - make snapshot logo optional 2017-11-01 14:56:37 -07:00
Tobrun
e5243b7691 [android] - ignore activity gen tests 2017-11-01 09:23:53 -04:00
Ivo van Dongen
0c5e15e21e [android] map snapshotter - expose attributions 2017-11-01 09:23:53 -04:00
Ivo van Dongen
9c3e78a9b9 [android] map snapshotter - wrap snapshot in native peer for access to the pointFor functionality 2017-11-01 09:23:53 -04:00
Ivo van Dongen
fd3587608b [android] map snapshotter - add mutators 2017-11-01 09:23:53 -04:00
Tobrun
03d3aee6fc [android] - rework ease interactions to take in account possitve duration requirement 2017-10-31 15:30:48 -07:00
Osana Babayan
9aa2c197ca [android] MapboxMap.animate() and Mapbox.easeCamera() should throw IllegalArgument (#10321)
if non-positive duration is passed in
2017-10-31 15:30:48 -07:00
Tobrun
0f1296c01c [android] - run all instrumenetation tests 2017-10-31 14:14:11 -07:00
Tobrun
f578b26282 [android] - add bulk addImages api on MapboxMap 2017-10-31 13:47:12 -07:00
Osana Babayan
ebe6a30821 [android] Make sure onFinish has new camera position after camera.move (#10324) 2017-10-31 09:23:02 -07:00
Ramin Mirsharifi
9b41791dec [android] - Add angular velocity effect on rotation gesture. 2017-10-30 16:25:37 -07:00
Ramin Mirsharifi
c351f65c09 [android] - Add touch velocity effects on scale gesture. Fine tune. 2017-10-30 16:25:37 -07:00
Ramin Mirsharifi
8c4e2f0886 [android] - Add touch velocity effects on scale gesture. 2017-10-30 16:25:37 -07:00