@capgo/capacitor-updater 7.2.9 → 7.2.11
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 +2 -2
- package/android/src/main/java/ee/forgr/capacitor_updater/CryptoCipherV2.java +1 -1
- package/ios/Plugin/CapacitorUpdaterPlugin.swift +2 -2
- package/ios/Plugin/CryptoCipherV2.swift +1 -1
- 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.11";
|
|
61
61
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
62
62
|
|
|
63
63
|
private SharedPreferences.Editor editor;
|
|
@@ -199,7 +199,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
private void semaphoreWait(Number waitTime) {
|
|
202
|
-
Log.i(CapacitorUpdater.TAG, "semaphoreWait " + waitTime);
|
|
202
|
+
// Log.i(CapacitorUpdater.TAG, "semaphoreWait " + waitTime);
|
|
203
203
|
try {
|
|
204
204
|
// Log.i(CapacitorUpdater.TAG, "semaphoreReady count " + CapacitorUpdaterPlugin.this.semaphoreReady.getCount());
|
|
205
205
|
semaphoreReady.awaitAdvanceInterruptibly(semaphoreReady.getPhase(), waitTime.longValue(), TimeUnit.SECONDS);
|
|
@@ -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-----")) {
|
|
@@ -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.11"
|
|
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"
|
|
@@ -168,7 +168,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
private func semaphoreWait(waitTime: Int) {
|
|
171
|
-
print("\(CapacitorUpdater.TAG) semaphoreWait \(waitTime)")
|
|
171
|
+
// print("\(CapacitorUpdater.TAG) semaphoreWait \(waitTime)")
|
|
172
172
|
_ = semaphoreReady.wait(timeout: .now() + .milliseconds(waitTime))
|
|
173
173
|
}
|
|
174
174
|
|
|
@@ -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
|
|