@capgo/capacitor-updater 7.7.6 → 7.7.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
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
[](https://console.algora.io/org/Capgo/bounties?status=completed)
|
|
17
17
|
|
|
18
18
|
<div align="center">
|
|
19
|
-
<h2><a href="https://capgo.app/?ref=plugin"> ➡️ Get Instant updates for your App with Capgo
|
|
20
|
-
<h2><a href="https://capgo.app/consulting/?ref=plugin">
|
|
19
|
+
<h2><a href="https://capgo.app/?ref=plugin"> ➡️ Get Instant updates for your App with Capgo</a></h2>
|
|
20
|
+
<h2><a href="https://capgo.app/consulting/?ref=plugin"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
23
|
Capacitor plugin to update your app remotely in real-time.
|
|
@@ -60,7 +60,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
|
|
|
60
60
|
private static final String statsUrlDefault = "https://plugin.capgo.app/stats";
|
|
61
61
|
private static final String channelUrlDefault = "https://plugin.capgo.app/channel_self";
|
|
62
62
|
|
|
63
|
-
private final String PLUGIN_VERSION = "7.7.
|
|
63
|
+
private final String PLUGIN_VERSION = "7.7.8";
|
|
64
64
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
65
65
|
|
|
66
66
|
private SharedPreferences.Editor editor;
|
|
@@ -308,11 +308,13 @@ public class CapacitorUpdaterPlugin extends Plugin {
|
|
|
308
308
|
.post(() -> {
|
|
309
309
|
getBridge()
|
|
310
310
|
.eval(
|
|
311
|
-
"
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
311
|
+
"""
|
|
312
|
+
(function() {
|
|
313
|
+
if (window.Capacitor && window.Capacitor.Plugins && window.Capacitor.Plugins.SplashScreen) {
|
|
314
|
+
window.Capacitor.Plugins.SplashScreen.hide();
|
|
315
|
+
}
|
|
316
|
+
})()
|
|
317
|
+
""",
|
|
316
318
|
null
|
|
317
319
|
);
|
|
318
320
|
});
|
|
@@ -233,6 +233,7 @@ public class CapgoUpdater {
|
|
|
233
233
|
notifyDownload(id, percent);
|
|
234
234
|
break;
|
|
235
235
|
case SUCCEEDED:
|
|
236
|
+
logger.info("Download succeeded: " + workInfo.getState());
|
|
236
237
|
Data outputData = workInfo.getOutputData();
|
|
237
238
|
String dest = outputData.getString(DownloadService.FILEDEST);
|
|
238
239
|
String version = outputData.getString(DownloadService.VERSION);
|
|
@@ -384,8 +385,11 @@ public class CapgoUpdater {
|
|
|
384
385
|
|
|
385
386
|
final Map<String, Object> ret = new HashMap<>();
|
|
386
387
|
ret.put("bundle", next.toJSONMap());
|
|
388
|
+
logger.info("updateAvailable: " + ret);
|
|
387
389
|
CapgoUpdater.this.notifyListeners("updateAvailable", ret);
|
|
390
|
+
logger.info("setNext: " + setNext);
|
|
388
391
|
if (setNext) {
|
|
392
|
+
logger.info("directUpdate: " + this.directUpdate);
|
|
389
393
|
if (this.directUpdate) {
|
|
390
394
|
CapgoUpdater.this.directUpdateFinish(next);
|
|
391
395
|
this.directUpdate = false;
|
|
@@ -50,7 +50,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
50
50
|
CAPPluginMethod(name: "isShakeMenuEnabled", returnType: CAPPluginReturnPromise)
|
|
51
51
|
]
|
|
52
52
|
public var implementation = CapgoUpdater()
|
|
53
|
-
private let PLUGIN_VERSION: String = "7.7.
|
|
53
|
+
private let PLUGIN_VERSION: String = "7.7.8"
|
|
54
54
|
static let updateUrlDefault = "https://plugin.capgo.app/updates"
|
|
55
55
|
static let statsUrlDefault = "https://plugin.capgo.app/stats"
|
|
56
56
|
static let channelUrlDefault = "https://plugin.capgo.app/channel_self"
|