Skip to content

Commit

Permalink
chore(analytics): remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
johnborges committed Oct 11, 2021
1 parent 857c191 commit 8aaf7ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
6 changes: 6 additions & 0 deletions appcenter-analytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## [0.3.4](https://github.com/capacitor-community/appcenter-sdk-capacitor/compare/@capacitor-community/[email protected]...@capacitor-community/[email protected])

### Chore

* **ios** - remove unused methods

## [0.3.3](https://github.com/capacitor-community/appcenter-sdk-capacitor/compare/@capacitor-community/[email protected]...@capacitor-community/[email protected])

### Chore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,4 @@ private static Map<String, String> mapFromJSON(JSONObject jsonObject) {
}
return map;
}

private static Object getObject(Object value) {
if (value instanceof JSONObject) {
value = mapFromJSON((JSONObject) value);
} else if (value instanceof JSONArray) {
value = listFromJSON((JSONArray) value);
}
return value;
}

private static List<Object> listFromJSON(JSONArray jsonArray) {
List<Object> list = new ArrayList<>();
for (int i = 0, count = jsonArray.length(); i < count; i++) {
Object value = getObject(jsonArray.opt(i));
if (value != null) {
list.add(value);
}
}
return list;
}
}
2 changes: 1 addition & 1 deletion appcenter-analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@capacitor-community/appcenter-analytics",
"version": "0.3.3",
"version": "0.3.4",
"description": "Capacitor plugin for AppCenter Analytics",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down

0 comments on commit 8aaf7ea

Please sign in to comment.