@capgo/capacitor-updater 4.4.6 → 4.4.8
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 +3 -7
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdater.java +1 -1
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +1 -1
- package/dist/docs.json +2 -8
- package/dist/esm/definitions.d.ts +1 -3
- package/ios/Plugin/CapacitorUpdater.swift +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -136,7 +136,7 @@ Capacitor Updator works by unzipping a compiled app bundle to the native device
|
|
|
136
136
|
* [`setMultiDelay(...)`](#setmultidelay)
|
|
137
137
|
* [`setDelay(...)`](#setdelay)
|
|
138
138
|
* [`cancelDelay()`](#canceldelay)
|
|
139
|
-
* [`getLatest(
|
|
139
|
+
* [`getLatest()`](#getlatest)
|
|
140
140
|
* [`addListener('download', ...)`](#addlistenerdownload)
|
|
141
141
|
* [`addListener('noNeedUpdate', ...)`](#addlistenernoneedupdate)
|
|
142
142
|
* [`addListener('updateAvailable', ...)`](#addlistenerupdateavailable)
|
|
@@ -334,18 +334,14 @@ Cancel delay to updates as usual
|
|
|
334
334
|
--------------------
|
|
335
335
|
|
|
336
336
|
|
|
337
|
-
### getLatest(
|
|
337
|
+
### getLatest()
|
|
338
338
|
|
|
339
339
|
```typescript
|
|
340
|
-
getLatest(
|
|
340
|
+
getLatest() => Promise<latestVersion>
|
|
341
341
|
```
|
|
342
342
|
|
|
343
343
|
Get Latest version available from update Url
|
|
344
344
|
|
|
345
|
-
| Param | Type |
|
|
346
|
-
| ------------- | -------------------------------- |
|
|
347
|
-
| **`options`** | <code>{ delay: boolean; }</code> |
|
|
348
|
-
|
|
349
345
|
**Returns:** <code>Promise<<a href="#latestversion">latestVersion</a>></code>
|
|
350
346
|
|
|
351
347
|
**Since:** 4.0.0
|
|
@@ -45,7 +45,7 @@ public class CapacitorUpdater {
|
|
|
45
45
|
private static final String bundleDirectory = "versions";
|
|
46
46
|
|
|
47
47
|
public static final String TAG = "Capacitor-updater";
|
|
48
|
-
public static final String pluginVersion = "4.4.
|
|
48
|
+
public static final String pluginVersion = "4.4.8";
|
|
49
49
|
|
|
50
50
|
public SharedPreferences.Editor editor;
|
|
51
51
|
public SharedPreferences prefs;
|
|
@@ -866,7 +866,7 @@ public class CapacitorUpdaterPlugin extends Plugin implements Application.Activi
|
|
|
866
866
|
CapacitorUpdaterPlugin.this.checkRevert();
|
|
867
867
|
CapacitorUpdaterPlugin.this.appReadyCheck = null;
|
|
868
868
|
} catch (final InterruptedException e) {
|
|
869
|
-
Log.
|
|
869
|
+
Log.i(CapacitorUpdater.TAG, DeferredNotifyAppReadyCheck.class.getName() + " was interrupted.");
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
872
|
}
|
package/dist/docs.json
CHANGED
|
@@ -351,14 +351,8 @@
|
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
"name": "getLatest",
|
|
354
|
-
"signature": "(
|
|
355
|
-
"parameters": [
|
|
356
|
-
{
|
|
357
|
-
"name": "options",
|
|
358
|
-
"docs": "",
|
|
359
|
-
"type": "{ delay: boolean; }"
|
|
360
|
-
}
|
|
361
|
-
],
|
|
354
|
+
"signature": "() => Promise<latestVersion>",
|
|
355
|
+
"parameters": [],
|
|
362
356
|
"returns": "Promise<latestVersion>",
|
|
363
357
|
"tags": [
|
|
364
358
|
{
|
|
@@ -300,9 +300,7 @@ export interface CapacitorUpdaterPlugin {
|
|
|
300
300
|
* @throws An error if the something went wrong
|
|
301
301
|
* @since 4.0.0
|
|
302
302
|
*/
|
|
303
|
-
getLatest(
|
|
304
|
-
delay: boolean;
|
|
305
|
-
}): Promise<latestVersion>;
|
|
303
|
+
getLatest(): Promise<latestVersion>;
|
|
306
304
|
/**
|
|
307
305
|
* Listen for download event in the App, let you know when the download is started, loading and finished
|
|
308
306
|
*
|
|
@@ -148,7 +148,7 @@ extension CustomError: LocalizedError {
|
|
|
148
148
|
|
|
149
149
|
public let TAG = "✨ Capacitor-updater:"
|
|
150
150
|
public let CAP_SERVER_PATH = "serverBasePath"
|
|
151
|
-
public let pluginVersion = "4.4.
|
|
151
|
+
public let pluginVersion = "4.4.8"
|
|
152
152
|
public var statsUrl = ""
|
|
153
153
|
public var appId = ""
|
|
154
154
|
public var deviceID = UIDevice.current.identifierForVendor?.uuidString ?? ""
|