@capgo/capacitor-updater 4.15.4 → 4.15.6
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.
|
@@ -64,7 +64,7 @@ public class CapacitorUpdater {
|
|
|
64
64
|
private static final String bundleDirectory = "versions";
|
|
65
65
|
|
|
66
66
|
public static final String TAG = "Capacitor-updater";
|
|
67
|
-
public static final String pluginVersion = "4.15.
|
|
67
|
+
public static final String pluginVersion = "4.15.6";
|
|
68
68
|
public static final int timeout = 20000;
|
|
69
69
|
|
|
70
70
|
public SharedPreferences.Editor editor;
|
|
@@ -281,6 +281,12 @@ public class CapacitorUpdater {
|
|
|
281
281
|
checksum
|
|
282
282
|
);
|
|
283
283
|
if (dest == null) {
|
|
284
|
+
final JSObject ret = new JSObject();
|
|
285
|
+
ret.put(
|
|
286
|
+
"version",
|
|
287
|
+
CapacitorUpdater.this.getCurrentBundle().getVersionName()
|
|
288
|
+
);
|
|
289
|
+
CapacitorUpdater.this.notifyListeners("downloadFailed", ret);
|
|
284
290
|
CapacitorUpdater.this.sendStats(
|
|
285
291
|
"download_fail",
|
|
286
292
|
CapacitorUpdater.this.getCurrentBundle().getVersionName()
|
|
@@ -354,6 +360,12 @@ public class CapacitorUpdater {
|
|
|
354
360
|
}
|
|
355
361
|
} catch (IOException e) {
|
|
356
362
|
e.printStackTrace();
|
|
363
|
+
final JSObject ret = new JSObject();
|
|
364
|
+
ret.put(
|
|
365
|
+
"version",
|
|
366
|
+
CapacitorUpdater.this.getCurrentBundle().getVersionName()
|
|
367
|
+
);
|
|
368
|
+
CapacitorUpdater.this.notifyListeners("downloadFailed", ret);
|
|
357
369
|
CapacitorUpdater.this.sendStats(
|
|
358
370
|
"download_fail",
|
|
359
371
|
CapacitorUpdater.this.getCurrentBundle().getVersionName()
|