Commit Graph

604 Commits

Author SHA1 Message Date
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
Tobrun
fa6d586417 [android] - allow using rotate gesture when not tracking user location, correctly update bearing during rotation gesture (#6978) 2016-11-14 10:37:34 +01:00
Tobrun
720a0256f5 Default Style Camera on Android (#7019)
* [core] - do not set camera mutated to true when calling Map::getLatLng

* [android] - correctly check if a Map is created without a camera position
2016-11-11 18:13:25 +01:00
Ivo van Dongen
185983f2f7 [android] source/layer java doc 2016-11-11 13:46:10 +01:00
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
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
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
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
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
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
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
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
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
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
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
Tobrun
6d50435880 [android] - Configure Gradle properties as part of the instalation process. (#6729) 2016-10-20 10:21:15 +02: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
Tobrun
1bee9d34f5 Reusable point fromScreenLocation (#6652)
* Fixed bug where fromScreenLocation would modify the actual Point being passed in

* [android] - move reused point to Projection class, migrated screen density logic to projection

fixup code to be unit testable
2016-10-17 14:51: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
1898df606d [android] - add transparent image for MarkerViews ghosting SymbolAnnotations (#6675)
* [android] - add transparent image to core for MarkerView ghosting SymbolAnnotations. Removes logging messages: `Can't find sprite ... `. Cleanup MapView.

* [android] - use alpha_8 config to only allocate one byte, rename id for better readability.
2016-10-13 17:04:02 +02:00
Tobrun
9669997181 [android] Fix gestures when MapView is not full screen (#5562)
This fixes #5528
2016-10-12 20:02:04 +02:00
tomlocks
0fc7fd11d9 [android] Fixed wrong location view interpolation (#6668) 2016-10-12 11:07:25 +02:00
Tobrun
e0b025ab4d [android] - correct android to core conversion of camera options. (#6660)
* [android] - correct android to core conversion of camera options.

* fix MarkerView tilting, tilt is already in degrees

* same fix for MyLocationView
2016-10-12 10:56:38 +02:00
Tobrun
94a014cde3 [android] - revert making bearing and tilt to radiants (#6656) 2016-10-11 16:51:33 +02:00
Tobrun
fb2338ceca [android] - close response body to avoid connection leak (#6650) 2016-10-11 15:53:16 +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
Josh Burton
e3c79bfd34 [android] - Use correct nullity annotation for convertView (#6521) 2016-10-11 15:07:47 +02:00
Ivo van Dongen
61d8ecefda [android] Runtime Style Filter enhancements (#6623)
* [android] Additional null check - prevents errors in array conversion

* [android] style conversion - delete local refs asap to avoid ref table overflow

* [android] Filter - hide concrete implementation classes to avoid confusion
2016-10-11 10:30:38 +03: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
740c995c2b [android] - apply tilt to markerview with initial camera position (#6622) 2016-10-07 16:47:16 +02:00
Tobrun
79a80630fd [android] - image opt android layout editor image (#6624) 2016-10-07 15:55:58 +02:00
Tobrun
c2333658f0 [android] - invalidate focal point when setting MyLocationView padding (#6413) 2016-10-05 22:55:54 +02:00