Commit Graph

503 Commits

Author SHA1 Message Date
Tobrun
3602fdc040 [android] #3231 - added support for automatic tinting ui components used the client developer material colors 2016-04-26 12:28:36 +02:00
Brad Leege
d20174270b [android] #4829 - Use CopyOnWriteArrayList for non blocking iterations 2016-04-25 14:39:24 -05:00
Tobrun
158e163a69 [android] #4814 - simplified mock parcel testing, update tests to reflect these changes 2016-04-24 10:23:49 +02:00
Tobrun
21191b3094 [android] #4396 - Cleanup + javadoc TrackingSettings class 2016-04-23 07:16:49 +02:00
Tobrun
fe7ebb0966 [android] #4396 - fixed test activity tracking settings modes, Deprecated old configuration of tracking settings and introduced more flexible configuration. 2016-04-23 07:16:37 +02:00
Tobrun
452c892dab [android] #4396 - UserLocationView Refactor fix tests 2016-04-23 07:16:37 +02:00
Tobrun
b7c4919e7f [android] #4396 - UserLocationView accuracy & non-tracking animation + cleanup 2016-04-23 07:16:37 +02:00
Tobrun
f469cee1b4 [android] #4396 - fixup mason build issue 2016-04-23 07:16:37 +02:00
Tobrun
f40715d05e [android] #4396 - model integration 2016-04-23 07:16:17 +02:00
Tobrun
de44685a3f [android] #4396 - introduced behaviour model using a factory. fixed double tap zoom 2016-04-23 07:15:44 +02:00
Tobrun
45d219f7e9 [android] #4396 - cleanup code 2016-04-23 07:15:07 +02:00
Tobrun
f84268c4e9 [android] #4396 - new images for UserLocationView 2016-04-23 07:10:07 +02:00
Tobrun
00381a2ae0 [android] #4396 - UserLocationView refactor 2016-04-23 07:09:51 +02:00
Larry Geromegnace
b3e340ca11 [android] #4396 - UserLocationView improvements 2016-04-23 07:09:51 +02:00
Cameron Mace
75400836c6 [android] Changed javadoc wording for ease and animate camera
Fixes #4624
2016-04-22 11:04:38 -04:00
Tobrun
c636d5a613 [android] #2835 - limit the amount of object allocations on high traffic code 2016-04-22 13:38:17 +02:00
Tobrun
551d48883c [android] #4260 - added example to navigate from one activity containing a map to another containing a map 2016-04-20 09:11:01 +02:00
Tobrun
8703f1ef4b [android] #4754 - double map view example 2016-04-19 21:29:55 +02:00
Thiago Marcos P. Santos
7d80690f91 [android] Restore prior GLContext if exists
Apparently some versions of Android, notable 4.4.4 running
on my Nexus 5, creates a GLContext on the Android UIThread
which is the one we are now using for rendering after #2909.

If the context is not restored, nothing gets rendered (or
sometimes partially, or artifacts) because Android will try
to do GL stuff on the context used by Mapbox GL and mess things up.
2016-04-18 18:57:20 +03:00
Bruno de Oliveira Abinader
6857002cb9 [build] Bump geojson-vt-cpp to v4.1.2
Minor version bump to resolve cross-compilation issues while using
geojson-vt-cpp v4.1.0.
2016-04-18 14:17:45 +03:00
John Firebaugh
6e78eabfff [core] Clean up ThreadContext vestiges 2016-04-15 09:56:18 -07:00
John Firebaugh
3af3e72bb3 [all] Replace HTTPContextBase/HTTPRequestBase with FileSource 2016-04-14 14:18:19 -07:00
Thiago Marcos P. Santos
7bb74ac8db [android] Do not annotate methods with @UIThread
Not needed, same thread already.
2016-04-14 13:51:27 -07:00
Thiago Marcos P. Santos
ba3125142e [android] Make the correct GL context current 2016-04-14 13:51:27 -07:00
Thiago Marcos P. Santos
7b3c61f619 [android] Do not attach/detach to threads
Not needed as everything is now running on the same thread.
2016-04-14 13:51:27 -07:00
Thiago Marcos P. Santos
a65c19c569 [android] Only render after the surface is created 2016-04-14 13:51:27 -07:00
Thiago Marcos P. Santos
02db7fa852 [android] Create a RunLoop for the main thread 2016-04-14 13:51:27 -07:00
Thiago Marcos P. Santos
40e590b681 [android] Use ALooper_addFd() and callbacks to wake up
This is needed for plugging into an existing Looper because
we won't call ::run() on the main thread (this is called
on the Java side of the application automatically by Android).

