Commit Graph

47 Commits

Author SHA1 Message Date
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
50ed524e51 [android] #3224 - add espresso test for TiltActivity 2015-12-09 14:54:38 -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
c6a658087e [android] #2805 - Removing Camera API for now 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
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
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
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
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
Bruno de Oliveira Abinader
1f0820c8e8 [core] Added MapDebugOptions
Map debug options are now cycled up to all debug options enabled, then
back to none.
2015-11-27 17:47:02 +02:00
Thiago Marcos P. Santos
4475f54860 [android] Remove autogenerated file from tree
developer-config.xml gets generated on build time with the token
set for the env var MAPBOX_ACCESS_TOKEN. Because the file was checked to
the git repo, it was not being regenerated and thus, crashing the
test app accusing no token set.
2015-11-27 17:32:09 +02:00
Tobrun
0f976ef7d2 [android] #3008 - upgrade android grade plugin to 1.5.0
[android] #2386 - Add vector drawable and rippleDrawable for attribution icon

[android] #2736 - Replace bitmap assets with vector drawable
2015-11-25 21:25:32 +01:00
Brad Leege
5747bee1b8 [android] #2931 - Adding Zoom button to UI 2015-11-13 16:52:58 -08:00
Brad Leege
803d8bbd4e [android] #2931 - Making Manual Zoom Navigation Drawer Item Open Manual Zoom Activity 2015-11-13 16:52:58 -08:00
Brad Leege
69a2b06e21 [android] #2931 - Creating basic Activity for Manual Zoom 2015-11-13 16:52:58 -08:00
Brad Leege
1c9d85e0de [android] #2931 - Adding Manual Zoom As Drawer Option 2015-11-13 16:52:58 -08:00
Tobrun
f4de4a799c [android] #3023 - reactive token generation
[android] #3023 - update documentation to reflect change
2015-11-13 11:21:41 +01:00
Tobrun
bcd5db4a46 [android] #3019 - optimise visible coordinatebounds 2015-11-13 10:43:42 +01:00
Tobrun
0ef7b42ae3 [android] #3001 add config changes example to test app 2015-11-13 10:39:22 +01:00
Tobrun
569399c1ae [android] #2989 - moved access token to test app
[android] #2989 - gitignoring config.xml

[android] #2989 - move token file, rename

[android] #2989 fixing gitignore, renaming config file
2015-11-13 08:52:32 +01:00
Leith Bade
23d1b75e78 [android] Check for location permission in MyLocationTrackingModeActivity
Fixes #2110
2015-11-09 20:05:09 +11:00
Brad Leege
bbf16b2b1d [android] #2891 - 23.0.2 Take 2 2015-11-05 17:49:53 -06:00
Leith Bade
1fcc606d27 [android] Save polylines
Fixes #2906
2015-11-06 00:52:38 +11:00
Brad Leege
fb9df7674c [android] #2891 - Going back to Android Build Tools 23.0.1 2015-11-03 09:51:16 -06:00
Leith Bade
d0e96c5303 [android] Update to build tools 23.0.2
Fixes #2891
2015-11-03 21:31:41 +11:00
Leith Bade
f45dc606c6 [android] Add setZoomControlsEnabled and setAllGesturesEnabled
Fixes #1943
2015-11-03 16:34:14 +11:00
Leith Bade
009930ab8e [android] Save added markers in test app
Fixes #2877
2015-10-31 09:49:37 +11:00
Leith Bade
6bb709ef42 [android] Update test app icon
Fixes #2838
2015-10-28 22:36:35 +11:00
Tobrun
8fdc033eab [android] #2797 - addLocationBearing part one 2015-10-28 11:22:50 +01:00
Leith Bade
a2ac435171 [android] Grey out GPS marker when location is stale
Fixes #2694
2015-10-28 21:10:13 +11:00
Tobrun
f3ffb45cf6 [android] #2809 - addPolylines and removeAnnotations in JNI, added feature activity + sanity test case 2015-10-27 11:16:55 +01:00
Leith Bade
5406048a57 [android] Use hi res icons in test app menu 2015-10-26 23:19:38 +11:00
Leith Bade
5e5348c286 [android] Remove unused permission 2015-10-26 23:18:17 +11:00
Tobrun
a638b8ed38 [android] #2758 - add my location tracking mode 2015-10-26 11:52:34 +01:00
Tobrun
388636b058 [android] #2726 - finalise BulkAddMarkers activity 2015-10-26 10:53:14 +01:00
Tobrun
bf8c5feb0b [android] #2726 - moved utility classes to separate package 2015-10-26 10:53:14 +01:00
Tobrun
8ca818f1ce [android] #2523 - fix toolbar alignment issue 2015-10-25 10:22:12 +01:00
Brad Leege
a48a5ee161 #2784 - Restoring API minimum to 15 for TestApp 2015-10-24 21:55:18 -05:00
Leith Bade
39911e581c [android] Move android files
Fixes #2032
2015-10-25 01:07:16 +11:00