@capgo/capacitor-updater 7.2.9 → 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.
@@ -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.9";
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, "Cannot found public key or sessionKey");
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.9"
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"
@@ -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) Cannot found public key or sessionKey")
97
+ print("\(CapacitorUpdater.TAG) Encryption not set, no public key or seesion, ignored")
98
98
  return
99
99
  }
100
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "7.2.9",
3
+ "version": "7.2.10",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Live update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",