Commit Graph

318 Commits

Author SHA1 Message Date
Tobrun
dda1d9f357 [android] - fixup timber merge (#7179) 2016-11-24 11:33:57 +01:00
Pablo Guardiola
ac924719e1 [android] - replace Android logs with Timber (#6372) (#7149) 2016-11-23 11:48:07 -05:00
Tobrun
edb487b74d [android] - move camera logic to dedicated transform class (#6919)
* [android] - move camera logic to dedicated transform class

post camera updates to the message queue, this makes calling an new camera update in the on finish of another update possible. Simplify transform.java implementation.

* fail the step if instrumentation tests fail, fixup typo
2016-11-23 10:53:39 +01:00
Pablo Guardiola
6ecad41858 Add simple map activity to testapp (#7136)
* [android] 6481 - add simple map activity to test app

* [android] #6481 - exclude SimpleMapActivity
2016-11-22 10:05:29 +01:00
Ivo van Dongen
36dea5ea0d [android] return source ownership on remove 2016-11-14 14:05:18 +01:00
Ivo van Dongen
8d53f9f091 [android] return layer ownership on remove 2016-11-14 14:05:18 +01:00
Tobrun
f66ea0bef9 [android] - getMarkerViews in rect should return in bound views (#7015)
* [android] - getMarkerViews in rectangle should only return in bound views.

* added example in test app for debugging

* Covert rectangle coming in to density dependant rectangle
2016-11-14 12:08:03 +01:00
Ivo van Dongen
1beb28e75b [android] updated test activities for refactored layer/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
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
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
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
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
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
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
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
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
04a9a98b98 [android] - add realtime geojson example from gl-js (#6751) 2016-10-20 15:45:57 +02: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
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
Tobrun
d22d8a6c9b 6700 proguard update (#6718)
* [android] - include net package in proguard config, added the default EnclosingMethod disable warning and fixed up typo.

* update test app dependency leak canary to do a proguard release build, replaced keep support lib classes by dontwarn following Google guidelines, remove outdated/obsolete square configuration
2016-10-17 14:50:25 +02:00
Tobrun
bda0e94af2 MarkerView more robust when updates are asynchronous (#6717)
* [android] - remove ViewMarkers crash, show correct view cache size in test activity

* use MapboxMap to indicate a MarkerView is no longer added on a map, no future updates will be passed on to core.

* resolve memory leak
2016-10-17 14:50:09 +02:00
Tobrun
7bbf4a286e [android] - allow gradle to allocate more memory when building the test app (#6678) 2016-10-12 20:03:34 +02:00
Antonio Zugaldia
4cc7e7de4f [android] #6617 - Introduce a setConnected method to manually set a connected flag
* [android] introduce a setConnected method to manually set a connected flag

* extend connected state to ConnectivityReceiver

* extend connected state to ConnectivityReceiver
2016-10-11 09:17:07 -04:00
Antonio Zugaldia
abdf7b1199 [android] #6635 - Sample multimap activity
* [android] sample multimap activity

* add MultiMapActivity to excludeActivities in generate-test-code.js
2016-10-10 21:19:05 -04:00
Tobrun
5bbd27eb8f [android] - correct degrees/radiants integration into transform.cpp, fixes camera position restoration from core and missing return value occurrence. (#6641) 2016-10-10 23:51:56 +02:00
Tobrun
e598bbfa7c Rotate markerview (#6640)
* [android] - MarkerView rotation bug, limit degrees from 0 to 360 while creating a MarkerView

* update MarkerView#setRotation to limit input from 0 - 360 degrees, calculates difference in angle and animates rotation by a certain amount instead of animating to a value. Exposed new AnimatorUtils#animateRotationTo. Integrated into MarkerViewManager. Cleanup some unused imports. Updated javadoc.

* updated MarkerViewActivity in test application to test for regressions.

* added tests to validate changes to MarkerView#setRotate
2016-10-10 23:51:30 +02:00
Tobrun
8b5228d6ec [android] - correct focal point with padding and tilt enabled + cleanup code MyLocationView (#6594) 2016-10-05 22:54:35 +02:00
Tobrun Van Nuland
3b72c288ad [android] refactored exposed api on MapboxMap
fix unit tests

fixup comments
2016-10-05 17:10:45 +02:00
clydebarrow
a4b0e2f30c [android] Revise handling of tracking modes and interactions
with touch gestures.

This fixes issues #6549 and #6567. Also pertinent to #6557.
Additional code has been added to the test app (Activity "User Tracking
Mode") to test.
A potential race condition in the MapboxMap#easeCamera() methods where
a camera change generated by tracking which could have reset the tracking
modes has been eliminated by factoring out a new method
MapboxMap#easeCameraInternal().
2016-10-05 17:10:45 +02:00
Ivo van Dongen
ca20767e9c [android] Add sprite image example 2016-09-30 17:11:22 +02:00
Ivo van Dongen
d4888cb39d [android] file:// example 2016-09-30 14:57:26 +02:00
Tobrun
eca126d804 [android] - fix polygon test activity state, introduced config class and toolbar composer, cleanup code (#6527) 2016-09-30 13:52:12 +02:00
Tobrun
2879b36a43 [android] - convert bearing value coming from core to degrees (#6526) 2016-09-30 13:31:54 +02:00
Tobrun
87a438ec75 Optionable textureview (#6480)
* [android] - make using TextureView optional

* add deprecation comment on texture mode
2016-09-29 15:05:50 +02:00
Tobrun
c97a1047df 6453 restore tilt after orientation (#6491)
* [android] - correct tilt value when restoring activity or creating from xml

* correct values requesting camera position adhoc

* updated logic change in unit tests
2016-09-29 11:41:08 +02:00
Tobrun
3835ed556b 6402 update offline metadata android (#6456)
* [android] - update offline metadata jni integration

* extract offline utils for reuse

* add test activity for update metadata

* fix requested signature changes
2016-09-28 07:48:01 +02:00
Justin R. Miller
6aa00afd31 [ios, android] add visual tests for fill, line, & numeric filter styling (#6433) 2016-09-23 10:13:11 -07:00
Ivo van Dongen
eb97dbe383 [android] Sources: peer model, mutability (#6054) 2016-09-21 11:04:32 +02:00
Tobrun
72e3d6906d [android] - do not update marker while creating (#6314)
* [android] - do not update marker while creating, add activity to prevent regression

* [core] - add asserts to incorrect usage of update and remove annotations api

* [android] - fix marker tests
2016-09-19 18:03:49 -07:00