John Firebaugh
54fc3831f2
[core] Use Seconds::max() rather than -1 for simpler logic
2016-01-13 13:38:12 -08:00
John Firebaugh
96781c0a8d
[core] Inline OnlineFileRequestImpl::setResponse
...
In the cache response case, we don't want the failedRequests logic; cached errors, should they occur, shouldn't affect the scheduling behavior for real requests.
2016-01-13 13:38:12 -08:00
John Firebaugh
601e3d9d45
[core] Refactor down to two methods for scheduling a cache or real request
2016-01-13 13:38:12 -08:00
John Firebaugh
682b2335e5
[core] Inline OnlineFileRequestImpl::getRetryTimeout
2016-01-13 13:38:12 -08:00
John Firebaugh
ea45075e4d
[core] Inline OnlineFileRequestImpl::checkResponseFreshness
2016-01-13 13:38:12 -08:00
John Firebaugh
6f9de6ae47
[core] Refactor to instance methods on OnlineFileRequestImpl
2016-01-13 13:38:12 -08:00
John Firebaugh
e9eb29719b
[core] Simplify logic for notification with pre-existing response
...
We already had a condition that checks if a response is immediately available for an incoming request. Call the callback there, rather than in addObserver.
2016-01-13 13:38:12 -08:00
John Firebaugh
dd3ca81589
[core] Inline sole use of OnlineFileSource::Impl::update
2016-01-13 13:38:12 -08:00
John Firebaugh
f8d3cf41ae
[core] Simplify OnlineFileSource::Impl::reschedule
2016-01-13 13:38:12 -08:00
Minh Nguyễn
61615a44fd
[ios] Removed -testCenterSet
...
This test is causing frequent failures on Bitrise; the failure doesn’t appear to reflect a real-world problem.
2016-01-13 13:17:43 -08:00
Konstantin Käfer
e8705d535d
[core] move SourceInfo parsing to StyleParser
2016-01-13 13:04:59 -08:00
Konstantin Käfer
cef05b9017
[core] move invariant Source ID from SourceInfo to Source
2016-01-13 13:04:59 -08:00
Konstantin Käfer
8cca5c89b2
[core] rename "id" to "tileID" to avoid naming conflicts
2016-01-13 13:04:59 -08:00
Konstantin Käfer
f00a6a997b
[core] move invariant SourceType from SourceInfo to Source
2016-01-13 13:04:59 -08:00
Konstantin Käfer
62973f9e5a
[core] move raster tile URL normalization to source parsing
2016-01-13 13:04:59 -08:00
Konstantin Käfer
1ff317c1cd
[core] remove SourceInfo dependency from *TileData
2016-01-13 13:04:59 -08:00
Brad Leege
aac6b00dd0
Merge branch 'hotfix/android_x86_64' of git://github.com/Malinskiy/mapbox-gl-native into Malinskiy-hotfix/android_x86_64
2016-01-13 10:06:08 -06:00
Tobrun
9df48d4e2c
[android] #3514 - update pro guard config
2016-01-13 13:03:28 +01:00
Tobrun
61ea751503
[android] #3514 - disable proguard in test app
2016-01-13 09:10:47 +01:00
kelvinabrokwa
73be3558d7
[core] seamless fill-pattern
...
seamless across dateline
upgrade test-suite version
2016-01-12 16:18:24 -08:00
Brad Leege
11062a01b4
[android] #3484 - Switching to Directions 1.0.0 release. Removing mavenCentral() as it's a subset of jcenter().
2016-01-12 11:21:51 -06:00
Antonio Zugaldia
9c43343187
directions activity sample
2016-01-12 11:21:50 -06:00
Minh Nguyễn
101a439b1d
[ios] Always run jazzy against iOS Simulator
...
Fixes #3521 .
2016-01-12 07:24:53 -08:00
Tobrun
9379aeac1c
[android] #3518 - fix context leak InfoWIndow by using a WeakReference
2016-01-12 15:56:42 +01:00
Tobrun
703ccbd727
[android] #3309 - replace coordinate naming with LatLng
2016-01-12 14:08:24 +01:00
Tobrun
3e4c1bd534
[android] #3447 - initial commit to verify current progress
2016-01-12 12:40:58 +01:00
Tobrun
71edb38cf1
[android] #3327 - replaced ZoomLevel with Zoom, introduced new methods, deprecated old ones
2016-01-12 12:34:45 +01:00
Tobrun
2b5d7bfb8e
[android] #3498 - disable missing permission lint check inline
2016-01-12 10:39:03 +01:00
Minh Nguyễn
5eaf7a6211
[ios, osx] Fixed Xcode 7.3 build
...
Fixed a compiler error that’s new in Xcode 7.3. Also corrected a typo in MGLMapView on OS X.
2016-01-11 14:21:15 -08:00
Tobrun
c10f6489e6
[android] #2187 - added LeakCanary to Android test app
2016-01-11 16:42:21 +01:00
Thiago Marcos P. Santos
259fe1c81d
[tests] Fix how we launch the test server
...
`execl` uses varargs thus must be NULL terminated.
2016-01-11 15:40:10 +02:00
Konstantin Käfer
13fbf8b39b
[test] Fix test case comments
...
Follow up to a06f28ddb7
2016-01-11 11:14:29 +01:00
Minh Nguyễn
cd94049537
[ios] Categorized classes added in #3456
2016-01-09 22:20:50 -08:00
Jason Wray
45a0f48ea0
[ios] Add telemetry setting directly to attribution button action sheet
...
- Deprecate and no-op `+[MGLAccountManager mapboxMetricsEnabledSettingShownInApp]`
- Check for attribution button hiding and make sure ToS are understood
2016-01-09 01:21:45 -05:00
Thiago Marcos P. Santos
d7fdcc73bf
[core] Get rid of ::unref() for Timer and AsyncTask
...
Not need, legacy from libuv. The RunLoop keep the main
loop running until is explicitly no longer needed.
2016-01-09 01:26:29 +02:00
John Firebaugh
e7b0b31d58
[core] Privatize SQLiteCache
2016-01-08 12:31:13 -08:00
John Firebaugh
0a8fef1f51
[core] Merge OnlineFileRequestImpl::notify into OnlineFileRequestImpl::setResponse
...
In every case where setResponse is called, notify was called soon after. In one case immediately, in another, after intervening functions which are safe to reorder after notifications.
The null-check of response is safe to eliminate because response must not be null inside setResponse.
2016-01-08 12:29:11 -08:00
John Firebaugh
adf3dea4e5
[core] Simplify OnlineFileSource's Timer use
...
There is no need for the timer to be created only under certain conditions. Stopping a non-started timer is a no-op. Therefore it can simply be a direct member.
While here, rename the variable. It's a timer, not a request.
2016-01-08 12:23:48 -08:00
John Firebaugh
4b7db28157
[tests] Test that Timer::stop on a stopped timer is a no-op
2016-01-08 12:23:48 -08:00
Tobrun
656eb8766c
[android] #3481 - add check to enable location in tracking mode
2016-01-08 17:44:54 +01:00
Konstantin Käfer
a06f28ddb7
[core] only cache successful or NotFound responses
...
We don't want other types of error end up in our cache, since it'll likely evict perfectly good content.
2016-01-08 16:25:54 +01:00
Konstantin Käfer
c5feadf0bd
[test] deliver error responses when the underlying request failed
2016-01-08 13:23:01 +01:00
Konstantin Käfer
7e815aed2e
[test] allow aborting rendering after a timeout
2016-01-08 13:23:01 +01:00
Konstantin Käfer
4479f5db6c
[core] don't consult cache for asset resources
2016-01-08 13:05:51 +01:00
Konstantin Käfer
bc309d84d7
[core] unify URL prefix detection (asset:// and mapbox://)
2016-01-08 12:14:39 +01:00
Minh Nguyễn
b6fca67089
[ios] Added some missing coordinate conversion methods
...
These methods were public in the OS X SDK but not here.
2016-01-07 21:32:10 -08:00
Minh Nguyễn
6fcb9f4da1
[ios] Invalidate CADisplayLink
...
CADisplayLink holds a strong reference to its target, forming a cycle that must be broken with -[CADisplayLink invalidate] when the animation is complete. I don’t yet have enough faith that will-change and did-change notifications are always coming from mbgl in pairs, so this change limits CADisplayLink to when MGLMapView is in the view hierarchy. It also pauses the CADisplayLink when the view is hidden or the application is in the background. Finally, -[MGLMapView invalidate] has been renamed because that term tends not to mean “redraw” in Cocoa but is rather tied to timers.
Fixes #3130 .
[ios] Also invalidate CADisplayLink on removal from window
[ios] Also shut down CADisplayLink when view is hidden
2016-01-07 20:28:44 -08:00
kelvinabrokwa
52844d4746
[core] fix text-offset bug
...
fixes #3469
2016-01-07 16:44:44 -08:00
Thiago Marcos P. Santos
c8a39e1587
[tests] Sleep more than 1s before refreshing accessed time
...
The cache `accessed` field resolution is 1s, so we
need to sleep a little bit more in order to make
sure that the cache entries we are refreshing will have
a different `accessed` time than the other entries.
2016-01-07 20:54:01 +02:00
bsudekum
0ef257bfc6
[node] bump version to v2.2.1
2016-01-07 09:54:45 -08:00