Commit Graph

7323 Commits

Author SHA1 Message Date
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
John Firebaugh
18d8e80f52 [core] Demote "Unable to make space for entry" message from Warning to Debug (#4708) 2016-04-14 13:43:24 -07:00
John Firebaugh
a47ab85283 [core] Don't put static objects in a header file (#4707)
This causes duplicate objects -- one for every file that includes that header.
2016-04-14 12:11:02 -07:00
John Firebaugh
db9fb97ea8 [test] Fix use of uninitialized dimensions value (#4697)
Instead of calling resize, which would compare against the uninitialized dimensions values, initialize dimensions and needsResize directly.
2016-04-13 18:00:46 -07:00
John Firebaugh
009a28943c [build] Fail configure if a mason command fails 2016-04-13 17:07:29 -07:00
Jason Wray
7e0a2e36e6 [ios] Convert telemetry test server setting to user default
- Previously looked in app's Info.plist, now looks at NSUserDefaults
2016-04-13 18:04:06 -04: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
Konstantin Käfer
618b9f1dbf [darwin] use CFRunLoopSourceInvalidate() to also cancel any pending AsyncTask invocations 2016-04-12 12:46:59 -07:00
John Firebaugh
23a0e2a84e [osx] Yet another attempt at getting crash traces 2016-04-12 11:55:10 -07:00
Thiago Marcos P. Santos
2d580364a6 [core] Do the MapContext::cleanup() synchronously
This used to be async assuming the libuv behavior of holding the
main loop until all the messages are processed and also for avoiding
a deadlock at exit that no longer exits.

Now that we support multiple main loops implementation on different
platforms, we do the cleanup synchronously to make sure all the
platforms have the same behavior at exit.

Fixes #4631
2016-04-12 20:15:25 +03:00
Minh Nguyễn
24b4b1b514 [osx] Scroll to zoom
Added a hidden preference to MGLMapView that enables “unnatural zooming”, in which the scroll wheel zooms in and out, as in a Web browser, instead of scrolling the map, as is the platform convention on iOS and OS X.

Added a checkbox to osxapp’ preferences window that toggles this hidden preference via a binding. You can either use this checkbox or set the MGLScrollWheelZoomsMapView user default to YES.

Fixes #4670.
2016-04-12 09:27:28 -07:00
John Firebaugh
e37e08d225 [ios, osx] Avoid generating dSYM files in Debug configurations
Per https://labs.spotify.com/2013/11/04/shaving-off-time-from-the-ios-edit-build-test-cycle/
2016-04-11 21:22:34 -07:00
John Firebaugh
88ea342580 [ios] Build only i386 2016-04-11 21:21:36 -07:00
John Firebaugh
d8d3690010 [ios] Use the same build configuration for make ios and make test-ios 2016-04-11 21:21:36 -07:00
Jason Wray
eda132d922 [ios] Restart user location heading updates on validation
Fixes #4668. Thanks to @JThramer for reporting.
2016-04-11 23:21:05 -04:00
John Firebaugh
c3bed1dab8 [core] Fix race condition that could lead to a UNIQUE constraint failure (#4677) 2016-04-11 19:46:45 -07:00
John Firebaugh
be47e35a97 [ios, osx] The return of xcpretty, part II (#4676) 2016-04-11 16:45:14 -07:00
Mike Morris
c1a38b66e5 node-v3.1.1 2016-04-11 16:43:12 -07:00
Mike Morris
18768d6f88 unbundle node-pre-gyp to work around bundledDependencies bug in npm2 2016-04-11 16:40:33 -07:00
John Firebaugh
1209ae4213 [test] This "very unlikely" condition in fact happens regularly in CI (#4679) 2016-04-11 16:31:56 -07:00
John Firebaugh
6cbf0e4207 [osx] Add remaining gypi dependencies to Makefile 2016-04-11 15:08:25 -07:00
John Firebaugh
8c7dc19e3f [osx] Print crash diagnostics 2016-04-11 15:07:38 -07:00
Minh Nguyễn
bbde70e3f0 [ios] Fixed style count assertion 2016-04-11 13:28:04 -07:00
John Firebaugh
1c7c5af69d [ios] Run core unit tests in CI 2016-04-11 11:00:34 -07:00
Mike Morris
c507b8a693 node-v3.1.0
update deps in package.json
2016-04-11 10:25:55 -07:00
Bruno de Oliveira Abinader
5471122079 [build] run-*glfw-app should depend on glfw-app 2016-04-11 12:31:51 +03:00
John Firebaugh
c08bd4b465 [build] Add some dependencies to the Makefile 2016-04-08 17:17:58 -07:00
Mike Morris
911ff71b6c [node] clean up README.md [skip ci] 2016-04-08 18:53:05 -04: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
Mike Morris
f5d66f3622 [node] clarify API documentation [skip ci]
map.render returns raw pixel buffer and map.release can safely be called earlier
2016-04-07 18:00:21 -04:00
Mike Morris
c59b5fb5e6 [node] don't dispose parent module in NodeLog destructor 2016-04-07 17:35:58 -04:00
Jesse Bounds
89db01fef0 [ios] Add script to automate s3 build and publish process
A large part of the iOS SDK deploy process is creating the various
binary flavors, uploading them to s3, and then testing that those
uploads worked by downloading them from s3 before uploading and
attaching them to the github release.

This script automates that build, upload, download, upload and
attach process and can be run after `mbx auth`.
2016-04-07 16:44:43 -04: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
Bruno de Oliveira Abinader
ce0ba5f4d7 [build] Fix libuv usage in OS X 2016-04-07 19:17:24 +03:00