Commit Graph

804 Commits

Author SHA1 Message Date
Tobrun
695180e091 [android] #3262 stop listening to bearing when state switches 2015-12-12 09:17:35 -08:00
Tobrun
8d253f97b6 [android] #3191 - remove double direction state 2015-12-12 09:14:42 -08:00
Tobrun
cc6169154f [android] #3270 - add sample activity for animated coordinate change 2015-12-12 09:12:21 -08:00
Tobrun
7117ec5032 [android] #3267 limit user input as an example to VisibleCoordinateBounds 2015-12-12 09:08:58 -08:00
Tobrun
78691fa9e6 [android] #3245 Reverse Tilt Gesture 2015-12-11 09:26:19 -08:00
Tobrun
f2b22666b0 [android] #3246 disable zoom controls 2015-12-11 09:22:29 -08:00
Tobrun
b832969b81 [android] #3248 - enforce application context in a singleton 2015-12-11 09:14:18 -08:00
Tobrun
18d451f393 [android] #3238 inconsistent package name 2015-12-11 09:11:26 -08:00
danswick
09bf5570e1 updates order of lifecycle methods. Addresses #2957 2015-12-10 21:09:14 -08:00
Stephen Niedzielski
9747caa435 Fix Android ProGuard View rules & release signing
- Enable ProGuard for the test app so the most common use case may be tested.
- Update ProGuard to keep all Mapbox views and their methods.
  Previously, ProGuard was stripping numerous class methods including
  UserLocationView.g/setAccuracy(). These particular methods are
  accessed via reflection. On newer APIs, this manifests only in Logcat
  and loss of functionality:

   PropertyValuesHolder  W  Method setAccuracy() with type float not found on target class class com.mapbox.mapboxsdk.views.UserLocationView
                         W  Method getAccuracy() with type null not found on target class class com.mapbox.mapboxsdk.views.UserLocationView

  On Android 4.03 and 4.04 (API 15), this causes an NPE:

    java.lang.NullPointerException
      at android.animation.PropertyValuesHolder.setupSetterAndGetter(PropertyValuesHolder.java:513)
      at android.animation.ObjectAnimator.initAnimation(ObjectAnimator.java:385)
      at android.animation.ValueAnimator.setCurrentPlayTime(ValueAnimator.java:537)
      at android.animation.ValueAnimator.start(ValueAnimator.java:927)
      at android.animation.ValueAnimator.start(ValueAnimator.java:950)
      at android.animation.ObjectAnimator.start(ObjectAnimator.java:363)
      at com.mapbox.mapboxsdk.views.UserLocationView.setLocation(UserLocationView.java:401)
      at com.mapbox.mapboxsdk.views.UserLocationView.toggleGps(UserLocationView.java:300)
      at com.mapbox.mapboxsdk.views.UserLocationView.setEnabled(UserLocationView.java:230)
      at com.mapbox.mapboxsdk.views.MapView.setMyLocationEnabled(MapView.java:3122)
      ...

  Also add Support libraries rules to the test. Further amendments may
  be made by examining usage.txt[0,1].

