@capgo/capacitor-updater 4.41.0 → 4.44.0

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.
@@ -55,7 +55,7 @@ public class CapacitorUpdaterPlugin
55
55
  private static final String channelUrlDefault =
56
56
  "https://api.capgo.app/channel_self";
57
57
 
58
- private final String PLUGIN_VERSION = "4.41.0";
58
+ private final String PLUGIN_VERSION = "4.44.0";
59
59
  private static final String DELAY_CONDITION_PREFERENCES = "";
60
60
 
61
61
  private SharedPreferences.Editor editor;
@@ -794,7 +794,7 @@ public class CapacitorUpdaterPlugin
794
794
  return (
795
795
  CapacitorUpdaterPlugin.this.autoUpdate &&
796
796
  !"".equals(CapacitorUpdaterPlugin.this.updateUrl) &&
797
- serverUrl != null &&
797
+ serverUrl == null &&
798
798
  !"".equals(serverUrl)
799
799
  );
800
800
  }
@@ -253,8 +253,16 @@ extension CustomError: LocalizedError {
253
253
  return String((0..<length).map { _ in letters.randomElement()! })
254
254
  }
255
255
 
256
+ private var isDevEnvironment: Bool {
257
+ #if DEBUG
258
+ return true
259
+ #else
260
+ return false
261
+ #endif
262
+ }
263
+
256
264
  private func isProd() -> Bool {
257
- return !self.isAppStoreReceiptSandbox() && !self.hasEmbeddedMobileProvision()
265
+ return !self.isDevEnvironment && !self.isAppStoreReceiptSandbox() && !self.hasEmbeddedMobileProvision()
258
266
  }
259
267
 
260
268
  // MARK: Private
@@ -15,7 +15,7 @@ import Version
15
15
  @objc(CapacitorUpdaterPlugin)
16
16
  public class CapacitorUpdaterPlugin: CAPPlugin {
17
17
  private var implementation = CapacitorUpdater()
18
- private let PLUGIN_VERSION: String = "4.41.0"
18
+ private let PLUGIN_VERSION: String = "4.44.0"
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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "4.41.0",
3
+ "version": "4.44.0",
4
4
  "packageManager": "pnpm@8.2.0",
5
5
  "license": "MPL-2.0",
6
6
  "description": "Live update for capacitor apps",
@@ -71,7 +71,7 @@
71
71
  "rimraf": "^4.4.1",
72
72
  "rollup": "^3.20.2",
73
73
  "swiftlint": "^1.0.1",
74
- "typescript": "^4.9.5"
74
+ "typescript": "^5.0.0"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@capacitor/core": "^4.0.0 || ^5.0.0"