Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Cherry-picks changes for vanillashake v9.1.0 (#311)
Browse files Browse the repository at this point in the history
* Fix Expression can't convert `within` json error (#305)


(cherry picked from commit dceba08)

* fix proguard telemetry events rule (#306)


(cherry picked from commit 620bda3)

Co-authored-by: Pablo Guardiola <pablo.guardiola@mapbox.com>
  • Loading branch information
Kevin Li and Guardiola31337 committed Apr 7, 2020
1 parent f12a30a commit 8b2480f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MapboxGLAndroidSDK/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
-dontwarn com.google.auto.value.**

# config for telemetry events
-keep class com.mapbox.mapboxsdk.module.telemetry.**
-keep class com.mapbox.mapboxsdk.module.telemetry.** { *; }

# config for additional notes
-dontnote org.robolectric.Robolectric
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4746,7 +4746,9 @@ public static Expression convert(@NonNull JsonArray jsonArray) {

final String operator = jsonArray.get(0).getAsString();
final List<Expression> arguments = new ArrayList<>();

if (operator.equals("within")) {
return within(Polygon.fromJson(jsonArray.get(1).toString()));
}
for (int i = 1; i < jsonArray.size(); i++) {
JsonElement jsonElement = jsonArray.get(i);
if (operator.equals("literal") && jsonElement instanceof JsonArray) {
Expand Down

0 comments on commit 8b2480f

Please sign in to comment.