Commit Graph

7032 Commits

Author SHA1 Message Date
Tobrun
271d8df998 [android] #3688 - naming consistency bearing and direction 2016-02-22 10:58:03 +01:00
Tobrun
9061d004db [android] #4050 - expose style urls via public.xml 2016-02-22 10:38:32 +01:00
Tobrun
ab8441ebdc [android] #4057 - quick zoom fix 2016-02-22 09:18:38 +01:00
Thiago Marcos P. Santos
c51c0d5db2 [tests] Timer is not needed to keep the main loop alive
The loop will be alive until `.stop()` is called.
2016-02-22 09:21:51 +02:00
Bruno de Oliveira Abinader
59c70f7d7c [gyp] Check for gyp variable conditions on OS X 2016-02-21 17:34:34 +02:00
Bruno de Oliveira Abinader
0c57efb9a8 [gyp] Use variant compiler flags when needed 2016-02-21 17:34:15 +02:00
Bruno de Oliveira Abinader
bfd5ad3220 [gyp] Coverage only if BUILDTYPE=Debug and ENABLE_COVERAGE=1
Coverage compiler and linker flags are used only when (1) in debug build
and (2) with ENABLE_COVERAGE set to 1. Besides, because OS X's libtool
is unable to understand '--coverage', this linker flag is only used
genrating executable targets. Also, using 'link_settings' to specify
linker options and separate instructions for OSX and Linux.
2016-02-21 17:22:26 +02:00
Thiago Marcos P. Santos
8219d72135 [node] Not all tests were calling map.release()
Which prevents the test runner to close.
2016-02-20 18:16:33 +02:00
Thiago Marcos P. Santos
3633fd7ebd [node] Destroy the RunLoop with the last Map object
The last map object to get destroyed will also destroy
the RunLoop (which will also destroy the AsyncTask).

This will clear any reference to the Node default main
loop and let it close.

Downside is that we need to make sure we are always calling
`map.release()`.
2016-02-20 13:33:13 +02:00
Thiago Marcos P. Santos
8a53c1a881 [core] libuv unref() not really needed
The run loop will be kept alive because it has an `AsyncTask`. We
also can simple stop the loop with `uv_stop()`.

The `RunLoop` is still gonna be the last object to be destroyed
because it is the first object to be created in the thread, so
by design it won't outlive `Timer`s and `AsyncTask`s.

This patch won't change the current behavior, will just make
the code simpler.
2016-02-20 13:33:13 +02:00
Bruno de Oliveira Abinader
1dbfbfe7e3 [tests] Upload coverage reports to coveralls.io 2016-02-20 11:43:42 +02:00
John Firebaugh
675a628aa2 [node] Fix handling of response callback with no arguments; add test 2016-02-19 17:25:57 -08:00
John Firebaugh
f7f89cb44a [build] make clean shouldn't delete Xcode projects
Fixes #2493
2016-02-19 17:13:50 -08:00
John Firebaugh
a27c9a4680 [build] Remove obsolete directories from make clean 2016-02-19 17:13:50 -08:00
Brad Leege
9d3cc6f647 [android] #3889 - Adding detection of Scroll / Pan for DragEnd analytic 2016-02-19 12:40:08 -06:00
Brad Leege
5ef166269a [android] #3889 - Adding Pitch Start 2016-02-19 12:40:08 -06:00
Brad Leege
6d8befe401 [android] #3889 - Adding Rotation Start. 2016-02-19 12:40:08 -06:00
Brad Leege
5e5c7ed71f [android] #3889 - Adding Pinch Start. Refactoring trackGestureEvent to accept raw x and y coordinates. 2016-02-19 12:40:08 -06:00
Brad Leege
d9216f9831 [android] #3889 - Adding Pan Start / Fling event 2016-02-19 12:40:08 -06:00
Brad Leege
e0df0971cb [android] #3889 - Adding Quick Zoom event 2016-02-19 12:40:08 -06:00
Brad Leege
92c5a05f59 [android] #3889 - Adding Double Tap and Two Finger Tap gesture tracking 2016-02-19 12:40:08 -06:00
Brad Leege
425d718e42 [android] #3889 - Building trackGestureEvent() method and using it initially for Single Tap gesture 2016-02-19 12:40:07 -06:00
Jason Wray
15b9f3171a [ios] Refactor MGLMapView's location services
- Pause location services when the app goes to sleep; address iOS 8 blue bar issue.
- Only ask for location permissions if not already granted/denied.
- Cleanup usage of `.isDormant` → `.dormant`

