Konstantin Käfer
4e3503ea6c
[core] do not use std::atomic_* with shared_ptrs
...
It's not implemented in GCC 4.9.2's stdlib (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57250 ). Instead, we're now always using a mutex to protect access; we previously created a mutex only on cancelation, but since we're always canceling now, it makes sense to allocate it right away.
2015-10-26 15:54:27 +01:00
Konstantin Käfer
9bbd9aba3a
[core] set a timer and auto-refresh requests when they expire
...
When we get a request with an explicit expiration time, we're now starting a timer, and will trigger a refresh once the data expires. This gives requesters a chance to update their data.
2015-10-26 15:54:27 +01:00
Konstantin Käfer
6a7334b882
[core] add support for stale responses
...
We're now returning stale responses from cache. Those responses will have the `stale` flag set to true. Currently, all requesters in the core code discard stale responses, and cancel the request immediately after they got a non-stale response.
2015-10-26 15:54:27 +01:00
Konstantin Käfer
096a3edf39
[core] use RAII-style lifetime tracking of Request objects
2015-10-26 15:54:27 +01:00
Konstantin Käfer
94a5ac857f
[core] all requests have to be canceled explicitly now
...
By not automatically destroying Request objects after the result has been delivered, we are making sure that we can potentially fire the callback multiple times without adverse effects. This means that you have to hold on to the result of fs->request(), can explicitly cancel it if you don't want to be notified of data changes anymore. Not doing so will monitor the request indefinitely and will prevent the app from exiting.
2015-10-26 15:54:27 +01:00
Leith Bade
5406048a57
[android] Use hi res icons in test app menu
2015-10-26 23:19:38 +11:00
Leith Bade
5e5348c286
[android] Remove unused permission
2015-10-26 23:18:17 +11:00
Tobrun
a638b8ed38
[android] #2758 - add my location tracking mode
2015-10-26 11:52:34 +01:00
Tobrun
388636b058
[android] #2726 - finalise BulkAddMarkers activity
2015-10-26 10:53:14 +01:00
Tobrun
bf8c5feb0b
[android] #2726 - moved utility classes to separate package
2015-10-26 10:53:14 +01:00
Thiago Marcos P. Santos
1007dc9754
[core] Initialize attributes before using them
...
Spotted by valgrind.
2015-10-26 10:41:16 +02:00
Tobrun
8ca818f1ce
[android] #2523 - fix toolbar alignment issue
2015-10-25 10:22:12 +01:00
Brad Leege
a48a5ee161
#2784 - Restoring API minimum to 15 for TestApp
2015-10-24 21:55:18 -05:00
Brad Leege
17d9461bfb
#2784 - Restoring API minimum to 15
2015-10-24 21:51:28 -05:00
Leith Bade
39911e581c
[android] Move android files
...
Fixes #2032
2015-10-25 01:07:16 +11:00
Leith Bade
d2e01290eb
[android] Remove the WRITE_EXTERNAL_STORAGE permission from test app
...
Fixes #2655
2015-10-25 00:01:18 +11:00
Leith Bade
77b0e240a3
[android] [ios] [linux] [osx] Update many mason modules
2015-10-24 19:33:42 +11:00
Leith Bade
6c71e12963
[android] Use ViewCompat in CompassView for pre-Jelly Bean animation
2015-10-24 18:54:31 +11:00
Leith Bade
e3517641d8
[android] Fix TEXTREL dlopen error on Android 6.0 x86
...
Update libcurl to 7.45.0 and OpenSSL to 1.0.1p
Fixes #2772
2015-10-24 14:50:00 +11:00
Justin R. Miller
847cee0c89
re-bump for ios-v3.0.0-pre.2
2015-10-23 16:33:37 -07:00
Justin R. Miller
cf46b2f770
bump iOS version for 2.2.0-pre.2
2015-10-23 16:08:34 -07:00
John Firebaugh
ffb02d1b83
Optimize Travis build order: start osx builds first
...
Travis seems to queue jobs in the order listed in .travis.yml, so put the
slower jobs first in an attempt to reduce the overall time for a build.
2015-10-23 15:41:10 -07:00
John Firebaugh
a243f41cb4
[iOS] Don't build iOS on Travis, it's too slow
2015-10-23 15:17:59 -07:00
Bruno de Oliveira Abinader
b8c94e76c2
Fixed typo in default styles
2015-10-23 15:09:08 -07:00
Justin R. Miller
144a4714f0
refs #2684 : integrate Twitter Fabric
2015-10-23 14:13:56 -07:00
John Firebaugh
8d79c25765
[core] Remove MapData dependency from StyleParser
...
MapData was needed for two things: getting the default transition and
fade durations, and detecting still rendering vs. continuous.
The first is avoided by making transition durations optional, and
supplying the default fallback value at evaluation time. The second did
not fix the still rendering issue, and will be followed up with a
different approach in a later commit.
2015-10-23 13:56:55 -07:00
John Firebaugh
0665b64590
[core] Introduce StyleCalculationParameters
...
This makes subsequent changes to the the parameter list less intrusive.
2015-10-23 13:56:55 -07:00
John Firebaugh
7a03d734fd
[core] Respect source layer z-order for style-sourced annotations
2015-10-23 13:27:14 -07:00
Minh Nguyễn
930c624364
[publish ios-v3.0.0-pre.1]
2015-10-23 12:40:19 -07:00
Minh Nguyễn
c82991e74c
Bumped podspec for 3.0.0-pre.1
2015-10-23 12:38:01 -07:00
Bruno de Oliveira Abinader
46e2f13e68
[core] Fix integer overflow for high maximum zoom levels
2015-10-23 11:00:52 -07:00
Minh Nguyễn
224e405976
Typo in iOS changelog
...
[skip ci]
2015-10-23 10:35:12 -07:00
Minh Nguyễn
1e9cf71b5a
IB inspectable for allowing tilt
2015-10-23 10:09:27 -07:00
Leith Bade
28113d92e7
[android] Use new GPS markers.
...
Add missing dpi for mapbox logo and compass.
Fixes #2732
Fixes #2690
2015-10-24 03:28:16 +11:00
Adam Hunter
45a8aa6a8f
[ios] Fix for a crash on iPod Touch related to carrier vendor
...
Reverts #2691 , which only fixed simulator crashing.
Refs #2687
2015-10-23 12:07:55 -04:00
Tobrun
ba4a2965c7
[android] #2751 - added sanity tests for feature activities
2015-10-23 16:59:57 +02:00
Leith Bade
4af9797994
[android] Use hardware layer for compass fade
...
Set minimum API level to 14 (don't know why it 15)
Set test app version to 2.2.0
2015-10-24 00:43:44 +11:00
Leith Bade
e1d66a7aac
[android] Fix disabling compass
...
Fixes #2752
2015-10-23 21:04:24 +11:00
Leith Bade
1240f9a019
[android] Test max 27.4k markers
...
Add timing logging
For #2726
2015-10-23 20:58:11 +11:00
Tobrun
0ff57342fd
[android] #2748 - added a coordinatebounds unit test
2015-10-23 10:07:49 +02:00
Leith Bade
267e33ba5a
[android] Add SpriteFactory.drawable for custom markers
...
Used in InfoWindowAdapter activity
Fixes #2744
2015-10-23 17:06:20 +11:00
Leith Bade
54762825b0
[android] Fix JNI local ref overflow
...
Change test to 1000 markers
For #2726
2015-10-23 16:40:44 +11:00
Leith Bade
f71d61fa91
[android] Add missing satellite streets style to Android and iOS.
...
As well as default_styles.cpp
Fixes #2739
Fixes #2740
2015-10-23 14:09:24 +11:00
John Firebaugh
1f4144c65a
[core] Remove StyleLayer::isBackground()
2015-10-22 17:53:16 -07:00
Leith Bade
bb4bf9a779
[styles] Update to styles release v1.1.4
...
Fixes #2585
2015-10-23 10:33:37 +11:00
Bruno de Oliveira Abinader
54858dae8c
[core] Added save/restore capabilities to GL config
2015-10-22 16:02:39 -07:00
Bruno de Oliveira Abinader
a1c53d92e5
[core] Added stencilOp, depthFunc and blendFunc to GL config
...
All GL values are now reset upon Painter setup.
2015-10-22 16:02:39 -07:00
Bruno de Oliveira Abinader
5fa144647d
[core] Added GLContextMode to MapData
...
Adding new mbgl::GLContextMode enum to mbgl::Map ctor, which gets stored
in MapData. In shared GL context environments, we cannot assume that the
GL state that has been left since the last draw is the same, so we reset
the GL configurations to their default values.
2015-10-22 16:02:39 -07:00
Brad Leege
7a51a53cac
[android] #2689 - Setting new 2.2.0-SNAPSHOT version for development
2015-10-22 16:01:25 -07:00
John Firebaugh
c46a8254c4
[core] Style-sourced shape annotation properties
...
This introduces the possibility to source the type and style properties
of a shape annotation from a designated layer in the style.
2015-10-22 15:27:53 -07:00