Commit Graph

754 Commits

Author SHA1 Message Date
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
Brad Leege
5fb0e878b4 [android] #5680 - Adding 1000 event cap to send telemetry data 2016-07-13 18:32:14 -07:00
Thiago Marcos P. Santos
389c7615eb [core] Revert workaround for std::atomic on ARMv5
Got fix on r12.

https://github.com/android-ndk/ndk/issues/31
2016-07-13 17:56:51 +03:00
Tobrun Van Nuland
b9c273d197 [android] #5649 - add a ViewPager example
[android] #5649 - add back pressed event for action bar home icon
2016-07-13 16:43:01 +02:00
Tobrun Van Nuland
9387523376 [android] #5649 - fixes fragment null pointer when creating a SupportMapFragment without a OnMapReadyCallback 2016-07-13 16:43:01 +02:00
Justas Medeisis
566c6cf618 [android] #5649 - Request MapView parents not to intercept scroll gestures. 2016-07-13 16:43:00 +02:00
Tobrun
3dacbdd42e [android] #5438 - add bearing to MyLocationView for the SDK camera object
[android] #5438 - integrate MyLocationView set bearing inside the MapView setBearing

[android] #5438 - invalidate the MapView instead of calling update from core.

[android] #5438 - add bearing MyLocationView to setBearing focal point on MapView

[android] #5438 - Get correct bearing when camera object is rotated around the z-axis, notify MyLocationView when camera position changes, update test utilities.

[android] #5438 - fixes compass tracking
2016-07-13 14:52:15 +02:00
Tobrun Van Nuland
081c61dcc2 [android] #5652 - fix PressForMarkerActivity setup to follow best practices of loading a style and initial location of a MapView as early as possible. 2016-07-13 14:48:55 +02:00
Tobrun
cbfc9bc33c [android] #5541 - removes requirement of MapboxAccountManager.start before setContentView.
[android] #5541 - add a MapboxAcountManagerNotStartedException when calling getInstance when not started.

[android] #5541 - fixes using access tokens in attributes & MapboxMapOptions

