@capgo/capacitor-updater 8.4.1 → 8.4.2

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.
@@ -85,7 +85,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
85
85
  private static final String[] BREAKING_EVENT_NAMES = { "breakingAvailable", "majorAvailable" };
86
86
  private static final String LAST_FAILED_BUNDLE_PREF_KEY = "CapacitorUpdater.lastFailedBundle";
87
87
 
88
- private final String pluginVersion = "8.4.1";
88
+ private final String pluginVersion = "8.4.2";
89
89
  private static final String DELAY_CONDITION_PREFERENCES = "";
90
90
 
91
91
  private SharedPreferences.Editor editor;
@@ -60,7 +60,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
60
60
  CAPPluginMethod(name: "completeFlexibleUpdate", returnType: CAPPluginReturnPromise)
61
61
  ]
62
62
  public var implementation = CapgoUpdater()
63
- private let pluginVersion: String = "8.4.1"
63
+ private let pluginVersion: String = "8.4.2"
64
64
  static let updateUrlDefault = "https://plugin.capgo.app/updates"
65
65
  static let statsUrlDefault = "https://plugin.capgo.app/stats"
66
66
  static let channelUrlDefault = "https://plugin.capgo.app/channel_self"
@@ -151,11 +151,7 @@ public struct CryptoCipher {
151
151
  while autoreleasepool(invoking: {
152
152
  let fileData: Data
153
153
  do {
154
- if #available(iOS 13.4, *) {
155
- fileData = try fileHandle.read(upToCount: bufferSize) ?? Data()
156
- } else {
157
- fileData = fileHandle.readData(ofLength: bufferSize)
158
- }
154
+ fileData = try fileHandle.read(upToCount: bufferSize) ?? Data()
159
155
  } catch {
160
156
  logger.error("Error reading file: \(error)")
161
157
  return false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "8.4.1",
3
+ "version": "8.4.2",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Live update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",