@capgo/capacitor-downloader 7.2.2 → 7.2.4
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/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a>
|
|
3
3
|
|
|
4
4
|
<div align="center">
|
|
5
|
-
<h2><a href="https://capgo.app/?ref=
|
|
6
|
-
<h2><a href="https://capgo.app/consulting/?ref=
|
|
5
|
+
<h2><a href="https://capgo.app/?ref=plugin_downloader"> ➡️ Get Instant updates for your App with Capgo</a></h2>
|
|
6
|
+
<h2><a href="https://capgo.app/consulting/?ref=plugin_downloader"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
9
|
|
package/android/src/main/java/ee/forgr/capacitor/plugin/downloader/CapacitorDownloaderPlugin.java
CHANGED
|
@@ -22,7 +22,7 @@ import java.util.Map;
|
|
|
22
22
|
@CapacitorPlugin(name = "CapacitorDownloader")
|
|
23
23
|
public class CapacitorDownloaderPlugin extends Plugin {
|
|
24
24
|
|
|
25
|
-
private final String
|
|
25
|
+
private final String pluginVersion = "7.2.4";
|
|
26
26
|
|
|
27
27
|
private DownloadManager downloadManager;
|
|
28
28
|
private final Map<String, Long> downloads = new HashMap<>();
|
|
@@ -266,7 +266,7 @@ public class CapacitorDownloaderPlugin extends Plugin {
|
|
|
266
266
|
public void getPluginVersion(final PluginCall call) {
|
|
267
267
|
try {
|
|
268
268
|
final JSObject ret = new JSObject();
|
|
269
|
-
ret.put("version", this.
|
|
269
|
+
ret.put("version", this.pluginVersion);
|
|
270
270
|
call.resolve(ret);
|
|
271
271
|
} catch (final Exception e) {
|
|
272
272
|
call.reject("Could not get plugin version", e);
|
|
@@ -8,7 +8,7 @@ import Capacitor
|
|
|
8
8
|
|
|
9
9
|
@objc(CapacitorDownloaderPlugin)
|
|
10
10
|
public class CapacitorDownloaderPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
11
|
-
private let
|
|
11
|
+
private let pluginVersion: String = "7.2.4"
|
|
12
12
|
public let identifier = "CapacitorDownloaderPlugin"
|
|
13
13
|
public let jsName = "CapacitorDownloader"
|
|
14
14
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -177,7 +177,7 @@ extension CapacitorDownloaderPlugin: URLSessionDownloadDelegate {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
180
|
-
call.resolve(["version": self.
|
|
180
|
+
call.resolve(["version": self.pluginVersion])
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
}
|