summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [core] consolidate database opening workflowupstream/refactor-sqliteKonstantin Käfer2018-06-085-84/+69
| | | | | | | | 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] remove unused flags from SQLite headerKonstantin Käfer2018-06-082-8/+0
|
* [core] support moving Database object during a TransactionKonstantin Käfer2018-06-085-21/+72
|
* [test] verify log messages of OfflineDatabase testsKonstantin Käfer2018-06-082-20/+128
|
* [core] send all SQLite log messages to the Info bucket and add error codesKonstantin Käfer2018-06-081-77/+1
|
* [core] allow logging error codes and formatting strings at the same timeKonstantin Käfer2018-06-082-4/+10
|
* [test] add partial message matching support to FixtureLogKonstantin Käfer2018-06-082-9/+28
|
* [test] standardize on database file name and move I/O functions to utilKonstantin Käfer2018-06-084-86/+68
|
* [test] pull out using namespace mbgl to reduce verbosityKonstantin Käfer2018-06-081-66/+3
|
* [core] always commit placement to fix #11795Ansis Brammanis2018-06-073-20/+14
| | | | | | | | Since placements will be committed even if they do not need the full fade duration to fade features in, we need the new `fadeStartTime` to keep track of how long we still need to fade. This is important because if we fade too long we will trigger another placement and never stop rendering.
* [android] - automate tag releaseŁukasz Paczos2018-06-071-4/+109
|
* [android] - parsing fragment's xml attributesŁukasz Paczos2018-06-073-22/+51
|
* [core] Fix crash due to mixing legacy filters and expressions (#12065)Anand Thakker2018-06-062-33/+63
| | | | | | | | | | | | | | | | | | | * Fix crash due to mixing legacy filters and expressions In some cases, (invalid) nested filters that used a mix of legacy filter syntax and expression syntax caused a crash due to a failure to propagate parsing errors from deeper within the filter expression. These errors went undetected in part because these conversion functions returned unique_ptr<Expression> values (or vectors thereof), using {nullptr} to represent a parsing error, but the core expression classes expect unique_ptr<Expression> that are never null. This changes over to using expression::ParseResult (aka optional<unique_ptr<Expression>>), to represent conversion failure the same way we do in the rest of the expression system. * Fix clang 3.8 / gcc 4.9 issue
* [test,ios] Disable multiple mapsnapshotter test.Chris Loer2018-06-041-11/+9
| | | | | 8 simultaneous mapsnapshotter test periodically deadlocks in simulator. Also, increase timeouts to decrease chance of spurious test failure.
* [docs,ios,macos] Changelog entries for MGLMapSnapshotter fix.Chris Loer2018-06-042-0/+2
|
* [ios, macos] Use NSCAssert instead of assert.Chris Loer2018-06-041-1/+1
|
* [ios, macos] Raise exception if MGLMapSnapshotter is used from thread ↵Julian Rex2018-06-041-0/+5
| | | | without active run loop.
* [ios, test] Add MGLMapSnapshotter integration tests.Chris Loer2018-06-043-0/+257
|
* [ios, macos] Fix MGLMapSnapshotter concurrency bugs (issue #11827).Chris Loer2018-06-041-153/+162
| | | | | - Biggest change: when we apply the watermark on a background thread, don't capture self (turn most of the related instance methods into class methods) - Don't call mbglMapSnapshotter->snapshot from a user-provided queue, since it's an asynchronous call anyway and starting it on the user's queue requires capturing self.
* [core] offline database - batch region resource insertsIvo van Dongen2018-06-045-20/+131
|
* [core] offline database - move transaction scope to public api levelIvo van Dongen2018-06-041-14/+4
|
* [build] cache Node + Nan headers globally, not build-specificKonstantin Käfer2018-06-041-0/+1
|
* [node] hide all symbols from the Node.js addonsKonstantin Käfer2018-06-044-2/+10
|
* [core] fix bogus unused variable with GCC 7Konstantin Käfer2018-06-041-3/+3
|
* [core] don't use floating point versions of pow/logKonstantin Käfer2018-06-0414-31/+20
| | | | | | GLIBC 2.27 added new versioned symbols of powf and logf, while the double versions of pow and log remained stable. Prefer the double version to avoid introducing a dependency on a newer version of GLIBC than strictly necessary. See https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00000.html
* [linux] link EGL backend against SwiftShader to avoid Mesa dependencyKonstantin Käfer2018-06-041-7/+2
|
* [linux] load cURL dynamically for wider compatibilityKonstantin Käfer2018-06-042-44/+125
|
* [linux] statically link the C++ standard libraryKonstantin Käfer2018-06-042-1/+9
| | | | Most of the STL is header-only anyway, and statically linking it only has a small overhead. On the other hand, it allows us to build more portable executables.
* [android] - Render tests with PixelMatchTobrun Van Nuland2018-06-0116-54/+821
|
* [ios] Use 'Recognized' state for tap gesture handlersJason Wray2018-06-011-58/+48
| | | | Tap gestures have no `Began`/`Ended` states — they can only be `Possible` or `Recognized`.
* [android] - update changelog for v6.2.0-beta.1tobrun2018-06-011-0/+10
|
* [android] - ensure that camera is invalidated before generating telemetry eventandroid-v6.2.0-beta.1Łukasz Paczos2018-06-012-15/+12
|
* [android] changed version of mapbox-java to 3.2.0“osana”2018-05-311-1/+1
|
* [core] [android] - optional map snapshotter camera positiontobrun2018-05-313-6/+14
|
* [android] - expose enableOnUserRequest and disableOnUserRequest on Telemetrytobrun2018-05-302-6/+29
|
* [core] [android] - add style json setter/getter to map snapshottertobrun2018-05-305-0/+36
|
* Merge tag 'ios-v4.0.2' into masterupstream/fb-merge-release-ios-v4.0.2Jason Wray2018-05-3012-261/+57
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mapbox-gl-js platform/android/CHANGELOG.md platform/android/gradle/dependencies.gradle platform/ios/CHANGELOG.md platform/ios/Mapbox-iOS-SDK-nightly-dynamic.podspec platform/ios/Mapbox-iOS-SDK-symbols.podspec platform/ios/Mapbox-iOS-SDK.podspec platform/node/test/ignores.json src/mbgl/geometry/feature_index.cpp src/mbgl/geometry/feature_index.hpp src/mbgl/layout/symbol_layout.cpp
| * [ios, build] Install npm packages before deployingios-v4.0.2upstream/fb-install-npm-packages-before-deployingJason Wray2018-05-291-0/+1
| |
| * [ios] Prepare ios-v4.0.2 releaseJason Wray2018-05-294-3/+8
| |
| * [ios, build] Populate GitHub releases with templated notesJason Wray2018-05-244-1/+51
| | | | | | | | Replicates our existing release notes format as an EJS template and Node JS script, then uploads the formatted notes during the deployment process.
| * [ios, build] Remove unused build scriptsJason Wray2018-05-247-260/+0
| |
| * Accept constant expressions in non-dds properties (#11961)Anand Thakker2018-05-243-3/+33
| | | | | | Closes #11940
| * [android] - update release-boba to build v6.1.4-SNAPSHOTŁukasz Paczos2018-05-231-1/+1
| |
| * [android] - update changelog for v6.1.3Łukasz Paczos2018-05-231-0/+6
| |
| * [core] Remove circle-pitch-scale test ignores.Chris Loer2018-05-231-0/+18
| | | | | | | | (cherry picked from commit 1a39d7d)
| * [core] only index features within tile boundariesAnsis Brammanis2018-05-233-5/+11
| | | | | | | | | | | | | | | | | | Previously we relied on tile buffers for querying features who's rendered representations cross tile boundaries. Now we query multiple tiles making it unnecessary to index features that are completely outside a tile's boundaries. (cherry picked from commit 0ca53ea)
| * [core] fix circle querying for scale and alignmentChris Loer2018-05-2339-68/+186
| | | | | | | | | | | | | | | | | | This fixes circle querying for cases where either circle-pitch-alignment=map or circle-pitch-scaling=viewport (cherry picked from commit f86fe44)
| * [core] fix querying circles across tile boundariesChris Loer2018-05-237-16/+30
| | | | | | | | (cherry picked from commit f7d20a5)
| * [android] - bump telemetry to v3.1.2tobrun2018-05-231-1/+1
| | | | | | | | (cherry picked from commit acd8bb3)
| * [android] - change MapView#initialize modifier to allow subclasses to ↵Tobrun2018-05-231-5/+7
| | | | | | | | | | | | override this method to provide alternate configurations to MapboxMapOptions (cherry picked from commit cce72e2)