Konstantin Käfer
645f7c0cd4
use std::unique_ptr<> as a movable-only container directly instead of wrapping in another class
2015-04-16 17:52:58 +02:00
John Firebaugh
7000a4faf0
Merge pull request #1250 from mapbox/1250-separate-thread-object
...
Separate objects from Thread management
2015-04-16 08:50:24 -07:00
Mike Morris
ba12e514cc
move travis template to cloudformation directroy
2015-04-16 12:40:53 +02:00
Justin R. Miller
39bd83946f
[publish ios-v0.2.13]
2015-04-16 01:41:01 -07:00
Justin R. Miller
2ca6b0ed10
bump podspec version
2015-04-16 01:39:46 -07:00
Justin R. Miller
04c756bdd0
Merge pull request #1281 from mapbox/cache-parsed-tiles-memory
...
fixes #1157 , #1255 : cache parsed tiles in memory
2015-04-16 01:34:42 -07:00
Justin R. Miller
190709c6b1
fixes #1157 , #1255 : cache parsed tiles in memory
2015-04-16 01:15:41 -07:00
Justin R. Miller
c574acd64d
Merge pull request #1280 from mapbox/source-release-fix
...
[not ready] fixes #1267 : properly break reference cycle with tile data & style
2015-04-16 00:33:33 -07:00
Justin R. Miller
c49e6157f1
add comment
2015-04-15 22:21:04 -07:00
Justin R. Miller
d29534e437
fixes #1267 : properly break reference cycle with live tile data & style
2015-04-15 22:16:18 -07:00
John Firebaugh
ac25d32a09
Convert storage tests to RunLoop
2015-04-15 20:38:26 -07:00
John Firebaugh
5fa0512be2
Shorten method names
2015-04-15 20:38:25 -07:00
John Firebaugh
1eaf6b8c18
Stricter Thread<> interface
...
Implements a Thread<>::invoke interface that only permits calling
member functions with bound arguments.
Also introduce invokeWithResult, which accepts a callback and invokes
it, passing the result, on the invoking thread's RunLoop. This closes
the loop of two evented threads doing message passing.
2015-04-15 20:38:25 -07:00
Minh Nguyễn
ed74c6e23d
Merge pull request #1254 from mapbox/1050-bg
...
Detach GLKView while app is in background
2015-04-15 13:22:04 -07:00
Minh Nguyễn
ec987ca434
Assert that snapshot view obscures GL view when it exists
...
Just in case the host app mucks around with `MGLView`’s internal view hierarchy.
2015-04-15 10:18:15 -07:00
Brad Leege
109a693f00
Merge pull request #1274 from mapbox/1271-alloc-init
...
Changing "new" to "alloc init"
2015-04-15 10:16:08 -05:00
Mike Morris
5972a7d16e
make environment.hpp header public
2015-04-15 17:14:36 +02:00
Brad Leege
074687e732
#1271 - Changing "new" to "alloc init"
2015-04-15 09:39:00 -05:00
Minh Nguyễn
e19b6afb26
Leave GLKView in place, obscured by snapshot
...
Generate the snapshot using `-[UIView snapshotViewAfterScreenUpdates:]` and place it _over_ the `GLKView`. UIKit appears to be able to detect that the `GLKView` is completely obscured and avoids `-_display`ing it.
2015-04-14 22:23:13 -07:00
Brad Leege
88b8d452b9
Merge pull request #1269 from mapbox/1268-horizontal-accuracy
...
Adding horizontalAccuracy to location event
2015-04-14 18:30:52 -05:00
Brad Leege
21685caa2a
#1268 - Adding horizontalAccuracy to location event
2015-04-14 18:03:59 -05:00
Mike Morris
9f13392de0
Merge pull request #1260 from mapbox/defaults-gypi
...
define MACOSX_DEPLOYMENT_TARGET in common.gypi
2015-04-14 16:21:41 +02:00
Mike Morris
2fd22b8742
define MACOSX_DEPLOYMENT_TARGET in common.gypi
...
Needed in target_defaults to prevent node-gyp from overriding this everywhere with '10.5' from https://github.com/joyent/node/blob/master/common.gypi
2015-04-13 19:33:16 +02:00
Konstantin Käfer
1066504008
separate SQLiteCache::Impl header from implementation file
2015-04-13 18:38:39 +02:00
Konstantin Käfer
352ff64e06
rename SQLiteCache::Thread to SQLiteCache::Impl
2015-04-13 18:32:59 +02:00
Konstantin Käfer
452d12e6e6
make implementation files private headers
2015-04-13 18:28:18 +02:00
Konstantin Käfer
16849a341b
hide Thread<> and separate the Implementation object
2015-04-13 17:57:45 +02:00
Konstantin Käfer
278e6bd556
use std::tuple<> to forward parameters into the Thread<> object
...
works around GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47226
2015-04-13 12:58:47 +02:00
Mike Morris
89e226e10f
cherry pick fix for #110
2015-04-13 11:44:41 +02:00
John Firebaugh
3efbb69e0c
Ensure that ~TileData happens on map thread
...
Fixes #1251
2015-04-10 17:28:39 -07:00
Justin R. Miller
146a9f9fd3
[publish ios-v0.2.12]
2015-04-10 16:41:54 -07:00
Justin R. Miller
e572bf8988
bump podspec to 0.2.12
2015-04-10 16:39:34 -07:00
Justin R. Miller
32e5196373
change default style to Streets
2015-04-10 16:38:49 -07:00
Justin R. Miller
18ef67b002
Revert "Override file name for Mapbox Streets style JSON"
...
Mapbox Streets has stock naming again; reverting. Easier
to ensure we name properly than build in logic.
This reverts commit 0b35a88708 .
2015-04-10 16:34:42 -07:00
Justin R. Miller
53af2bda3f
bump CocoaPods
2015-04-10 16:09:48 -07:00
Justin R. Miller
42dd2bdc5b
[publish ios-v0.2.11]
2015-04-10 15:33:49 -07:00
Justin R. Miller
a233a39c0b
bump styles pin
2015-04-10 15:32:27 -07:00
Minh Nguyễn
c5b0478e9a
Detach GLKView while app is in background
...
Throw a static snapshot up for the app switcher. Hope you didn’t plan on moving markers around while the app is in the background.
Fixes #1050 , #1186 , #1203 , #1243 .
2015-04-10 14:29:18 -07:00
Konstantin Käfer
0f79a89502
don't shadow variable names
2015-04-10 23:19:35 +02:00
Brad Leege
2a468156a9
Merge pull request #1253 from mapbox/1252-created
...
Created Cleanup
2015-04-10 16:15:27 -05:00
Brad Leege
22a35c23be
#1252 - Merging 2 "created" attribute value setting attempts into 1
2015-04-10 15:53:07 -05:00
Konstantin Käfer
00e9cd9e9d
OS X needs -framework Foundation for CURL tests
2015-04-10 22:39:53 +02:00
Konstantin Käfer
4c7132337f
convert DefaultFileSource to use util::Thread<>
2015-04-10 22:37:27 +02:00
Konstantin Käfer
bd531b9e08
guarantee that Object stays around
...
Adds more documentation, and guarantees that the Object in the managed thread stays around until the Thread<> destructor is called. This might happen if .start() returns before .stop() is called, e.g. when a run loop in Object() terminates prematurely.
2015-04-10 15:52:02 +02:00
Konstantin Käfer
bba3d9838a
add Thread<T> and RunLoop
...
Thread<T> is a generic thread management object that starts a thread, creates an object T in that thread and calls its .start() function. When the Thread<T> object is destructed (which must happen in the thread that created it), it'll call the object's .stop() function, and wait for thread termination. The .stop() function must somehow get the thread to terminate. Note that object T's constructor/destructor/start()/stop() must be protected/private, and Thread<T> must be declared as a friend class. All public functions may be called from any thread and are exposed through operator->().
RunLoop encapsulates a libuv runloop and has a facility of dispatching function objects to the thread. It can be used either as a worker thread class by itself, or it can be derived from. This commit converts SQLiteCache to derive from RunLoop and removes the custom code used previously for managing the cache thread.
2015-04-10 15:36:32 +02:00
Justin R. Miller
8eafe36932
[publish ios-v0.2.10]
2015-04-09 23:45:52 -07:00
Justin R. Miller
159ffddefd
show Dark style in demo app
2015-04-09 23:45:04 -07:00
Justin R. Miller
ba8679b4ac
[publish ios-v0.2.10]
2015-04-09 23:08:30 -07:00
Justin R. Miller
1c7c78deda
bump podspec version
2015-04-09 23:07:19 -07:00
Justin R. Miller
087d5e7a64
[publish ios-v0.2.10]
2015-04-09 23:05:45 -07:00