Julian Rex
2b08c1d7bf
[ios, macos] Fix MGLOfflinePack invalidate crash ( #15582 )
2019-09-18 18:13:07 -04:00
Thiago Marcos P. Santos
83a019d021
[build] Fix clang format and tidy checks
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
5cf2c7eb50
[build] Use the system CURL on Linux
...
And we don't need to use Mason anymore.
2019-09-17 12:28:55 +03:00
Bruno de Oliveira Abinader
544aabd020
[core] Add requiredTileCount to OfflineRegionStatus
2019-08-29 18:22:59 +03:00
Mikhail Pozdnyakov
42ba8a7d12
[core] const variables for OfflineDownload batch sizes
2019-08-29 17:28:51 +03:00
Mikhail Pozdnyakov
f84e46ad26
[core] Mark offline region resources in batches
2019-08-29 17:28:51 +03:00
Mikhail Pozdnyakov
0c80f3a383
[core] Add OfflineDatabase::markUsedResources()
2019-08-29 17:28:51 +03:00
Mikhail Pozdnyakov
62e1e03c09
[core] Move semantics for OfflineDownload::ensureResource()
2019-08-29 17:28:51 +03:00
Dane Springmeyer
1165f62df6
[core][test] fix leaks from sqlite usage
2019-08-16 15:51:42 +03:00
Bruno de Oliveira Abinader
6f0cda8c8b
[build] Use mapbox-base optional
2019-07-29 18:36:08 +03:00
Bruno de Oliveira Abinader
1a9e07e4ed
[core] DefaultFileSource dynamic support for cache-only requests
2019-06-25 20:10:21 +03:00
Thiago Marcos P. Santos
ea63541ad1
[core] Fix offline regions reporting the wrong number of tiles
...
- The SQL query used for checking if the tile was already in the
cache was wrong.
- Tiles being refereed by two or more regions were not always
counted as one.
Fixes #13437 .
2019-06-19 17:19:10 +03:00
Thiago Marcos P. Santos
68e3cbacbc
[core] Add method for setting a maximum size for the ambient cache
...
- Removed this parameter from the constructor, now that we
have a method to set it.
- Add the method and enforce the limits if the ambient cache exceeds the
size.
2019-06-18 16:26:51 +03:00
Thiago Marcos P. Santos
78eeffe171
[core] Clear/Invalidate should also work on non-tile resources
...
These methods were only affecting tiles, but they should really
work on every resource like style, glyphs, etc.
2019-06-18 16:26:51 +03:00
Thiago Marcos P. Santos
59e7b9a878
[core] Rename resetCache to resetDatabase
...
Avoid confusion about what is being reset. In this case, the whole
database and not only the ambient cache.
2019-06-18 16:26:51 +03:00
Thiago Marcos P. Santos
bf0be56946
[core] Fix bug of auto_vacuum not working
2019-06-13 22:28:16 +03:00
Thiago Marcos P. Santos
5b4bb1398b
[core] Surface cache management APIs
...
These APIs need to be on the DefaultFileSource in order to
be visible for the SDKs bindings.
2019-06-13 22:28:16 +03:00
Thiago Marcos P. Santos
32e0b7beec
[core] Add API for clearing tile cache
2019-06-13 22:28:16 +03:00
Konstantin Käfer
844299f1c3
[build] remove roundtrip through <experimental/optional> when using optional
2019-06-12 12:04:07 +02:00
Thiago Marcos P. Santos
cc26ef17d5
[core] Introduce usage tag for resources
...
Make the distinction if a resource is being requested for offline
usage or if it will be used immediately.
Fixes #14746
2019-05-28 16:30:49 +03:00
Łukasz Paczos
46ef2d86d2
[core] invoke optional resource path change completion listener
2019-05-24 15:03:55 +02:00
Thiago Marcos P. Santos
1def782cf2
[core] Add API for invalidating tiles
...
Add new APIs for invalidating tiles, effectively forcing Mapbox
GL Native to check with the servers if the tiles are valid before
using them. This is more efficient then deleting tiles, because
in case of valid tiles, they won't get downloaded.
Fixes #4376 .
2019-05-21 01:04:01 +03:00
Mikhail Pozdnyakov
b41f39d545
[core] Make ActorRef methods const
...
So that the lambdas calling these methods do not have to be mutable.
2019-05-10 11:59:02 +03:00
Sudarsana Babu Nagineni
2604991b2b
[core] Introduce resetCache API
...
Add an API to delete existing database and re-initialize.
2019-04-29 17:09:58 +03:00
Konstantin Käfer
3ceabcd3ec
[core] clang-tidy fixes
2019-04-05 11:49:17 +02:00
Bruno de Oliveira Abinader
d5868d3da8
[core] Remove file source from public Map ctor
2019-03-20 21:30:08 +02:00
Łukasz Paczos
3f7b70fdb0
[core] expose an option to change the db file path in runtime
2019-03-13 18:28:04 +01:00
Thiago Marcos P. Santos
056073a904
[build] Use the correct define on Windows
...
https://blog.kowalczyk.info/article/j/guide-to-predefined-macros-in-c-compilers-gcc-clang-msvc-etc..html
2019-02-19 16:20:56 +02:00
Jason Wray
5a5b8520cc
[core] Remove old sqlite3 usage note
2019-02-14 10:51:49 -08:00
Alexander Shalamov
ab160ac321
[core] Notify requests about network reachability in priority order
2019-01-14 17:34:37 +02:00
Chris Loer
b7e2b11a75
[core] Support for excluding ideographic glyphs from offline downloads.
2018-12-21 15:13:48 -08:00
Alexander Shalamov
a228f3d80a
[core] Refactor duplicated code in Asset and File sources
2018-12-17 11:37:56 +02:00
Alexander Shalamov
f076a1fe39
[core] Use util::readFile for Local and Asset file sources
...
Use exception free util::readFile instead of util::read_file for
LocalFileSource and AssetFileSource implementations.
2018-12-17 11:37:56 +02:00
Konstantin Käfer
1d8235f5b8
[build] rework platform/default directory and add -files.txt for vendored libs
2018-12-14 11:03:03 +01:00