@capgo/capacitor-updater 8.49.3 → 8.49.4

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.
@@ -142,7 +142,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
142
142
  static final int APPLICATION_EXIT_REASON_USER_REQUESTED = 10;
143
143
  static final int APPLICATION_EXIT_REASON_DEPENDENCY_DIED = 12;
144
144
 
145
- private final String pluginVersion = "8.49.3";
145
+ private final String pluginVersion = "8.49.4";
146
146
  private static final String DELAY_CONDITION_PREFERENCES = "";
147
147
 
148
148
  private SharedPreferences.Editor editor;
@@ -216,7 +216,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
216
216
  private volatile Thread backgroundDownloadTask;
217
217
  private volatile Thread appReadyCheck;
218
218
  private volatile long downloadStartTimeMs = 0;
219
- private static final long DOWNLOAD_TIMEOUT_MS = 3600000; // 1 hour timeout
219
+ private static final long DOWNLOAD_TIMEOUT_MS = 600000; // 10 minute timeout
220
220
 
221
221
  private final Phaser semaphoreReady = new Phaser(0) {
222
222
  @Override
@@ -85,7 +85,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
85
85
  CAPPluginMethod(name: "completeFlexibleUpdate", returnType: CAPPluginReturnPromise)
86
86
  ]
87
87
  public var implementation = CapgoUpdater()
88
- private let pluginVersion: String = "8.49.3"
88
+ private let pluginVersion: String = "8.49.4"
89
89
  static let updateUrlDefault = "https://plugin.capgo.app/updates"
90
90
  static let statsUrlDefault = "https://plugin.capgo.app/stats"
91
91
  static let channelUrlDefault = "https://plugin.capgo.app/channel_self"
@@ -168,7 +168,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
168
168
  private let onLaunchDirectUpdateStateLock = NSLock()
169
169
  private var downloadInProgress = false
170
170
  private var downloadStartTime: Date?
171
- private let downloadTimeout: TimeInterval = 3600 // 1 hour timeout
171
+ private let downloadTimeout: TimeInterval = 600 // 10 minute timeout
172
172
 
173
173
  // Lock to ensure cleanup completes before downloads start
174
174
  private let cleanupLock = NSLock()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "8.49.3",
3
+ "version": "8.49.4",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Live update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",
@@ -71,7 +71,10 @@
71
71
  "clean": "rimraf ./dist",
72
72
  "watch": "tsc --watch",
73
73
  "prepublishOnly": "bun run build",
74
- "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs"
74
+ "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
75
+ "example:install": "cd example-app && bun install --frozen-lockfile",
76
+ "example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
77
+ "example:capgo:deploy": "bun run example:build && bun scripts/deploy-example-capgo.mjs"
75
78
  },
76
79
  "devDependencies": {
77
80
  "@capacitor/android": "^8.0.0",