@capawesome/capacitor-live-update 6.0.5 → 6.0.6

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.
@@ -185,6 +185,7 @@ public class LiveUpdate {
185
185
  }
186
186
 
187
187
  setNextBundle(bundleId);
188
+ callback.success();
188
189
  }
189
190
 
190
191
  public void setChannel(@NonNull SetChannelOptions options, @NonNull EmptyCallback callback) {
@@ -19,7 +19,7 @@ import io.capawesome.capacitorjs.plugins.liveupdate.interfaces.Result;
19
19
  public class LiveUpdatePlugin extends Plugin {
20
20
 
21
21
  public static final String TAG = "LiveUpdate";
22
- public static final String VERSION = "6.0.5";
22
+ public static final String VERSION = "6.0.6";
23
23
  public static final String SHARED_PREFERENCES_NAME = "CapawesomeLiveUpdate"; // DO NOT CHANGE
24
24
  public static final String ERROR_APP_ID_MISSING = "appId must be configured.";
25
25
  public static final String ERROR_BUNDLE_EXISTS = "bundle already exists.";
@@ -154,6 +154,7 @@ import Alamofire
154
154
  }
155
155
 
156
156
  setNextBundle(bundleId: bundleId)
157
+ completion(nil)
157
158
  }
158
159
 
159
160
  @objc public func setChannel(_ options: SetChannelOptions, completion: @escaping (Error?) -> Void) {
@@ -509,7 +510,7 @@ import Alamofire
509
510
 
510
511
  extension DispatchQueue {
511
512
  static func background(background: (() -> Void)? = nil, completion: (() -> Void)? = nil) {
512
- DispatchQueue.global(qos: .background).async {
513
+ DispatchQueue.global(qos: .userInitiated).async {
513
514
  background?()
514
515
  if let completion = completion {
515
516
  DispatchQueue.main.async {
@@ -8,7 +8,7 @@ import Capacitor
8
8
  @objc(LiveUpdatePlugin)
9
9
  public class LiveUpdatePlugin: CAPPlugin {
10
10
  public static let tag = "LiveUpdate"
11
- public static let version = "6.0.5"
11
+ public static let version = "6.0.6"
12
12
  public static let userDefaultsPrefix = "CapawesomeLiveUpdate" // DO NOT CHANGE
13
13
 
14
14
  private var config: LiveUpdateConfig?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capawesome/capacitor-live-update",
3
- "version": "6.0.5",
3
+ "version": "6.0.6",
4
4
  "description": "Capacitor plugin to update your app remotely in real-time.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",