Commit Graph

988 Commits

Author SHA1 Message Date
Ivo van Dongen
822b83ae4e [android] fix source ownership 2016-11-11 13:46:10 +01:00
Ivo van Dongen
3a4a27c95f [android] fix layer ownership 2016-11-11 13:46:10 +01:00
Tobrun
fcbb7c1860 [android] - check for default values when constructing a camera position from a CameraUpdate (#7002) 2016-11-10 19:10:07 +01:00
Konstantin Käfer
108a28faa8 [android] update viewport size when framebuffer size changed 2016-11-10 17:04:18 +01:00
Ivo van Dongen
a9249b331a [android] test activity for runtime changes to symbols 2016-11-09 15:25:17 +01:00
Tobrun
33aa14c939 [android] - instrumentation tests upgrade, move view checking to utility class, remove inheritance in runtime style test (#6803)
update gitignore for generated tests

add camera move test

add realtime geojson to be excluded when generating Activity sanity tests

by default show workaround for showing a MapView in a dialog

add annotation tests

remove older camera tests, introduce tests for move, ease and animate, bring back setLatLng and getLatLng on MapView, add tests for internal camera API.

compass view tests

add tests for attribution and logo.

fix annotation tests

Rename Actiivity test class, split up annotation tests, added MarkerView tests, added infowindow tests, added MyLocationView tests

fix addRemoveLayer test by integrating map interactions inside a ViewAction
2016-11-09 12:56:49 +01:00
Konstantin Käfer
2411ec83b1 [build] don't rewrite style code for every build
revert of 93166aef48

On Android, we always rewrote the style code files, which lead to gratuitous recompiles
2016-11-09 11:10:22 +01:00
Tobrun
4030e86c33 [android] - fix inconsistency of float usage in CameraPosition and CameraUpdateFactory (#6941) 2016-11-09 10:51:40 +01:00
Tobrun
772324e8f2 Cherry pick release v4.2.0 (#6944)
* [android] - MyLocationView should facing above when location and compass bearing tracking are enabled. (#6829)

* [android] - use current animated rotation value for calculating animated marker rotation difference (#6826)

fix unit tests, input limiting is not handled by animateRotationBy instead of MarkerView.
Changed test to validate if method was called with correct value.

* [android] - only calculated offset margins for InfoWindow if View is found in current viewport, added example to the test app to test for regressions (#6877)

* upgraded okhttp dependency to latest version (#6880)

* Cancelable callback invocation (#6891)

* [android] - allow onCancel to be invoked from camera cancel callbacks

* set to null after finish

* [android]  - using bearing clockwise versus counterclockwise (#6917)

* [android]  - using bearing clockwise versus counterclockwise

* fixup brackets

* [android] - convert bearing values from core to Android SDK equivalent.
2016-11-09 10:42:18 +01:00
Tobrun
2b81dee8d3 [android] - update make targets (#6958) 2016-11-08 18:38:29 +01:00
Cameron Mace
6b85d4c2f9 added attribution tint color check (#6950) 2016-11-07 18:23:18 -05:00
Tobrun
1f8f85fab3 6067 annotation manager (#6913)
* [android] - AnnotationManager and InfoWindowManager refactor

* make AnnotationManager independent from MapView/MapboxMap, add IconManager,

* make code unit testable

* added some class level documentation (for internal use)
2016-11-07 17:23:51 +01:00
Tobrun
5412191ab4 [android] - validate intent and contents before handling (#6938) 2016-11-07 14:38:04 +01:00
Ivo van Dongen
505bf7db7a [android] update custom layer example with invalidation example 2016-11-07 09:38:04 +01:00
Tobrun
ee073f6b96 [android] - rename attributes (#6894) 2016-11-07 09:37:43 +01:00
Tobrun
c5992d71f5 [android] - cleanup unused resources and gradle configurations. (#6896) 2016-11-07 09:25:17 +01:00
Konstantin Käfer
29c5c13aa2 [core] move OpenGL debug information printing to core 2016-11-04 21:24:05 +01:00
Konstantin Käfer
c90a559599 [core] move framebuffer reading to gl::Context 2016-11-04 21:24:05 +01:00
Tobrun
7534aa1594 [android] - fix public xml api for drawables, fixup QueryRenderedFeatursBoxSymbolCountActivity (#6879) 2016-11-02 16:20:47 +01:00
Tobrun
4d0c42e36a Prefix library resources to avoid naming conflicts (#6878)
* [android] - add library resource prefix

* update SDK resources with prefix

* fixup tests
2016-11-02 12:41:22 +01:00
Ivo van Dongen
9ad5dd1585 [android] add test activity for symbol querying 2016-11-02 13:38:07 +02:00
Cameron Mace
53610ee378 removes sdk manager plugin (#6865)
* removes sdk manager plugin

* removed rest of sdk manager plugin
2016-11-01 17:15:09 -04:00
Konstantin Käfer
f7801e5d82 [core] correctly set the framebuffer size on retina screens
Also asserts in Debug mode that the internal state and the OpenGL state are identical
2016-11-01 10:46:04 +01:00
Cameron Mace
8bee27381c updated directions example in testapp to v5 (#6843) 2016-10-31 12:14:04 -04:00
Tobrun
ccc3964270 Android Nougat compatibility: onstart/onstop on MapView (#6830)
* introduce onstart/onstop on MapView

* update wear module

* update fragments

* update changeling
2016-10-31 13:17:56 +01:00
Tobrun
38ee3408c2 [android] - prevent null pointer when receiving connectivity change events while destroying the underlying map (#6858) 2016-10-31 10:59:18 +01:00
Konstantin Käfer
62b56b799a [core] change std::array<uint16_t, 2> to mbgl::Size 2016-10-27 18:30:58 -07:00
Tobrun
e7bfa7849e [android] - Update to Android Studio 2.2.2 with tools/dependencies (#6390)
* [android] - update android gradle tools, update test app version number, update target sdk to nougat, update support lib versions to latest

* new tools generated an aligned test apk, breaks CI integration

* update to Nougat release 7.1, update related tooling, update version code test app to 5.0.0.

* update wear module

* update gradle.properties
2016-10-26 16:09:51 +02:00
Konstantin Käfer
a4d259c33f [core] move gl::Context to Backend and refactor View 2016-10-25 13:52:36 -07:00
Konstantin Käfer
5cc390d694 [core] separate Backend from View for headless rendering 2016-10-25 13:52:36 -07:00
Cameron Mace
45f4dc0166 removed brew cask install android studio instruction (#6723)
* removed brew cask install android studio instruction

* link to download JDK

* made fixes to instruction
2016-10-25 16:44:03 -04:00
Tobrun
3457eb1144 [android] - MarkerView is responsible for managing height and width of a Marker (opposed to the recycled view). (#6809) 2016-10-25 17:36:26 +02:00
Tobrun
b0485bccd9 [android] - remove timer from compassView, make fading when facing north optional. (#6786)
save state for recreating map view

fix review comments

unit test covering default value for fading and setting a new value

fixup setter, fix default value
2016-10-25 15:53:16 +02:00
Tobrun
94b1a53f06 [android] - move marker view click handling to core (#5639) 2016-10-25 15:11:49 +02:00
Ivo van Dongen
31a7925205 [android] fix exception class 2016-10-25 12:41:28 +02:00
Tobrun
ed1ceecc09 [android] - only pin certificates on current used environement. (#6766)
update certificates sha256 for certificate pinning.
2016-10-24 22:38:10 +02:00
Tobrun
bc4cf3220c [android] - cap width/height at maximum, don't throw exception. (#6788) 2016-10-24 10:34:40 +02:00
Tobrun
8633c34d01 Android Bitrise cleanup (#6782)
* [android] - update bitrise.yml, always use latest deploy step

cleanup bitrise.yml

formatting, separate download step -> if tests fail, build fails

improve shown console messages, correct package for firebase filter

update steps

add slack integration for all workflows

* fixup SKIPCI check
2016-10-21 22:24:52 +02:00
Tobrun
7a4cd67aa8 [android] - remove jni method logging, only keep lifecycle related logs (#6787) 2016-10-21 22:23:16 +02:00
Cameron Mace
da9864f25d Made telemetry dialog material (#6726)
* Made telemetry dialog material

* cleaned up attribution_main_menu
2016-10-21 10:29:12 -04:00
Mike Morris
817c26111a [core] [node] pass thread pool impl to Map constructor
Updates mbgl::Map constructor usage everywhere

Adds NodeThreadPool implementation using AsyncQueue to call
Nan::AsyncQueueWorker from main thread
2016-10-20 14:37:36 -04:00
Tobrun
04a9a98b98 [android] - add realtime geojson example from gl-js (#6751) 2016-10-20 15:45:57 +02:00
Ivo van Dongen
5527887c4b [android] geojson source - remove explicit repaint requests 2016-10-20 11:41:24 +03:00
Tobrun
6d50435880 [android] - Configure Gradle properties as part of the instalation process. (#6729) 2016-10-20 10:21:15 +02:00
Tobrun
9a7139b65c [android] - move instrumentation test code to correct package for Android Studio run configurations integration. (#6748) 2016-10-20 10:20:56 +02:00
Tobrun
76f91cc88d [android] - configures AWS Device farm plugin from testapp. (#6750) 2016-10-20 10:20:26 +02:00
Cameron Mace
61a534241f Adds map dialog activity to testapp (#6741)
* adds map dialog activity to testapp

* added to genertate-test-code script
2016-10-19 12:06:16 -04:00
Tobrun
e5762ab728 [android] - update map change events javadoc (#6732) 2016-10-19 00:00:15 +02:00
Tobrun
f45712a6b3 [android] - add package-info.java for net package (#6733) 2016-10-18 23:59:57 +02:00
Tobrun
0ccc7f51ba [android] - fixup MyLocationView heading (#6671)
[android] - convert angles to radiants in jni, correct follow animation for MyLocationView

do not sanitise input when recreating from other camera object, input is already sanitised before

cleanup mylocationview, made animation bit more smooth, improved UX when switching between tracking modes

cleanup CameraUpdateFactory, hide internally used api.

only invalidate position if required, remove outdated comments

correct camera position values

made zoom activity a bit more interesting

made dynamic marker activity a bit more interesting

FIXUP
2016-10-18 17:56:39 +02:00