Commit Graph

487 Commits

Author SHA1 Message Date
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
Brad Leege
fc7799d224 [android] #4365 - Making geocoder instructions more descriptive. 2016-04-05 11:51:08 -05:00
Tobrun
63780d07f3 [android] #4365 - make dismiss on gesture configurable, renamed activity to match UI in test app, cleanup 2016-04-05 11:51:08 -05:00
Tobrun
cda5884aa0 [android] #4365 - align buttons at bottom of screen 2016-04-05 11:51:08 -05:00
Tobrun
b5ece7ab90 [android] #4365 - renamed app name 2016-04-05 11:51:08 -05:00
Tobrun
408a6065dc [android] #4365 - same UI for both MapFragment as SupportMapFragment 2016-04-05 11:51:08 -05:00
Tobrun
9ff4ed856f [android] #4365 - add toolbar to Polygon example 2016-04-05 11:51:08 -05:00
Tobrun
08ccf4bd63 [android] #4365 - Polygon spelling mixup 2016-04-05 11:51:08 -05:00
Tobrun
7f4610817a [android] #4365 TestAppRefactor removed unneeded AsyncTask 2016-04-05 11:51:08 -05:00
Tobrun
1f57743edc [android] #4365 - removed metadata tag in AndroidManifst, obsolete due to remove ApiAccess 2016-04-05 11:51:08 -05:00
Tobrun
77b7251d71 [android] #4365 - final testapp refactor cleanup, removed ApiAccess class, introduced category packages, Renamed some classes 2016-04-05 11:51:08 -05:00
Tobrun
86003d1fb4 [android] - added tests for Annotation 2016-04-05 09:33:45 +02:00
Tobrun
92b494bc2f [android] #4586 - disable publish s3 2016-04-05 08:57:39 +02:00
Brad Leege
001d24dc33 [android] #4354 - Ensuring userAgent is always ASCII formatted 2016-04-04 17:32:40 -05:00
Tobrun
d0a2899107 [android] UI tests doc update 2016-04-02 09:38:10 +02:00
Tobrun
a88e206222 [android] #4553 - remove annotations fix 2016-04-02 09:35:10 +02:00
John Firebaugh
879382f724 [ios, osx] Replace libuv with native implementations 2016-04-01 09:26:54 -07:00