@capgo/capacitor-updater 7.8.10 → 7.8.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,7 +59,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
59
59
  private static final String statsUrlDefault = "https://plugin.capgo.app/stats";
60
60
  private static final String channelUrlDefault = "https://plugin.capgo.app/channel_self";
61
61
 
62
- private final String PLUGIN_VERSION = "7.8.10";
62
+ private final String PLUGIN_VERSION = "7.8.11";
63
63
  private static final String DELAY_CONDITION_PREFERENCES = "";
64
64
 
65
65
  private SharedPreferences.Editor editor;
@@ -1112,10 +1112,12 @@ public class CapgoUpdater {
1112
1112
 
1113
1113
  @Override
1114
1114
  public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException {
1115
- if (response.isSuccessful()) {
1116
- logger.info("Stats send for \"" + action + "\", version " + versionName);
1117
- } else {
1118
- logger.error("Error sending stats: " + response.code());
1115
+ try (ResponseBody responseBody = response.body()) {
1116
+ if (response.isSuccessful()) {
1117
+ logger.info("Stats send for \"" + action + "\", version " + versionName);
1118
+ } else {
1119
+ logger.error("Error sending stats: " + response.code());
1120
+ }
1119
1121
  }
1120
1122
  }
1121
1123
  }
@@ -86,7 +86,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
86
86
  CAPPluginMethod(name: "isShakeMenuEnabled", returnType: CAPPluginReturnPromise)
87
87
  ]
88
88
  public var implementation = CapgoUpdater()
89
- private let PLUGIN_VERSION: String = "7.8.10"
89
+ private let PLUGIN_VERSION: String = "7.8.11"
90
90
  static let updateUrlDefault = "https://plugin.capgo.app/updates"
91
91
  static let statsUrlDefault = "https://plugin.capgo.app/stats"
92
92
  static let channelUrlDefault = "https://plugin.capgo.app/channel_self"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "7.8.10",
3
+ "version": "7.8.11",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Live update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",