diff --git a/appcenter-analytics/CHANGELOG.md b/appcenter-analytics/CHANGELOG.md index cb837e6..7abe395 100644 --- a/appcenter-analytics/CHANGELOG.md +++ b/appcenter-analytics/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## [0.3.4](https://github.com/capacitor-community/appcenter-sdk-capacitor/compare/@capacitor-community/appcenter-analyics@0.3.3...@capacitor-community/appcenter-analyics@0.3.4) + +### Chore + +* **ios** - remove unused methods + ## [0.3.3](https://github.com/capacitor-community/appcenter-sdk-capacitor/compare/@capacitor-community/appcenter-analyics@0.3.2...@capacitor-community/appcenter-analyics@0.3.3) ### Chore diff --git a/appcenter-analytics/android/src/main/java/com/getcapacitor/plugin/appcenter/analytics/AnalyticsPlugin.java b/appcenter-analytics/android/src/main/java/com/getcapacitor/plugin/appcenter/analytics/AnalyticsPlugin.java index d5effa4..18c133f 100644 --- a/appcenter-analytics/android/src/main/java/com/getcapacitor/plugin/appcenter/analytics/AnalyticsPlugin.java +++ b/appcenter-analytics/android/src/main/java/com/getcapacitor/plugin/appcenter/analytics/AnalyticsPlugin.java @@ -91,24 +91,4 @@ private static Map 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 listFromJSON(JSONArray jsonArray) { - List 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; - } } diff --git a/appcenter-analytics/package.json b/appcenter-analytics/package.json index 6fbe93e..9b6d204 100644 --- a/appcenter-analytics/package.json +++ b/appcenter-analytics/package.json @@ -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",