@capgo/capacitor-updater 6.13.0 → 6.13.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/Package.swift
CHANGED
|
@@ -6,11 +6,11 @@ let package = Package(
|
|
|
6
6
|
platforms: [.iOS(.v13)],
|
|
7
7
|
products: [
|
|
8
8
|
.library(
|
|
9
|
-
name: "
|
|
9
|
+
name: "CapgoCapacitorUpdater",
|
|
10
10
|
targets: ["CapacitorUpdaterPlugin"])
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
|
13
|
-
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", branch: "
|
|
13
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", branch: "main"),
|
|
14
14
|
.package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "5.10.2")),
|
|
15
15
|
.package(url: "https://github.com/ZipArchive/ZipArchive.git", exact: "2.4.3"),
|
|
16
16
|
.package(url: "https://github.com/mrackwitz/Version.git", .upToNextMajor(from: "0.8.0"))
|
|
@@ -60,7 +60,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
|
|
|
60
60
|
private static final String channelUrlDefault =
|
|
61
61
|
"https://plugin.capgo.app/channel_self";
|
|
62
62
|
|
|
63
|
-
private final String PLUGIN_VERSION = "6.13.
|
|
63
|
+
private final String PLUGIN_VERSION = "6.13.2";
|
|
64
64
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
65
65
|
|
|
66
66
|
private SharedPreferences.Editor editor;
|
|
@@ -12,12 +12,7 @@ import SSZipArchive
|
|
|
12
12
|
#endif
|
|
13
13
|
import Alamofire
|
|
14
14
|
import Compression
|
|
15
|
-
|
|
16
|
-
#if canImport(ZipArchive)
|
|
17
|
-
typealias ZipArchiveHelper = ZipArchive
|
|
18
|
-
#else
|
|
19
|
-
typealias ZipArchiveHelper = SSZipArchive
|
|
20
|
-
#endif
|
|
15
|
+
import UIKit
|
|
21
16
|
|
|
22
17
|
@objc public class CapacitorUpdater: NSObject {
|
|
23
18
|
|
|
@@ -193,7 +188,7 @@ typealias ZipArchiveHelper = SSZipArchive
|
|
|
193
188
|
let semaphore = DispatchSemaphore(value: 0)
|
|
194
189
|
var unzipError: NSError?
|
|
195
190
|
|
|
196
|
-
let success =
|
|
191
|
+
let success = SSZipArchive.unzipFile(atPath: sourceZip.path,
|
|
197
192
|
toDestination: destUnZip.path,
|
|
198
193
|
preserveAttributes: true,
|
|
199
194
|
overwrite: true,
|
|
@@ -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 = "6.13.
|
|
48
|
+
private let PLUGIN_VERSION: String = "6.13.2"
|
|
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"
|