Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [core] Add requiredTileCount to OfflineRegionStatus | Bruno de Oliveira Abinader | 2019-08-29 | 1 | -0/+11 |
| | |||||
* | [core] Mark offline region resources in batches | Mikhail Pozdnyakov | 2019-08-29 | 1 | -20/+18 |
| | |||||
* | [core] Disable flaky OfflineDatabase.MaximumAmbientCacheSize test | Jason Wray | 2019-08-07 | 1 | -1/+2 |
| | |||||
* | [core] Add storage unit tests for MapboxTileLimitExceeded | Thiago Marcos P. Santos | 2019-06-19 | 1 | -0/+98 |
| | |||||
* | [tests] Add unit tests for cache size | Thiago Marcos P. Santos | 2019-06-18 | 1 | -0/+134 |
| | |||||
* | [core] Add method for setting a maximum size for the ambient cache | Thiago Marcos P. Santos | 2019-06-18 | 1 | -13/+34 |
| | | | | | | | - 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. | ||||
* | [core] Clear/Invalidate should also work on non-tile resources | Thiago Marcos P. Santos | 2019-06-18 | 1 | -29/+59 |
| | | | | | These methods were only affecting tiles, but they should really work on every resource like style, glyphs, etc. | ||||
* | [core] Rename resetCache to resetDatabase | Thiago Marcos P. Santos | 2019-06-18 | 1 | -3/+3 |
| | | | | | Avoid confusion about what is being reset. In this case, the whole database and not only the ambient cache. | ||||
* | [tests] Follow-up of previews PR, these tests need write permission | Thiago Marcos P. Santos | 2019-06-18 | 1 | -2/+2 |
| | |||||
* | [tests] Improve unit test for deleting offline region and concurrent use | Thiago Marcos P. Santos | 2019-06-13 | 1 | -12/+39 |
| | | | | | | Test if the physical size of the database will also reduce. Clear the cache while adding resource on another connection. | ||||
* | [tests] Add unit test for clearing the ambient cache | Thiago Marcos P. Santos | 2019-06-13 | 1 | -11/+39 |
| | |||||
* | [core] Remove priority from the constructor | Thiago Marcos P. Santos | 2019-05-28 | 2 | -5/+8 |
| | | | | Make the constructor less verbose and set good defaults. | ||||
* | [core] Introduce usage tag for resources | Thiago Marcos P. Santos | 2019-05-28 | 1 | -1/+8 |
| | | | | | | | Make the distinction if a resource is being requested for offline usage or if it will be used immediately. Fixes #14746 | ||||
* | [core] invoke optional resource path change completion listener | Łukasz Paczos | 2019-05-24 | 1 | -0/+12 |
| | |||||
* | [tests] Add unit tests for offline data invalidation | Thiago Marcos P. Santos | 2019-05-21 | 1 | -0/+67 |
| | |||||
* | [test] Add unit test for clearCache API | Sudarsana Babu Nagineni | 2019-04-29 | 1 | -0/+14 |
| | |||||
* | [core] clang-tidy fixes | Konstantin Käfer | 2019-04-05 | 1 | -1/+1 |
| | |||||
* | [core] expose an option to change the db file path in runtime | Łukasz Paczos | 2019-03-13 | 1 | -0/+8 |
| | |||||
* | [core] Support for excluding ideographic glyphs from offline downloads. | Chris Loer | 2018-12-21 | 3 | -35/+117 |
| | |||||
* | [build] rework platform/default directory and add -files.txt for vendored libs | Konstantin Käfer | 2018-12-14 | 3 | -3/+3 |
| | |||||
* | [core] Fixed {prefix} evaluation | Minh Nguyễn | 2018-11-21 | 1 | -3/+3 |
| | | | | This appears to have been an attempt to use the std::string fill constructor, but it ended up creating a one-character-long string and attempting to overwrite the null terminator. | ||||
* | [core] add test about number of maximum concurrent requests | Huyen Chau Nguyen | 2018-11-15 | 2 | -3/+12 |
| | |||||
* | [core] define number of concurrent downloads in online file source variable | Huyen Chau Nguyen | 2018-11-15 | 1 | -2/+2 |
| | |||||
* | [test] Add test for when requesting the same resource many times | Thiago Marcos P. Santos | 2018-11-13 | 1 | -1/+19 |
| | | | | This test would have prevented the crash fixed by the previous patch. | ||||
* | [core] add tests for handling requests with different priorities | Huyen Chau Nguyen | 2018-10-23 | 2 | -1/+92 |
| | | | | | | - ensure that low priority requests are handled last - add option to set the number of maximum concurrent requests for tests - some style fixups | ||||
* | [core] add priorities to resources | Huyen Chau Nguyen | 2018-10-23 | 2 | -3/+63 |
| | | | | | - priorities can be low or regular - offline downloads should have low priority to not throttle "regular requests" | ||||
* | [core] Always request 1x and @2x sprite images for portability | Konstantin Käfer | 2018-09-24 | 1 | -5/+7 |
| | | | | When creating a offline region, we've previously only requested the sprite image for the specified resolution. This lead to offline packs not being usable on devices that have a different pixel ratio. We're now requesting both 1x and 2x sprites. Some devices use even higher or fractional pixel ratios. However, we only ever use 1x and 2x sprite images in our requests. | ||||
* | [android] add support for gnustl | Konstantin Käfer | 2018-09-11 | 2 | -4/+6 |
| | |||||
* | Enforce Offline tile limit when merging sideloaded databases | Asheem Mamoowala | 2018-08-28 | 1 | -0/+31 |
| | |||||
* | Require minimum side-loaded database user_version=6 | Asheem Mamoowala | 2018-08-28 | 1 | -1/+1 |
| | |||||
* | Add unit tests and fixtures for OfflineDatabase::mergeDatabase | Asheem Mamoowala | 2018-08-28 | 1 | -0/+203 |
| | |||||
* | [core] offline region definition - add support for arbitrary geometries | Ivo van Dongen | 2018-08-20 | 3 | -91/+81 |
| | |||||
* | [core] recreate offline database when it is deleted out from under our feet | Konstantin Käfer | 2018-08-14 | 1 | -4/+4 |
| | |||||
* | WIP: use expected<T, E> for passing on errors | Konstantin Käfer | 2018-08-14 | 2 | -19/+20 |
| | |||||
* | [test] add test for pending offline download when the disk is full | Konstantin Käfer | 2018-08-14 | 1 | -1/+77 |
| | |||||
* | [core] harden OfflineDatabase | Konstantin Käfer | 2018-08-14 | 3 | -190/+487 |
| | |||||
* | [android, linux] Upgrade to SQLite 3.24.0, compiled to minimize binary size | John Firebaugh | 2018-08-10 | 1 | -6/+10 |
| | |||||
* | Revert "[core] Replace Boost.Spirit with std::regex in CacheControl::parse()" | Bruno de Oliveira Abinader | 2018-08-08 | 1 | -9/+0 |
| | | | | This reverts commit 990b3b11b9427ffd86f693d3f4c3dd351891e5d0. | ||||
* | [core] Replace Boost.Spirit with std::regex in CacheControl::parse() | Bruno de Oliveira Abinader | 2018-08-08 | 1 | -0/+9 |
| | |||||
* | [core] Fix GCC8's new -Wcatch-value warnings | Zsolt Bölöny | 2018-06-25 | 1 | -1/+1 |
| | | | Polymorphic types shouldn't be caught by value, as the warning message says. Catch them by constant reference instead. | ||||
* | [core] consolidate database opening workflow | Konstantin Käfer | 2018-06-12 | 2 | -27/+4 |
| | | | | | | | | Before this change, we've tried to open the database in read/write, but not create mode. In situations where the database didn't exist yet, this logged an error to the console, and we proceeded to opening it again in read/write/create mode, which actually created the file. The reason we did this is so that we could detect really old caching databases from January 2016 in case a developer upgraded from an older SDK (iOS v3.1 and earlier, Android v3.2 and earlier) that didn't have https://github.com/mapbox/mapbox-gl-native/pull/3715 yet. However, these error messages, while innocent, look scary in the console and some users suspect that it's a bug. This change opens the file directly in read/write/create mode, omitting the first failed attempt. To handle old cache databases, we're now deleting the `http_cache` table, which was the only table in those old databases, and create the new schema, rather than deleting the entire file and recreating the Database object. In most scenarios, this will lead to one fewer opening attempt, while the database migration will continue to work for the few users who upgrade all the way from a January 2016 SDK. Additionally, this fixes a mismatch between the Qt and non-Qt implementation: Qt doesn't support opening a file in read/write mode without the create flag. This means that we've seen a different control flow on Qt compared to the non-Qt implementation when opening a database. | ||||
* | [core] support moving Database object during a Transaction | Konstantin Käfer | 2018-06-12 | 2 | -2/+30 |
| | |||||
* | [test] verify log messages of OfflineDatabase tests | Konstantin Käfer | 2018-06-12 | 1 | -19/+127 |
| | |||||
* | [test] standardize on database file name and move I/O functions to util | Konstantin Käfer | 2018-06-12 | 1 | -76/+47 |
| | |||||
* | [test] pull out using namespace mbgl to reduce verbosity | Konstantin Käfer | 2018-06-12 | 1 | -66/+3 |
| | |||||
* | [core] offline database - batch region resource inserts | Ivo van Dongen | 2018-06-04 | 1 | -0/+54 |
| | |||||
* | Avoid exceptions for flow control during database creation | John Firebaugh | 2018-05-09 | 2 | -16/+13 |
| | | | | Unfortuntely, it's difficult to avoid all exceptions, because sqlite3_open_v2 does not reliably return SQLITE_NOTADB if the file is not a database. However, this should avoid cases where developers misinterpret the SQLITE_CANTOPEN exception as a crash, which is the common case. | ||||
* | [core, qt] move self-resetting Statement/Query object to shared header | Konstantin Käfer | 2018-03-02 | 2 | -35/+42 |
| | |||||
* | [core] refactor SQLite error/status codes | Konstantin Käfer | 2018-03-02 | 1 | -1/+1 |
| | |||||
* | [tests] Added a test for getting resources from the database | Thiago Marcos P. Santos | 2018-02-26 | 1 | -0/+34 |
| | | | | This test would have flagged the Qt regression. |