Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 7ef2843

Browse files
committed
Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.7
2 parents 76301b2 + 13b97dd commit 7ef2843

File tree

199 files changed

+11320
-3190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+11320
-3190
lines changed

Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ macos-test: $(MACOS_PROJ_PATH)
163163
xpackage: $(MACOS_PROJ_PATH)
164164
SYMBOLS=$(SYMBOLS) ./platform/macos/scripts/package.sh
165165

166+
.PHONY: xdeploy
167+
xdeploy:
168+
caffeinate -i ./platform/macos/scripts/deploy-packages.sh
169+
166170
.PHONY: xdocument
167171
xdocument:
168172
OUTPUT=$(OUTPUT) ./platform/macos/scripts/document.sh
@@ -276,8 +280,13 @@ idocument:
276280
.PHONY: darwin-style-code
277281
darwin-style-code:
278282
node platform/darwin/scripts/generate-style-code.js
283+
node platform/darwin/scripts/update-examples.js
279284
style-code: darwin-style-code
280285

286+
.PHONY: darwin-update-examples
287+
darwin-update-examples:
288+
node platform/darwin/scripts/update-examples.js
289+
281290
.PHONY: check-public-symbols
282291
check-public-symbols:
283292
node platform/darwin/scripts/check-public-symbols.js macOS

include/mbgl/style/filter.hpp

+59-1
Original file line numberDiff line numberDiff line change
@@ -6,85 +6,143 @@
66

77
#include <string>
88
#include <vector>
9+
#include <tuple>
910

1011
namespace mbgl {
1112
namespace style {
1213

1314
class Filter;
1415

15-
class NullFilter {};
16+
class NullFilter {
17+
public:
18+
friend bool operator==(const NullFilter&, const NullFilter&) {
19+
return true;
20+
}
21+
};
1622

1723
class EqualsFilter {
1824
public:
1925
std::string key;
2026
Value value;
27+
28+
friend bool operator==(const EqualsFilter& lhs, const EqualsFilter& rhs) {
29+
return std::tie(lhs.key, lhs.value) == std::tie(rhs.key, rhs.value);
30+
}
2131
};
2232

2333
class NotEqualsFilter {
2434
public:
2535
std::string key;
2636
Value value;
37+
38+
friend bool operator==(const NotEqualsFilter& lhs, const NotEqualsFilter& rhs) {
39+
return std::tie(lhs.key, lhs.value) == std::tie(rhs.key, rhs.value);
40+
}
2741
};
2842

2943
class LessThanFilter {
3044
public:
3145
std::string key;
3246
Value value;
47+
48+
friend bool operator==(const LessThanFilter& lhs, const LessThanFilter& rhs) {
49+
return std::tie(lhs.key, lhs.value) == std::tie(rhs.key, rhs.value);
50+
}
3351
};
3452

3553
class LessThanEqualsFilter {
3654
public:
3755
std::string key;
3856
Value value;
57+
58+
friend bool operator==(const LessThanEqualsFilter& lhs, const LessThanEqualsFilter& rhs) {
59+
return std::tie(lhs.key, lhs.value) == std::tie(rhs.key, rhs.value);
60+
}
3961
};
4062

4163
class GreaterThanFilter {
4264
public:
4365
std::string key;
4466
Value value;
67+
68+
friend bool operator==(const GreaterThanFilter& lhs, const GreaterThanFilter& rhs) {
69+
return std::tie(lhs.key, lhs.value) == std::tie(rhs.key, rhs.value);
70+
}
4571
};
4672

4773
class GreaterThanEqualsFilter {
4874
public:
4975
std::string key;
5076
Value value;
77+
78+
friend bool operator==(const GreaterThanEqualsFilter& lhs, const GreaterThanEqualsFilter& rhs) {
79+
return std::tie(lhs.key, lhs.value) == std::tie(rhs.key, rhs.value);
80+
}
5181
};
5282

5383
class InFilter {
5484
public:
5585
std::string key;
5686
std::vector<Value> values;
87+
88+
friend bool operator==(const InFilter& lhs, const InFilter& rhs) {
89+
return std::tie(lhs.key, lhs.values) == std::tie(rhs.key, rhs.values);
90+
}
5791
};
5892

5993
class NotInFilter {
6094
public:
6195
std::string key;
6296
std::vector<Value> values;
97+
98+
friend bool operator==(const NotInFilter& lhs, const NotInFilter& rhs) {
99+
return std::tie(lhs.key, lhs.values) == std::tie(rhs.key, rhs.values);
100+
}
63101
};
64102

65103
class AnyFilter {
66104
public:
67105
std::vector<Filter> filters;
106+
107+
friend bool operator==(const AnyFilter& lhs, const AnyFilter& rhs) {
108+
return lhs.filters == rhs.filters;
109+
}
68110
};
69111

70112
class AllFilter {
71113
public:
72114
std::vector<Filter> filters;
115+
116+
friend bool operator==(const AllFilter& lhs, const AllFilter& rhs) {
117+
return lhs.filters == rhs.filters;
118+
}
73119
};
74120

75121
class NoneFilter {
76122
public:
77123
std::vector<Filter> filters;
124+
125+
friend bool operator==(const NoneFilter& lhs, const NoneFilter& rhs) {
126+
return lhs.filters == rhs.filters;
127+
}
78128
};
79129

80130
class HasFilter {
81131
public:
82132
std::string key;
133+
134+
friend bool operator==(const HasFilter& lhs, const HasFilter& rhs) {
135+
return lhs.key == rhs.key;
136+
}
83137
};
84138

85139
class NotHasFilter {
86140
public:
87141
std::string key;
142+
143+
friend bool operator==(const NotHasFilter& lhs, const NotHasFilter& rhs) {
144+
return lhs.key == rhs.key;
145+
}
88146
};
89147

90148
using FilterBase = variant<

include/mbgl/style/sources/geojson_source.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class GeoJSONSource : public Source {
4343
void setURL(const std::string& url);
4444
void setGeoJSON(const GeoJSON&);
4545

46-
optional<std::string> getURL();
46+
optional<std::string> getURL() const;
4747

4848
// Private implementation
4949

include/mbgl/style/sources/raster_source.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ class RasterSource : public Source {
1111
public:
1212
RasterSource(std::string id, variant<std::string, Tileset> urlOrTileset, uint16_t tileSize);
1313

14+
optional<std::string> getURL() const;
15+
1416
// Private implementation
1517

1618
class Impl;
19+
Impl* const impl;
1720
};
1821

1922
template <>

include/mbgl/style/sources/vector_source.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ class VectorSource : public Source {
1111
public:
1212
VectorSource(std::string id, variant<std::string, Tileset> urlOrTileset);
1313

14+
optional<std::string> getURL() const;
15+
1416
// Private implementation
1517

1618
class Impl;
19+
Impl* const impl;
1720
};
1821

1922
template <>

0 commit comments

Comments
 (0)