@capgo/capacitor-updater 4.14.2 → 4.14.3
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.
|
@@ -63,7 +63,7 @@ public class CapacitorUpdater {
|
|
|
63
63
|
private static final String bundleDirectory = "versions";
|
|
64
64
|
|
|
65
65
|
public static final String TAG = "Capacitor-updater";
|
|
66
|
-
public static final String pluginVersion = "4.14.
|
|
66
|
+
public static final String pluginVersion = "4.14.3";
|
|
67
67
|
|
|
68
68
|
public SharedPreferences.Editor editor;
|
|
69
69
|
public SharedPreferences prefs;
|
|
@@ -420,8 +420,8 @@ extension CustomError: LocalizedError {
|
|
|
420
420
|
latest.sessionKey = sessionKey
|
|
421
421
|
}
|
|
422
422
|
case let .failure(error):
|
|
423
|
-
print("\(self.TAG) Error getting Latest", error )
|
|
424
|
-
latest.message = "Error getting Latest \(
|
|
423
|
+
print("\(self.TAG) Error getting Latest", response.value, error )
|
|
424
|
+
latest.message = "Error getting Latest \(response.value)"
|
|
425
425
|
latest.error = "fail_response"
|
|
426
426
|
}
|
|
427
427
|
semaphore.signal()
|
|
@@ -471,7 +471,7 @@ extension CustomError: LocalizedError {
|
|
|
471
471
|
mainError = error as NSError
|
|
472
472
|
}
|
|
473
473
|
case let .failure(error):
|
|
474
|
-
print("\(self.TAG) download error", error)
|
|
474
|
+
print("\(self.TAG) download error", response.value!, error)
|
|
475
475
|
mainError = error as NSError
|
|
476
476
|
}
|
|
477
477
|
}
|
|
@@ -645,8 +645,8 @@ extension CustomError: LocalizedError {
|
|
|
645
645
|
setChannel.message = message
|
|
646
646
|
}
|
|
647
647
|
case let .failure(error):
|
|
648
|
-
print("\(self.TAG) Error set Channel", error)
|
|
649
|
-
setChannel.message = "Error set Channel \(
|
|
648
|
+
print("\(self.TAG) Error set Channel", response.value, error)
|
|
649
|
+
setChannel.message = "Error set Channel \(String(describing: response.value))"
|
|
650
650
|
setChannel.error = "fail_response"
|
|
651
651
|
}
|
|
652
652
|
semaphore.signal()
|
|
@@ -683,8 +683,8 @@ extension CustomError: LocalizedError {
|
|
|
683
683
|
getChannel.allowSet = allowSet
|
|
684
684
|
}
|
|
685
685
|
case let .failure(error):
|
|
686
|
-
print("\(self.TAG) Error get Channel", error
|
|
687
|
-
getChannel.message = "Error get Channel \(
|
|
686
|
+
print("\(self.TAG) Error get Channel", response.value, error)
|
|
687
|
+
getChannel.message = "Error get Channel \(String(describing: response.value)))"
|
|
688
688
|
getChannel.error = "fail_response"
|
|
689
689
|
}
|
|
690
690
|
semaphore.signal()
|
|
@@ -706,7 +706,7 @@ extension CustomError: LocalizedError {
|
|
|
706
706
|
case .success:
|
|
707
707
|
print("\(self.TAG) Stats send for \(action), version \(versionName)")
|
|
708
708
|
case let .failure(error):
|
|
709
|
-
print("\(self.TAG) Error sending stats: ", error
|
|
709
|
+
print("\(self.TAG) Error sending stats: ", response.value, error)
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
}
|