@capgo/capacitor-updater 5.3.22 → 5.3.24

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.
@@ -56,7 +56,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
56
56
  private static final String channelUrlDefault =
57
57
  "https://api.capgo.app/channel_self";
58
58
 
59
- private final String PLUGIN_VERSION = "5.3.22";
59
+ private final String PLUGIN_VERSION = "5.3.24";
60
60
  private static final String DELAY_CONDITION_PREFERENCES = "";
61
61
 
62
62
  private SharedPreferences.Editor editor;
@@ -15,7 +15,7 @@ import Version
15
15
  @objc(CapacitorUpdaterPlugin)
16
16
  public class CapacitorUpdaterPlugin: CAPPlugin {
17
17
  public var implementation = CapacitorUpdater()
18
- private let PLUGIN_VERSION: String = "5.3.22"
18
+ private let PLUGIN_VERSION: String = "5.3.24"
19
19
  static let updateUrlDefault = "https://api.capgo.app/updates"
20
20
  static let statsUrlDefault = "https://api.capgo.app/stats"
21
21
  static let channelUrlDefault = "https://api.capgo.app/channel_self"
@@ -56,10 +56,9 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
56
56
  implementation.timeout = Double(getConfig().getInt("responseTimeout", 20))
57
57
  resetWhenUpdate = getConfig().getBoolean("resetWhenUpdate", true)
58
58
  let periodCheckDelayValue = getConfig().getInt("periodCheckDelay", 0)
59
- if (periodCheckDelayValue >= 0 && periodCheckDelayValue > 600) {
59
+ if periodCheckDelayValue >= 0 && periodCheckDelayValue > 600 {
60
60
  periodCheckDelay = 600
61
- }
62
- else {
61
+ } else {
63
62
  periodCheckDelay = periodCheckDelayValue
64
63
  }
65
64
 
@@ -732,7 +731,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
732
731
  }
733
732
 
734
733
  @objc func checkForUpdateAfterDelay() {
735
- if (periodCheckDelay == 0 || !self._isAutoUpdateEnabled()) {
734
+ if periodCheckDelay == 0 || !self._isAutoUpdateEnabled() {
736
735
  return
737
736
  }
738
737
  let timer = Timer.scheduledTimer(withTimeInterval: TimeInterval(periodCheckDelay), repeats: true) { _ in
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "5.3.22",
4
- "packageManager": "pnpm@8.9.2",
3
+ "version": "5.3.24",
4
+ "packageManager": "pnpm@8.10.0",
5
5
  "license": "MPL-2.0",
6
6
  "description": "Live update for capacitor apps",
7
7
  "main": "dist/plugin.cjs.js",