[0] http://developer.android.com/tools/help/proguard.html#enabling
[1] http://proguard.sourceforge.net/manual/usage.html#shrinkingoptions
2015-12-10 20:47:11 -08:00
Tobrun
b7a238f425 [android] #3240 - Reimplemented compass algorithm for compass bearing, fixed switching between user location tracking modes 2015-12-09 17:22:06 -08:00
Tobrun
50ed524e51 [android] #3224 - add espresso test for TiltActivity 2015-12-09 14:54:38 -08:00
Brad Leege
0346cfd865 [android] #2954 - Refactoring UserLocationView to use common LocationServices for location data 2015-12-09 12:45:35 -08:00
Brad Leege
220006fecb [android] #2954 - Building LocationListener infrastructure 2015-12-09 12:45:35 -08:00
Brad Leege
cddedf6966 [android] #2954 - Setting up specific toggle GPS functionality 2015-12-09 12:45:35 -08:00
Brad Leege
a7307f01bb [android] #2954 - Setting up LOST client 2015-12-09 12:45:34 -08:00
Brad Leege
96591c47cf [android] #2954 - LocationServices Singleton setup 2015-12-09 12:45:34 -08:00
Antonio Zugaldia
9bd6abb023 [android] Set the bearing of the checked object to avoid a null exception
Fixes #3213
2015-12-09 09:40:28 -08:00
Tobrun
b7037bb4b1 [android] #3221 - added unit test for Polyline and Polygon, updated test for Marker 2015-12-08 15:04:04 -08:00
Tobrun
cfd93a803d [android] #3215 added unit test for marker, moved tests to their own dedicated packages, added toString method to Marker 2015-12-07 18:30:49 -08:00
Brad Leege
22d7537a25 [android] #3192 #3194 - Setting Version to 2.4.0-SNAPSHOT
Enable day to day development and nightly SNAPSHOTS
2015-12-05 12:27:30 -06:00
Brad Leege
55ff795672 [android] #3192 - Updating Twitter Fabric integration version 2015-12-04 11:50:10 -06:00
Brad Leege
b3320b20cc [android] #3192 - Setting version to 2.3.0 for release 2015-12-04 11:04:18 -06:00
Antonio Zugaldia
78901ee712 [android] #3188 - Save tilt value under a change in device orientation 2015-12-04 10:40:57 -05:00
Jason Wray
e77765b45f [android] add 's' to 'assets/' in setStyleUrl() docs
[skip ci]
2015-12-03 19:05:11 -05:00
Brad Leege
b58e775374 [android] #2805 - Using MINIMUM_TILT and MAXIMUM_TILT constants for annotation 2015-12-03 17:02:29 -06:00
Antonio Zugaldia
022d27864d [android] #2805 - scale and clamp values for pitch 2015-12-03 17:02:29 -06:00
Brad Leege
c6a658087e [android] #2805 - Removing Camera API for now 2015-12-03 16:57:44 -06:00
Brad Leege
cdfdd86de1 [android] #2805 - Integrating gesture with new get / set Tilt API refactoring 2015-12-03 16:57:44 -06:00
Antonio Zugaldia
d40d8e0c59 [android] #2805 - basic tilt gesture working with ShoveGestureListener 2015-12-03 16:57:44 -06:00
Brad Leege
02feddb816 [android] #2805 - Updating Tilt API to support animation duration time 2015-12-03 16:57:44 -06:00
Antonio Zugaldia
805aae2439 [android] #2805 - add mShoveGestureDetector to the event chain 2015-12-03 16:57:44 -06:00
Antonio Zugaldia
da2dd0929b [android] #2805 - public API to enable or disable tilt 2015-12-03 16:57:44 -06:00
Antonio Zugaldia
a4f10ef2c3 [android] #2805 - Placeholder for a ShoveGestureListener 2015-12-03 16:57:43 -06:00
Brad Leege
4dd84b3d92 [android] #2805 - Setting TiltActivity to test setPitch() directly. Adding FloatRange annotations to setTilt() and tilt() methods. 2015-12-03 16:57:43 -06:00
Antonio Zugaldia
5024d45c63 [android] #2805 - Create a target to keep both location values consistent. 2015-12-03 16:57:43 -06:00
Brad Leege
349f47ba92 [android] #2805 - Basic wiring up of Android Tilt methods to Core GL Pitch methods 2015-12-03 16:57:43 -06:00
Brad Leege
6ffcb7b6f6 [android] #2805 - Adding processing of target, zoom, and bearing in animateCamera. Setting default location of TiltActivity to DC for more obvious change. 2015-12-03 16:57:43 -06:00
Brad Leege
8c55bc4a0f [android] #2805 - CameraUpdate and animateCamera() API 2015-12-03 16:57:43 -06:00
Brad Leege
44fb85efc0 [android] #2805 - Adding Toolbar to TiltActivity for consistent navigation 2015-12-03 16:57:43 -06:00
Antonio Zugaldia
759e67b70d [android] #2805 - add sample tilt activity to test app 2015-12-03 16:57:42 -06:00
Brad Leege
6e77c4be82 [android] #2805 - Implementing Parcelable and adding Builder 2015-12-03 16:54:46 -06:00
Brad Leege
2dbaa0df1a [android] #2805 - Initial CameraPosition API 2015-12-03 16:54:46 -06:00
Antonio Zugaldia
2a0d2b7f0b [android] #3151 - Added sample InfoWindowConcurrentActivity to illustrate the behavior of multiple InfoWindows visible at a time. 2015-12-02 12:12:14 -05:00
John Firebaugh
8afa14fa78 [core] Map::setSprite ⇢ Map::addAnnotationIcon
Fixes #3084
2015-12-01 15:10:28 -08:00
Braden Ewing
60b0e78e0e Improve quickzooming on Android 2015-12-01 15:15:47 +01:00
Justin R. Miller
704ab891a7 refs #2800: update docs exception thrown for no Android token
[skip ci]
2015-11-30 12:47:18 -08:00
Antonio Zugaldia
48504baa91 Merge pull request #3127 from mapbox/3115-multiple-infowindows
3115 multiple infowindows + leave open while panning
2015-11-30 14:56:17 -05:00
Antonio Zugaldia
e9d749b775 add flag to let concurrent multiple infowindows to be shown 2015-11-30 11:32:25 -05:00
Tobrun
77df026adc Correct behaviour when switching between tracking modes, added javadoc 2015-11-30 11:30:28 +01:00