@capgo/capacitor-updater 8.50.0 → 8.50.2
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/ios/Sources/CapacitorUpdaterPlugin/AES.swift +0 -1
- package/ios/Sources/CapacitorUpdaterPlugin/BigInt.swift +0 -16
- package/ios/Sources/CapacitorUpdaterPlugin/CapacitorUpdaterPlugin.swift +1 -1
- package/ios/Sources/CapacitorUpdaterPlugin/CryptoCipher.swift +0 -1
- package/package.json +2 -1
|
@@ -142,7 +142,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
|
|
|
142
142
|
static final int APPLICATION_EXIT_REASON_USER_REQUESTED = 10;
|
|
143
143
|
static final int APPLICATION_EXIT_REASON_DEPENDENCY_DIED = 12;
|
|
144
144
|
|
|
145
|
-
private final String pluginVersion = "8.50.
|
|
145
|
+
private final String pluginVersion = "8.50.2";
|
|
146
146
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
147
147
|
|
|
148
148
|
private SharedPreferences.Editor editor;
|
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
import BigInt
|
|
2
2
|
|
|
3
|
-
// Extension to serialize BigInt to bytes array
|
|
4
|
-
extension BigInt {
|
|
5
|
-
func serializeToBytes() -> [UInt8] {
|
|
6
|
-
let byteCount = (self.bitWidth + 7) / 8
|
|
7
|
-
var bytes = [UInt8](repeating: 0, count: byteCount)
|
|
8
|
-
|
|
9
|
-
var value = self
|
|
10
|
-
for index in 0..<byteCount {
|
|
11
|
-
bytes[byteCount - index - 1] = UInt8(truncatingIfNeeded: value & 0xFF)
|
|
12
|
-
value >>= 8
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return bytes
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
3
|
// Add this custom power function to ensure safer handling of power operations
|
|
20
4
|
|
|
21
5
|
// Manual exponentiation using the square-and-multiply algorithm
|
|
@@ -85,7 +85,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
85
85
|
CAPPluginMethod(name: "completeFlexibleUpdate", returnType: CAPPluginReturnPromise)
|
|
86
86
|
]
|
|
87
87
|
public var implementation = CapgoUpdater()
|
|
88
|
-
private let pluginVersion: String = "8.50.
|
|
88
|
+
private let pluginVersion: String = "8.50.2"
|
|
89
89
|
static let updateUrlDefault = "https://plugin.capgo.app/updates"
|
|
90
90
|
static let statsUrlDefault = "https://plugin.capgo.app/stats"
|
|
91
91
|
static let channelUrlDefault = "https://plugin.capgo.app/channel_self"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-updater",
|
|
3
|
-
"version": "8.50.
|
|
3
|
+
"version": "8.50.2",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Live update for capacitor apps",
|
|
6
6
|
"main": "dist/plugin.cjs.js",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"watch": "tsc --watch",
|
|
73
73
|
"prepublishOnly": "bun run build",
|
|
74
74
|
"check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
|
|
75
|
+
"changelog:ai": "node scripts/generate-ai-changelog.mjs",
|
|
75
76
|
"example:install": "cd example-app && bun install --frozen-lockfile",
|
|
76
77
|
"example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build"
|
|
77
78
|
},
|