@capgo/capacitor-updater 4.55.0 → 4.56.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.
package/README.md
CHANGED
|
@@ -163,6 +163,8 @@ notifyAppReady() => Promise<BundleInfo>
|
|
|
163
163
|
```
|
|
164
164
|
|
|
165
165
|
Notify Capacitor Updater that the current bundle is working (a rollback will occur of this method is not called on every app launch)
|
|
166
|
+
By default this method should be called in the first 10 sec after app launch, otherwise a rollback will occur.
|
|
167
|
+
Change this behaviour with {@link appReadyTimeout}
|
|
166
168
|
|
|
167
169
|
**Returns:** <code>Promise<<a href="#bundleinfo">BundleInfo</a>></code>
|
|
168
170
|
|
|
@@ -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.
|
|
58
|
+
private final String PLUGIN_VERSION = "4.56.0";
|
|
59
59
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
60
60
|
|
|
61
61
|
private SharedPreferences.Editor editor;
|
package/dist/docs.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"text": "An error if something went wrong"
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
|
-
"docs": "Notify Capacitor Updater that the current bundle is working (a rollback will occur of this method is not called on every app launch)",
|
|
23
|
+
"docs": "Notify Capacitor Updater that the current bundle is working (a rollback will occur of this method is not called on every app launch)\nBy default this method should be called in the first 10 sec after app launch, otherwise a rollback will occur.\nChange this behaviour with {@link appReadyTimeout}",
|
|
24
24
|
"complexTypes": [
|
|
25
25
|
"BundleInfo"
|
|
26
26
|
],
|
|
@@ -216,6 +216,8 @@ export type AppReloadedListener = (state: void) => void;
|
|
|
216
216
|
export interface CapacitorUpdaterPlugin {
|
|
217
217
|
/**
|
|
218
218
|
* Notify Capacitor Updater that the current bundle is working (a rollback will occur of this method is not called on every app launch)
|
|
219
|
+
* By default this method should be called in the first 10 sec after app launch, otherwise a rollback will occur.
|
|
220
|
+
* Change this behaviour with {@link appReadyTimeout}
|
|
219
221
|
*
|
|
220
222
|
* @returns {Promise<BundleInfo>} an Promise resolved directly
|
|
221
223
|
* @throws An error if something went wrong
|
|
@@ -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.
|
|
18
|
+
private let PLUGIN_VERSION: String = "4.56.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"
|