Partially addresses #2945, for which a full and complete fix waits until #4030.
2016-02-19 13:14:54 -05:00
John Firebaugh
e4b2ea0982 [ios, osx] Don't delete a mutex with an active lock
The lock is in place to enforce that `async` is not accessed if the request has been, cancelled. Therefore it's not necessary to hold the lock beyond setting cancelled to true, and in fact it's unsafe to so: if this is the last remaining shared reference, `delete this` will destroy the mutex. If the lock was held, it would then be orphaned.
2016-02-19 10:11:27 -08:00
Bruno de Oliveira Abinader
6792d78952 [tests] Use ENABLE_COVERAGE=1 envvar to enable coverage
This detaches coverage data collection from typical debug build.
2016-02-19 17:40:30 +02:00
Tobrun
6a2d910ccd [android] #4040 - disable resource prefix 2016-02-19 15:53:18 +01:00
Tom MacWright
d697028029 Hit missed lines in equality tests 2016-02-19 15:26:44 +01:00
Tobrun
9ec0103431 [android] #4018 - migrated max/min zoom to UiSettings + added tests + update sample app 2016-02-19 15:24:16 +01:00
Tobrun
27ed15c18c [android] #4017 - update unit test for MapboxMap 2016-02-19 15:22:56 +01:00
Tobrun
f2299c30c3 [android] #4015 - added unit test for CameraPosition 2016-02-19 15:21:35 +01:00
Jason Wray
21ce6fbdf9 [osx] Set default polyline and polygon color to the selected menu item color
Fixes #3927
2016-02-18 19:27:49 -05:00
Jason Wray
390057b569 [ios] Set default polyline and polygon color to the map view tint color
Fixes #3927
2016-02-18 19:23:15 -05:00
John Firebaugh
9c26f06318 [core] Thread GLObjectStore through to Holder objects
This eliminates the reliance on ThreadContext to provide GLObjectStore, and statically enforces that GL cleanup functions happen only when GLObjectStore::performCleanup is called.

With the elimination of the Map thread, this becomes important because there may be multiple GLObjectStore's per-thread, and Map will need to ensure that the correct context is active when calling GLObjectStore::performCleanup.
2016-02-18 15:15:24 -08:00
John Firebaugh
7b39ce9521 [core] Remove ThreadContext::getFileSource; instead thread FileSource through 2016-02-18 15:15:24 -08:00
John Firebaugh
d5eb5240f8 Revert "[gl] Updated CustomLayer tests"
These tests are intended to reflect how someone using the custom layer feature might actually write their callbacks. Therefore the callbacks should not use mbgl-specific classes.

This reverts commit 69112a2a09.
2016-02-18 15:15:24 -08:00
Minh Nguyễn
9f4e8dd676 [ios] Removed manual framework linking from installation instructions
Even these three are no longer needed, now that the umbrella header pulls them in.
2016-02-18 14:51:51 -08:00
Minh Nguyễn
1c25dc098e [ios] Import required frameworks with static framework umbrella
The umbrella header inside the static framework now imports the required iOS SDK frameworks so manual linking is unnecessary. This change corrects a regression introduced in #3183, when the umbrella header used in version 3.0.1 was removed.
2016-02-18 14:41:47 -08:00
Minh Nguyễn
a57a88a038 [ios] Clarified manual installation instructions
People are used to dragging frameworks into the Linked Frameworks and Libraries section, but the SDK only works when embedded inside the application.

Fixes #4011.
2016-02-18 13:26:54 -08:00
Minh Nguyễn
87f28f3f44 [osx] Typo in readme 2016-02-18 10:46:01 -08:00
Brad Leege
fd96b3e1c7 [android] #3119 - Updating mapbox_access_token Name in developer-config.xml 2016-02-18 12:14:11 -06:00
Brad Leege
e2bbfc19c5 [android] #3119 - Updating mapbox_access_token Name in developer-config.xml 2016-02-18 12:12:42 -06:00
Brad Leege
09cac18420 [android] #3897 - Refactoring check that determines when to send turnstile event 2016-02-18 11:23:34 -06:00
Brad Leege
5497973bd7 [android] #3897 - Updating TestApp versionCode and versionName to make testing easier to spot 2016-02-18 11:23:34 -06:00
Brad Leege
43f8e6f1a7 [android] #3897 - Changing initial flush delay time to 10 seconds 2016-02-18 11:23:34 -06:00
Brad Leege
7c1cef45e3 [android] #3897 - Initial Map Load event 2016-02-18 11:23:34 -06:00
Brad Leege
5da1e2bc7d [android] #3897 - Initial Turnstile event with when to push logic infrastructure 2016-02-18 11:23:33 -06:00
Tobrun
e4fa1816a7 [android] #4009 - add tests for tracking settings, optimise architecture to make it testable through unit tests 2016-02-18 16:06:10 +01:00
Bruno de Oliveira Abinader
dd7bbc024a [tests] Fix 'linux' debug build on OSX 2016-02-18 17:02:08 +02:00
Bruno de Oliveira Abinader
cdfe4e46aa [tests] Added coverage report target 'check'
Issuing 'make check' now collects unit tests coverage data and generates
a report in HTML.
2016-02-18 15:01:58 +02:00
Bruno de Oliveira Abinader
ec97264431 [osx] Enable coverage support for debug build 2016-02-18 15:01:58 +02:00