@capgo/capacitor-updater 5.3.43 → 5.3.45
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.
|
@@ -488,12 +488,14 @@ public class CapacitorUpdater {
|
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
private String getChecksum(File file) throws IOException {
|
|
491
|
-
|
|
491
|
+
CRC32 crc = new CRC32();
|
|
492
492
|
try (FileInputStream fis = new FileInputStream(file)) {
|
|
493
|
-
|
|
493
|
+
byte[] buffer = new byte[1024];
|
|
494
|
+
int length;
|
|
495
|
+
while ((length = fis.read(buffer)) != -1) {
|
|
496
|
+
crc.update(buffer, 0, length);
|
|
497
|
+
}
|
|
494
498
|
}
|
|
495
|
-
CRC32 crc = new CRC32();
|
|
496
|
-
crc.update(bytes);
|
|
497
499
|
String enc = String.format("%08X", crc.getValue());
|
|
498
500
|
return enc.toLowerCase();
|
|
499
501
|
}
|
|
@@ -55,7 +55,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
|
|
|
55
55
|
private static final String channelUrlDefault =
|
|
56
56
|
"https://api.capgo.app/channel_self";
|
|
57
57
|
|
|
58
|
-
private final String PLUGIN_VERSION = "5.3.
|
|
58
|
+
private final String PLUGIN_VERSION = "5.3.45";
|
|
59
59
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
60
60
|
|
|
61
61
|
private SharedPreferences.Editor editor;
|
|
@@ -15,7 +15,7 @@ import Version
|
|
|
15
15
|
@objc(CapacitorUpdaterPlugin)
|
|
16
16
|
public class CapacitorUpdaterPlugin: CAPPlugin {
|
|
17
17
|
public var implementation = CapacitorUpdater()
|
|
18
|
-
private let PLUGIN_VERSION: String = "5.3.
|
|
18
|
+
private let PLUGIN_VERSION: String = "5.3.45"
|
|
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"
|
package/package.json
CHANGED