[android] #5541 - improved MapboxAccountManager exception message
2016-07-13 14:47:42 +02:00
Thiago Marcos P. Santos
cc3a81291a [android] Build release with -Os and -fvisibility=hidden
Optimize for size.
2016-07-13 13:50:50 +03:00
Bruno de Oliveira Abinader
761c9d44b2 [android] Update {Line,Fill}Annotation properties setter 2016-07-13 11:57:09 +03:00
Brad Leege
a73c81cc55 [android] #5613 - Limiting location event latitudes and longitudes to 7 digits after the decimal place 2016-07-12 16:59:33 -07:00
Tobrun
caba8c11b9 [android] - remove duplicate bearing/direction API from MapView 2016-07-11 15:52:23 +02:00
Tobrun
d929e32217 [android] #5513 - make sure view is measured first before anchoring 2016-07-07 14:01:23 +02:00
Tobrun
85756f360e [android] - Resolves updating marker view position with SurfaceView 2016-07-07 14:00:05 +02:00
Young Hahn
71a3b1d0db [core] geometry@0.8.0 / geojsonvt@6.0.0 (#5514)
* [core] geometry.hpp 0.8.0

* geojsonvt @ 6.0.0

* Update platform deps, build scripts

* Perf optimizations/cleanup

* Rebase in geometry@080

* D.R.Y. etc

* Ensure fill annotation geometries have closed rings.

* Optimizations

* Update to geojsonvt @ 6.1.0 for clean handoff between geojson parsing and geojsonvt

* Apply close multi/poly geoms for line annotations as well
2016-07-06 17:29:34 -04:00
Thiago Marcos P. Santos
480e26c53f [android] Add support for timers on the main thread
Wake up the main thread run loop with a file descriptor event from a
thread that exists for this sole purpose.
2016-07-06 17:43:19 +03:00
Thiago Marcos P. Santos
2425cf4ef8 Revert "[android] Do not create Timers on Default main loops"
This reverts commit 13cd75f099.
2016-07-06 17:43:09 +03:00
Tobrun Van Nuland
99a4850613 [android] #5000 - initial surface view implementation. 2016-07-06 11:01:37 +02:00
Thiago Marcos P. Santos
dfd0b105cd [android] Fix issue when stop is called before run on the RunLoop
The current ::stop() implementation was not thread safe and we
should queue the ::stop() for the next loop iteration so even
if we call ::stop() before ::run(), it gets processed.
2016-07-05 21:04:27 +03:00
Thiago Marcos P. Santos
13cd75f099 [android] Do not create Timers on Default main loops
Not supported, because we don't have control over the Looper
timeout like we do for Loopers we create. On the main thread,
Android takes care of making the application sleep and sets
an arbitrary timeout. This could be properly fixed by implementing
timers in Java, but we don't really have the use case of timers
in the main thread.
2016-07-05 21:04:27 +03:00
Thiago Marcos P. Santos
b3b86f9be4 [android] Fix hang when calling Timer::start() twice
Calling start() from the callback was making the timer
effectively stop.
2016-07-05 21:04:27 +03:00
Thiago Marcos P. Santos
e579199ac1 [android] Fix a bug when canceling tasks
If the next task in the queue gets canceled, we need to
adjust the iterator to the next task, otherwise a canceled
task gets executed.
2016-07-05 21:04:27 +03:00
Thiago Marcos P. Santos
70d4ebb347 [android] Fix default RunLoop not stopping
stop() for default RunLoop is only used by unit tests and we need
to wake the ALooper to get past run().
2016-07-05 21:04:27 +03:00
Tobrun
2bf4e20052 [android] #5104 - make nativePixelForLatLng faster (74ms to 57ms)
[android] #5104 - make nativeLatLngForPix faster (52ms - 45ms).

[andriod] #5104 - make nativeSetLatLng faster (117ms to 105ms)

[android] #5104 - make nativeFlyTo faster (106ms to 97ms)

[android] #5104 - make nativeEaseTo faster (103 to 94ms)

[android] #5104 - make nativeJumpTo faster (94 to 86ms)

[android] #5104 - make nativeProjectedMetersForLatLng faster (32 to 30ms)

[android] #5104 - make nativeLatLngForProjectedMeters faster (32 to 30ms)
2016-07-05 15:43:19 +02:00
Tobrun
a40953dd71 [android] - Remove StyleInitializer class, obsolete with introduction MapboxAccountManager 2016-07-05 13:34:22 +02:00
Tobrun
6b0c16a148 [android] #5564 - fixes latitude lint range setup for getMetersPerPixelAtLatitude 2016-07-05 10:49:47 +02:00
Tobrun
87209bd04f [android] - add javadoc to mapboxmapoptions 2016-07-05 10:07:08 +02:00
Tobrun
ced4ad63f7 [android] - fixes deprecation javadoc of accessToken 2016-07-05 09:09:31 +02:00
Konstantin Käfer
eb7cfea7ea [android] upgrade to NDK r12b 2016-07-01 18:26:55 +02:00
Cameron
a440598e2b [android] updated the testapp icon 2016-06-30 15:03:21 -05:00
John Firebaugh
03f30f5207 Merge remote-tracking branch 'origin/release-android-v4.1.0' 2016-06-29 17:07:15 -07:00
Brad Leege
dfbee38f53 [android] #5510 - Setting version to 4.2.0-SNAPSHOT 2016-06-29 12:23:51 -05:00
Brad Leege
a8cd7ecdfb [android] #5510 - Updating CHANGELOG for Android 4.1.0 Release 2016-06-29 12:20:25 -05:00
Brad Leege
ee4cb08e4f [android] #5510 - Fixing POM Name 2016-06-29 10:50:55 -05:00
Brad Leege
799dc9bd93 [android] #5510 - Setting properties to 4.1.0 for Release 2016-06-29 10:39:07 -05:00
Brad Leege
e2499207a7 [android] #4700 - Removing Deprecated annotation on MapboxMap.OnMyLocationChangeListener 2016-06-28 11:56:19 -05:00
Brad Leege
5cc174c0f5 [android] #5470 - Adding NaN and Infinite checks to location event tracking 2016-06-27 13:46:43 -05:00
Tobrun
3456e086ac [android] Fixes disappearing markers when crossing dateline, remove debug exception catch.
Fixes #5402
2016-06-27 10:18:38 -04:00
Tobrun
0d17bb1cc8 [android] #5479 - don't invalidate MapView when we are animating MyLocationView with an ObjectAnimator. 2016-06-25 10:03:04 +02:00
Tobrun
871f82dceb [android] #5479 - Don't disable rotate gesture if we have tracking disabled 2016-06-25 10:00:18 +02:00
Tobrun
76f9c1ac02 [android] #5479 - apply preRotate instead of postRotate for a correct transformation 2016-06-25 09:57:20 +02:00
John Firebaugh
3ccda59099 [android] Fix crash adding line or polygon annotation 2016-06-24 12:21:44 -07:00
Tobrun Van Nuland
64da7fa684 [android] Addresses marker view flat bug
Fixes #5427
2016-06-24 09:14:58 -04:00
Tobrun Van Nuland
b37de9f8f4 [android] - Fix locational runtime permissions
Fixes #5450
2016-06-24 08:56:11 -04:00
Tobrun Van Nuland
cff1a8929f [android] Make markers View.GONE when being added for the first time to the map
Fixes #5439
2016-06-23 12:13:36 -04:00
Tobrun Van Nuland
6b1a753fd4 [android] Recalculate offset with new anchor
Fixes #5421
2016-06-23 12:00:47 -04:00
Stephen Niedzielski
4c87da6b8f Allow Mapbox to be served to devices without Wi-Fi
android.permission.ACCESS_WIFI_STATE implies an android.hardware.wifi
requirement. Make Wi-Fi optional.
2016-06-23 08:08:13 +02:00
Jesse Bounds
5832f63acc [android] Cancel other gestures during shove.
This adds a guard so that when a shove gesture is occurring, no other
gestures take place. This helps avoid the disorienting feeling of
having the map move left and right and rotate while trying to tilt it
and looks more like Google maps.
2016-06-22 21:54:44 +02:00
Antonio Zugaldia
fa54b7dd06 [android] #5415 - add 4.1.0-beta.3 to CHANGELOG.md 2016-06-20 16:12:45 -04:00