Skip to content

Commit

Permalink
Merge pull request #43 from capacitor-community/analytics-cleanup
Browse files Browse the repository at this point in the history
chore(analytics): remove unused methods
  • Loading branch information
johnborges authored Oct 14, 2021
2 parents 857c191 + 8aaf7ea commit 71f3997
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 71f3997

Please sign in to comment.