But we still need to wake up and process the events. For that
we create a pipe and write to the pipe to wake up the main
loop and we process events on the callback of the fd handler.

Fixes #4682
2016-04-14 13:44:08 -07:00
John Firebaugh
204c7fee03 [core] Render from the main thread
Do not create a thread for the MapContext anymore.
2016-04-14 13:44:08 -07:00
Tobrun
ef65d2015c [android] #4335 - add clear method for removing annotations to MapboxMap 2016-04-13 18:15:51 +02:00
Brad Leege
7fa32a0d08 [android] #4689 - Adding Debug Mode Example 2016-04-12 18:13:45 -05:00
Tobrun
35b579fde1 [android] #4635 - fix rotate disabled with location tracking 2016-04-08 11:25:50 +02:00
Tobrun
18495fc19d [android] - fallback using to meta-data tag in Manifest or mapbox_access_token when using a MapFragment or SupportMapFragment 2016-04-08 10:08:47 +02:00
Vacxe
aaafebddd8 [android] - supportMapFragment: Check KEY_META_DATA 2016-04-08 10:08:47 +02:00
Tobrun
f3c64a4c95 [android] - Marker test coverage 2016-04-08 10:06:58 +02:00
John Firebaugh
f964e40e7e [build] Refactor and simplify build system
* Main gyp files are now standardized as platform/<platform>/platform.gyp.
* Each platform gyp file defines appropriate loop_lib and headless_lib variables.
* Each platform gyp file includes mbgl.gypi, which defines base targets which may be useful to all platforms.
* CI targets are consistent across platforms: `make $(PLATFORM) && make test-$(PLATFORM)`.
* Renamed the "linux" test app to "glfw". It's now built in OS X CI.
* Android build flakiness is fixed.
* iOS CI builds the bench and iosapp targets.
* Mesa version is now in one place.
* CI scripts use bash "strict mode" and correct error handling.
* All build output goes to the build directory.
* Removed vestigial iOS/OS X/Android Travis scripts.
2016-04-07 18:01:02 -07:00
Brad Leege
219fa2f10c [android] #4636 - Updating Gradle Wrapper to 2.12 2016-04-07 15:09:06 -05:00
Brad Leege
92c946d404 [android] #4636 - Updating to Android Gradle Build tools to 2.0.0 2016-04-07 15:09:06 -05:00
Tobrun
c8ee5dadaa [android] #3643 - improved android touch target when calling getAnnotationsInBounds 2016-04-07 21:52:34 +02:00
Brad Leege
891685188b Merge branch 'syntaxSugar' of git://github.com/vacxe/mapbox-gl-native into vacxe-syntaxSugar 2016-04-07 12:27:12 -05:00
Brad Leege
62d25b47ae [android] #4629 - Moving event queue clearing to finally block to better protect against HTTP errors 2016-04-07 12:23:51 -05:00
Brad Leege
1f35112a2e [android] #4629 - Increasing event flush to 3 minutes to mirror iOS and clearing events when connectivity check fails 2016-04-07 12:23:51 -05:00
Vacxe
c57edfc6f5 MapboxEventManager: operator size optimized 2016-04-07 12:53:11 +03:00
Brad Leege
9a3e8ae571 [android] #4619 - Creating standalone CustomLayerActivity example 2016-04-06 14:44:52 -05:00
Brad Leege
3670c8a914 [android] #4609 - Restoring name of BulkMarkerActivity 2016-04-06 11:02:25 -05:00
Thiago Marcos P. Santos
4b05705194 [android] Do not use libuv
Build using Looper instead, provided by the NDK.
2016-04-06 05:01:48 -03:00
Thiago Marcos P. Santos
10b503eabf [android] Attach thread on the RunLoop
Needed because Looper could be used by Java and it would crash
complaining that we didn't detach otherwise.
2016-04-06 04:52:51 -03:00
Thiago Marcos P. Santos
74a1d3c164 [android] Introduce RunLoop based on Looper
Also implement a Timer and AsyncTask based on Android's Looper.
2016-04-06 04:52:51 -03:00
Brad Leege
a64775a909 [android] #4365 - Mirroring descriptive subpackage names with categories in the app UI 2016-04-05 11:51:08 -05:00
Brad Leege
4ec2f8966e [android] #4365 - Moving example activities to more descriptive subpackage names for easier discovery 2016-04-05 11:51:08 -05:00