Commit Graph

90 Commits

Author SHA1 Message Date
Tobrun
f44e4eb2de Only listen to connectivity broadcast events when needed (#8222)
* [android] - only listen to connectivity change events when needed.

* [android] - fix compile var args warning, remove redundant test
2017-03-01 09:46:47 -05:00
Tobrun
2c7350c093 7798-ObjectAnimator-rotation (#7907) 2017-02-07 07:31:39 +01:00
Tobrun
3212e543b7 [android] - wrap longitude values from core (#7852) 2017-02-04 10:31:59 +01:00
srabenja
1dead1d194 Disable double tap gesture to zoom in (#7879) 2017-02-04 08:17:59 +01:00
Antonio Zugaldia
c97ec3be03 [android] Extract telemetry into MAS
* [android] add the mapbox-android-telemetry module dependency.

* update javadoc
2017-02-03 15:12:13 -05:00
Ivo van Dongen
f562ecdfc3 [android] data driven style implementation 2017-02-02 09:44:42 -08:00
Konstantin Käfer
62ea1f2185 [core] remove trailing whitespace, add trailing newlines, add space after // 2017-01-27 11:44:16 +01:00
Tobrun
fbe0320c9c [android] - zoom to at least 2 when tracking is enabled (#7795)
* [android] - zoom to at least 2 when tracking is enabled, introduce interface for zoom invalidation, simplify example

* fixup unit test, added test for new interface + focal point interface
2017-01-23 17:51:09 +01:00
Tobrun
c637a658db [android] - remove deprecated emerald (#7767)
[android] - remove deprecation annoation for setStyle

[android] - dismiss tracking on gesture deprecation cleanup
2017-01-18 18:26:58 +01:00
Tobrun
f18c0b8d1e [android] - cleanup telem, disabled logging, exponential backoff, local broadcast (#7605) 2017-01-10 17:26:06 +01:00
Tobrun
83f1350747 MapboxAccountManager refactor, removal deprecated accesstoken (#7462)
* [android] - move object ownership, move depenencies and responsibility.

* [android] - MapboxAccountManager refactor, removal deprecated accesstoken.
2016-12-17 20:25:16 +01:00
Cameron Mace
20b958301e Adds checkstyle to CI (#7442)
* adds checkstyle to CI

* fixed gradlew path

* resolved testapp checkstyle violations

* added back mapboxMap variable for test

* checkstyle annotations

* checkstyle SDK round 1

* maps package checkstyle

* rest of SDK checkstyle

* checkstyle gesture library

* checkstyle test

* finished rest of test checkstyle

* resolved all checkstyle errors

* fixed class name

* removed old test file

* fixed camera postion test

* fixed native crash
2016-12-16 16:19:15 -05:00
Tobrun
f95b4838ea [android] - move min/max zoom to transform class, cleanup usage of double vs float, renaming for parity (#7306) 2016-12-15 16:57:30 +01:00
Cameron Mace
3d5983f6f6 Allows for setting the user location icon to transparent (#7393)
* allows for setting the user location icon to transparent

* removed color check
2016-12-14 12:51:04 -05:00
Tobrun
7cf10ee524 [android] - remove location enabled flag from MapboxMap (#7308)
* [android] - remove location enabled flag from MapboxMap, decouple TrackingSettings from MyLocationViewSettings using a FocalPointChangeListener interface, Move state related to tracking modes to MyLocationView (shared object between MyLocationViewSettings and FocalPointChangeListener).

* fixup tests
2016-12-08 14:37:01 +01:00
Tobrun
9a9e7978db [android] - Refactor dependencies, introduce focused components (#7189)
* [android] - refactor dependencies

* ignore tests
2016-12-06 13:46:49 +01: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
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
Tobrun
ee073f6b96 [android] - rename attributes (#6894) 2016-11-07 09:37:43 +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
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
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
2879b36a43 [android] - convert bearing value coming from core to degrees (#6526) 2016-09-30 13:31:54 +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
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
Minh Nguyễn
f996558bc2 [android] Radiant → radian (#6169)
* [android] Radiant → radian

* [android] #6169 - testHashcode
2016-08-26 09:41:46 -07:00
Tobrun
701d7160c3 [android] #4845 - remove robotium, migrate to espresso 2016-08-03 16:48:36 -04:00
Ivo van Dongen
10b2cc60a7 [android] #5610 - Runtime style api - part 2 2016-08-02 16:58:03 -04:00
Ivo van Dongen
9a3eadfd5b [android] #5610 - Initial Runtime Style Bindings
[android] #5610 - Adjusted public api after discussion

[android] #5610 - added jni binding for NativeMapView#getLayer

[android] #5610 - Added initial test Activity

[android] #5610 - Started on NativePeer implementation for Layer

[android] #5610 - replaced low-level jni code with high-level for native getLayer

[android] 5610 - completed basic layer peer class - constructible from java and c++

[android] #5610 - removed reference that was redundant and causing the finalizer exception

[android] #5610 - Added a property peer

[android] #5610 - added value type to do type conversions - wip

[android] #5610 - simplified property conversion approach - wrapped value with jenv

[android] #5610 - added some more value conversions

[android] #5610 - Finished conversion for basic types

[android] #5610 - allow color's to be set as either an android color int or a String to support all formats in the spec

[android] #5610 - encode color ints as rgba to retain alpha channel

[android] #5610 - recalculate classes after paint property

[android] #5610 - more examples

[android] #5610 - fixed the example

[android] #5610 - cleaned up example code before continueing

[android] #5610 - added layout property example

[android] #5610 - set visibility on layer

[android] #5610 - added removeLayer and example

[android] #5610 - added more type conversions

[android] #5610 - Started on peer classes for layer implementations - WIP

[android] #5610 - First complete layer subclass peer implementation

[android] #5610 - added a little bit of structure before adding the other layer types

[android] #5610 - generate the c++ headers from the style spec

[android] #5610 - make sure the visibility is set as a string

[android] #5610 - Generate c++ layer peer class implementations from the style spec

[android] #5610 - generate java layer peer classes

[android] #5610 - cleanup comments

[android] #5610 - register all c++ peer classes with jni

[android] #5610 - addLayer

[android] #5610 - comment out broken case

[android] #5610 - Sources api - very much WIP

[android] 5610 - GeoJson source implementation and geojson conversion

[android] #5610 - cleanup add source/layer example a bit

[android] #5610 - initial filter api

[android] #5610 - Added filter api on the relevant Layer classes

[android] #5610 - raster layer is not filterable

[android] #5610 - actually make it compile

[android] #5610 - completed filter implementation

[android] #5610 - Vector and Raster Source + examples

[android] #5610 - removed superfluous interface, moved filters to the correct package

[android] #5610 - fixed comments

[android] #5610 - moved tests to the right package

[android] #5610 - hide difference between paint and layout properties in public api, make more performant set method for proeprties

[android] #5610 - fix rebase issue
2016-07-26 16:29:26 -04:00
Cameron
765e8d2be1 [android] latlngbounds includes added in builder
Fixes #5574

added includes test
2016-07-14 12:13:44 +02:00
Tobrun
fd5ee40506 [android] #5631 - add a concrete java exception when creating a marker without the required position field.
[android] #5631 - updated test cases to handle invalid position on a Marker
2016-07-14 09:36:51 +02:00
Tobrun
a40953dd71 [android] - Remove StyleInitializer class, obsolete with introduction MapboxAccountManager 2016-07-05 13:34:22 +02:00
Tobrun Van Nuland
436c23c40b [android] #5171 - introduce new select/deselect animation system for view markers 2016-06-05 14:23:24 +02:00
Tobrun Van Nuland
aa83245c07 [android] #5193 - fix broken test case on Icon 2016-06-03 19:59:24 +02:00
Tobrun
fe40127b12 [android] #4929 - fix unit tests MyLocationSettings 2016-06-02 17:21:20 -05:00
Tobrun Van Nuland
6c93bb4006 [android] - add unit test for MarkerView 2016-05-25 15:14:54 +02:00
Tobrun Van Nuland
1d7d8a9f2f [android] #5102 - update marker view position correctly by comparing markers based on id instead of location 2016-05-25 13:07:54 +02:00
Tobrun
d8dfc921b4 [android] #3276 - fix unit tests on MapboxMapTest related to Marker/BaseMarker 2016-05-20 12:00:02 +02:00
Tobrun
e4a63684ec [android] - fixes style init bug, added unit test to prevent regression 2016-05-12 16:29:47 +02:00
Tobrun
da422ff44d [android] #4702 - upgrade default styles, deprecate Style string definition in favour versioned styling methods. 2016-05-06 11:06:50 -07:00
Tobrun
bf493f96cd [android] #4800 - correct background offsets from attributes 2016-04-26 22:24:18 +02:00
Tobrun
e2510fce79 [android] #4800 - default location view from start: introduced attributes, update MapboxMapOptions, added tests. updated MockParcel 2016-04-26 22:24:17 +02:00
Tobrun
b39d289920 [android] #3231 - add support for tinting attribution icon through xml - MapboxMapOptions, AttributionDialog will use the same color values 2016-04-26 12:28:36 +02:00
Tobrun
158e163a69 [android] #4814 - simplified mock parcel testing, update tests to reflect these changes 2016-04-24 10:23:49 +02:00
Tobrun
f469cee1b4 [android] #4396 - fixup mason build issue 2016-04-23 07:16:37 +02:00
Tobrun
ef65d2015c [android] #4335 - add clear method for removing annotations to MapboxMap 2016-04-13 18:15:51 +02:00
Tobrun
35b579fde1 [android] #4635 - fix rotate disabled with location tracking 2016-04-08 11:25:50 +02:00
Tobrun
f3c64a4c95 [android] - Marker test coverage 2016-04-08 10:06:58 +02:00