@capgo/capacitor-updater 7.2.8 → 7.2.10
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/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +1 -1
- package/android/src/main/java/ee/forgr/capacitor_updater/CryptoCipherV2.java +2 -2
- package/ios/Plugin/CapacitorUpdaterPlugin.swift +1 -1
- package/ios/Plugin/CryptoCipherV2.swift +2 -2
- package/package.json +1 -1
|
@@ -57,7 +57,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
|
|
|
57
57
|
private static final String statsUrlDefault = "https://plugin.capgo.app/stats";
|
|
58
58
|
private static final String channelUrlDefault = "https://plugin.capgo.app/channel_self";
|
|
59
59
|
|
|
60
|
-
private final String PLUGIN_VERSION = "7.2.
|
|
60
|
+
private final String PLUGIN_VERSION = "7.2.10";
|
|
61
61
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
62
62
|
|
|
63
63
|
private SharedPreferences.Editor editor;
|
|
@@ -135,7 +135,7 @@ public class CryptoCipherV2 {
|
|
|
135
135
|
|
|
136
136
|
public static void decryptFile(final File file, final String publicKey, final String ivSessionKey) throws IOException {
|
|
137
137
|
if (publicKey.isEmpty() || ivSessionKey == null || ivSessionKey.isEmpty() || ivSessionKey.split(":").length != 2) {
|
|
138
|
-
Log.i(CapacitorUpdater.TAG, "
|
|
138
|
+
Log.i(CapacitorUpdater.TAG, "Encryption not set, no public key or seesion, ignored");
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
141
|
if (!publicKey.startsWith("-----BEGIN RSA PUBLIC KEY-----")) {
|
|
@@ -176,7 +176,7 @@ public class CryptoCipherV2 {
|
|
|
176
176
|
|
|
177
177
|
public static String decryptChecksum(String checksum, String publicKey) throws IOException {
|
|
178
178
|
if (publicKey.isEmpty()) {
|
|
179
|
-
Log.e(CapacitorUpdater.TAG, "
|
|
179
|
+
Log.e(CapacitorUpdater.TAG, "No encryption set (public key) ignored");
|
|
180
180
|
return checksum;
|
|
181
181
|
}
|
|
182
182
|
try {
|
|
@@ -45,7 +45,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
45
45
|
CAPPluginMethod(name: "getNextBundle", returnType: CAPPluginReturnPromise)
|
|
46
46
|
]
|
|
47
47
|
public var implementation = CapacitorUpdater()
|
|
48
|
-
private let PLUGIN_VERSION: String = "7.2.
|
|
48
|
+
private let PLUGIN_VERSION: String = "7.2.10"
|
|
49
49
|
static let updateUrlDefault = "https://plugin.capgo.app/updates"
|
|
50
50
|
static let statsUrlDefault = "https://plugin.capgo.app/stats"
|
|
51
51
|
static let channelUrlDefault = "https://plugin.capgo.app/channel_self"
|
|
@@ -12,7 +12,7 @@ public struct CryptoCipherV2 {
|
|
|
12
12
|
|
|
13
13
|
public static func decryptChecksum(checksum: String, publicKey: String) throws -> String {
|
|
14
14
|
if publicKey.isEmpty {
|
|
15
|
-
print("\(CapacitorUpdater.TAG)
|
|
15
|
+
print("\(CapacitorUpdater.TAG) No encryption set (public key) ignored")
|
|
16
16
|
return checksum
|
|
17
17
|
}
|
|
18
18
|
do {
|
|
@@ -94,7 +94,7 @@ public struct CryptoCipherV2 {
|
|
|
94
94
|
|
|
95
95
|
public static func decryptFile(filePath: URL, publicKey: String, sessionKey: String, version: String) throws {
|
|
96
96
|
if publicKey.isEmpty || sessionKey.isEmpty || sessionKey.components(separatedBy: ":").count != 2 {
|
|
97
|
-
print("\(CapacitorUpdater.TAG)
|
|
97
|
+
print("\(CapacitorUpdater.TAG) Encryption not set, no public key or seesion, ignored")
|
|
98
98
|
return
|
|
99
99
|
}
|
|
100
100
|
|