Commit Graph

9 Commits

Author SHA1 Message Date
Tobrun
18d451f393 [android] #3238 inconsistent package name 2015-12-11 09:11:26 -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
f4de4a799c [android] #3023 - reactive token generation
[android] #3023 - update documentation to reflect change
2015-11-13 11:21:41 +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
Brad Leege
bbf16b2b1d [android] #2891 - 23.0.2 Take 2 2015-11-05 17:49:53 -06: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
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