Commit Graph

12899 Commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
1683da3225 [core] coveredByChildren is false if at least one child is uncovered 2018-07-24 09:18:19 +03:00
Dane Springmeyer
bcc93baeb1 Remove 'preinstall'
This is an obsolete workaround for old npm versions that broke with bundling but also did not install deps predictably.

Refs:

 - https://github.com/mapbox/node-pre-gyp/blob/master/README.md#configuring
 - https://github.com/mapbox/node-pre-gyp/issues/260
2018-07-23 16:02:10 -07:00
Chris Loer
da5966b932 [test] Add native ignore for symbol-cross-fade test. 2018-07-23 13:33:27 -07:00
Chris Loer
8ae3f687c4 [test] Bump gl-js pin for line-center tests. 2018-07-23 13:33:27 -07:00
Chris Loer
0b2221cb74 [android, ios, macos] Generate symbol-placement: line-center wrappers 2018-07-23 13:33:27 -07:00
Chris Loer
f9b36f9f5b [core] Add symbol-placement: line-center
- Remove unused/vestigial 'maxCameraDistance'
- Create a single collision circle for line labels that are less than half the width of a collision circle
2018-07-23 13:33:27 -07:00
John Firebaugh
870d7fda4d [build] Attempt to determine a likely base branch without a PR
Walk backward through the history (maximum of 10 commits) until finding a commit on either master or release-*; assume that's the base branch.
2018-07-23 11:21:51 -07:00
tobrun
3821f74079 [android] - fix circle ci configuration for building forked PRs 2018-07-23 19:18:54 +02:00
Bruno de Oliveira Abinader
31cace784e [build] Bump benchmark to v1.4.1 2018-07-23 19:39:47 +03:00
Asheem Mamoowala
7c585244ab Use Filter::serialize() in QMapboxGL::getFilter() 2018-07-23 09:12:26 -07:00
Asheem Mamoowala
1d8664a2ae Keep original input for filters using legacy syntax. 2018-07-23 09:12:26 -07:00
tobrun
bfe714eebe [android] - fix accesstoken validation 2018-07-23 14:31:18 +02:00
tobrun
bbc2529c50 [android] - replace deprecated javacompile with getJavaCompiler() 2018-07-23 13:56:50 +02:00
Fabian Guerra Soto
681e0141de [ios] Mapbox's Location Manager new API. (#12013)
* [ios] The new location manager API provides two new protocols MGLLocationManager and MGLLocationManagerDelegate to handle the location cycle and updates respectively. This enables developers to chose the appropriate location provider according to their needs, or transition between outdoors/indoors location updates.

