@capgo/capacitor-updater 6.1.10 → 6.1.12
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.
|
@@ -56,7 +56,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
|
|
|
56
56
|
private static final String channelUrlDefault =
|
|
57
57
|
"https://api.capgo.app/channel_self";
|
|
58
58
|
|
|
59
|
-
private final String PLUGIN_VERSION = "6.1.
|
|
59
|
+
private final String PLUGIN_VERSION = "6.1.12";
|
|
60
60
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
61
61
|
|
|
62
62
|
private SharedPreferences.Editor editor;
|
|
@@ -20,6 +20,7 @@ CAP_PLUGIN(CapacitorUpdaterPlugin, "CapacitorUpdater",
|
|
|
20
20
|
CAP_PLUGIN_METHOD(cancelDelay, CAPPluginReturnPromise);
|
|
21
21
|
CAP_PLUGIN_METHOD(getLatest, CAPPluginReturnPromise);
|
|
22
22
|
CAP_PLUGIN_METHOD(setChannel, CAPPluginReturnPromise);
|
|
23
|
+
CAP_PLUGIN_METHOD(unsetChannel, CAPPluginReturnPromise);
|
|
23
24
|
CAP_PLUGIN_METHOD(getChannel, CAPPluginReturnPromise);
|
|
24
25
|
CAP_PLUGIN_METHOD(setCustomId, CAPPluginReturnPromise);
|
|
25
26
|
CAP_PLUGIN_METHOD(getDeviceId, CAPPluginReturnPromise);
|
|
@@ -16,7 +16,7 @@ import SwiftyRSA
|
|
|
16
16
|
@objc(CapacitorUpdaterPlugin)
|
|
17
17
|
public class CapacitorUpdaterPlugin: CAPPlugin {
|
|
18
18
|
public var implementation = CapacitorUpdater()
|
|
19
|
-
private let PLUGIN_VERSION: String = "6.1.
|
|
19
|
+
private let PLUGIN_VERSION: String = "6.1.12"
|
|
20
20
|
static let updateUrlDefault = "https://api.capgo.app/updates"
|
|
21
21
|
static let statsUrlDefault = "https://api.capgo.app/stats"
|
|
22
22
|
static let channelUrlDefault = "https://api.capgo.app/channel_self"
|
|
@@ -703,7 +703,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
|
|
|
703
703
|
return
|
|
704
704
|
}
|
|
705
705
|
let sessionKey = res.sessionKey ?? ""
|
|
706
|
-
let signature = res.signature
|
|
706
|
+
let signature = res.signature ?? ""
|
|
707
707
|
guard let downloadUrl = URL(string: res.url) else {
|
|
708
708
|
print("\(self.implementation.TAG) Error no url or wrong format")
|
|
709
709
|
self.endBackGroundTaskWithNotif(msg: "Error no url or wrong format", latestVersionName: res.version, current: current)
|
|
@@ -724,7 +724,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
|
|
|
724
724
|
print("\(self.implementation.TAG) Failed to delete failed bundle: \(nextImpl!.toString())")
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
|
-
nextImpl = try self.implementation.download(url: downloadUrl, version: latestVersionName, sessionKey: sessionKey, signature: signature
|
|
727
|
+
nextImpl = try self.implementation.download(url: downloadUrl, version: latestVersionName, sessionKey: sessionKey, signature: signature)
|
|
728
728
|
}
|
|
729
729
|
guard let next = nextImpl else {
|
|
730
730
|
print("\(self.implementation.TAG) Error downloading file")
|