@capgo/capacitor-downloader 7.2.3 → 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.
@@ -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 PLUGIN_VERSION = "7.2.3";
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.PLUGIN_VERSION);
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 PLUGIN_VERSION: String = "7.2.3"
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.PLUGIN_VERSION])
180
+ call.resolve(["version": self.pluginVersion])
181
181
  }
182
182
 
183
183
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-downloader",
3
- "version": "7.2.3",
3
+ "version": "7.2.4",
4
4
  "description": "Download file in background or foreground",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",