It does provide a default implementation based on CLLocationManager.
2018-07-20 14:14:43 -07:00
John Firebaugh
bbccce18c4 [build] Disable binary size checks for fork PRs
We can't run the checks without potentially exposing the Github App private key to malicious PRs.
2018-07-20 13:59:00 -07:00
John Firebaugh
7e5b054566 [build] See what happened when npm install fails 2018-07-20 13:22:25 -07:00
John Firebaugh
fb736e8ef0 [ios, macos, android] Add changelog entries 2018-07-20 12:35:00 -07:00
John Firebaugh
5793283142 [android] Test token strings for icon-image and text-field 2018-07-20 12:35:00 -07:00
John Firebaugh
2c5d0e74a1 [ios, macos] Convert token strings to expressions on input
Removes mgl_expressionByReplacingTokensWithKeyPaths and associated code. Converting on output is no longer necessary: from the prior commit, core converts token strings to expressions at parse time; all that's necessary is to ensure that the runtime styling API does so as well.
2018-07-20 12:35:00 -07:00
John Firebaugh
af89318b1d [core] Convert token strings to expressions 2018-07-20 12:35:00 -07:00
John Firebaugh
a3d988ab85 [core] Move expression.cpp to expression directory 2018-07-20 11:56:30 -07:00
John Firebaugh
c8edbb0500 [core] Replace {Source,Camera,Composite}Function with PropertyExpression 2018-07-20 11:56:30 -07:00
Konstantin Käfer
6d7072162b [build] add nitpick step for verifying that dependencies are up-to-date and unmodified 2018-07-20 10:58:50 -04:00
Konstantin Käfer
1985b893b7 [build] vendor Google Test 2018-07-20 10:58:50 -04:00
Tobrun
418bcc2f21 [android] - expose getMap on native_map_view 2018-07-20 10:31:22 +02:00
Justyna Janczyszyn
e94c623e03 fixed typo in error message 2018-07-19 15:36:48 -07:00
Jason Wray
5d7e3e24e5 [ios] Reorganize changelog for ios-v4.2.0 2018-07-18 11:35:22 -04:00
Jason Wray
5b221372f0 [ios] Update podspecs for ios-v4.2.0 2018-07-18 11:35:22 -04:00
Tobrun
91179afa49 [android] - update changelog for v6.3.0 final 2018-07-18 17:07:53 +02:00
Łukasz Paczos
c29740e73f [android] VisibleRegion instrumentation tests 2018-07-18 15:03:31 +02:00
Łukasz Paczos
6d24ef9a03 [android] option to request the visible region restricted by the content padding 2018-07-18 15:03:31 +02:00
Lloyd Sheng
782c58be00 Correct MGL_MATCH documentation (#12378) 2018-07-18 14:29:29 +08:00
Lloyd Sheng
284dd23ca4 [iOS] Fix unbalanced change delimiter crash (#12148)
Fixed a crash that occurred when the user started a gesture before the drift animation for a previous gesture was complete.
2018-07-18 14:29:06 +08:00
Thiago Marcos P. Santos
bffc60fefd [android] Fix possibly race on undefined behavior
`runnable->iter = runnables.end()` assumes that `::end()` is a
`static` or `constxpr` and thread-safe. This is likely to be true
for most of the implementations. That said we cannot rely on
undefined behavior and we should assume the worse case scenario.
2018-07-17 18:36:37 +02:00
Konstantin Käfer
93d37282d9 [build] organize CMake targets in folders for IDEs 2018-07-17 18:36:17 +02:00
Łukasz Paczos
7d686dfcba [android] bump SNAPSHOT version building on master to 6.4.0 2018-07-17 15:30:26 +02:00
Konstantin Käfer
116770cb3f [core] update CA bundle 2018-07-17 11:49:41 +02:00
Łukasz Paczos
a45dd30e44 [android] harden map events creation 2018-07-17 11:20:26 +02:00
tobrun
aeb85dbd8c [android] - bump used gradle tools version 2018-07-17 11:19:23 +02:00
Asheem Mamoowala
07b0021ce3 Add fuzz tests for TileCover and fix out of bounds access crash. 2018-07-16 17:11:03 -07:00
Asheem Mamoowala
15019425be Better describe the streaming tilecover algorithm in comments 2018-07-16 17:11:03 -07:00
Asheem Mamoowala
b2ff57c09c Fix TileCover asserts. The create_bounds_towards_* methods were treating
all point arrays as rings. Simplify the logic to only compare against
the next pt in the bound.
2018-07-16 17:11:03 -07:00
Konstantin Käfer
77894f0586 [core] treat parsedate as C++ file to remove C build rules
It is already wrapped with #ifdef __cplusplus extern "C", so we can safely compile it as C++ but retain C linkage
2018-07-16 18:25:09 +02:00
Konstantin Käfer
561e55eb6c [core] make the offline DB schema a regular include file 2018-07-16 18:24:51 +02:00
Tobrun
6c9b627eaa [android] - bump kotlin, timber and okhttp to most recent stable versions 2018-07-16 15:37:52 +02:00
John Firebaugh
a6727921fc [core] Convert legacy functions directly to expressions 2018-07-13 13:37:27 -07:00
John Firebaugh
bea8f8d177 [build] Use CIRCLE_MERGE_BASE environment variable 2018-07-13 12:26:40 -07:00
John Firebaugh
63d6bca609 [build] Show diff to prior size 2018-07-13 12:26:40 -07:00
John Firebaugh
5623fa1b22 [build] Reduce ccache max size 2018-07-13 11:50:39 -07:00
John Firebaugh
74ef93ab4f [build] Improve ccache freshness
Save a fresh ccache on every build by including (a checksum of) the current revision in the cache key. In the worst case, saving the cache appears to take ~1:30 for android-release; other builds appear to take a small amount of time compared to the time saved by having a fresh cache, versus a cache that's up to a week old.

Restore caches in the following priority order (all scoped to current architecture and job):

1. The cache for the current branch and revision.

2. If that doesn't exist, the most recent cache for the current branch.

3. If that doesn't exist, the cache for the parent branch and merge base, where "parent branch" means the base branch of the pull request specified by $CIRCLE_PULL_REQUEST (obtained from the GitHub API), and "merge base" means the revision returned by `git merge-base` when given the parent branch and $CIRCLE_BRANCH (obtained by executing that shell command). The intent here is to start a newly created branch off with the most relevant cache from its parent branch.

4. If that doesn't exist, the most recent cache for the parent branch.

5. If that doesn't exist, the most recent cache for master.

6. If that doesn't exist, use the most recent cache for any build.

We cannot use the branch names or revisions themselves as key segments, because CircleCI lacks a way to interpolate arbitrary environment variables into the cache key name. Instead, we write the desired value into a file and use the `{{ checksum "filename" }}` syntax.
2018-07-13 11:50:39 -07:00