@capgo/capacitor-jw-player 7.2.0 → 7.2.1
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.List;
|
|
|
22
22
|
@CapacitorPlugin(name = "JwPlayer")
|
|
23
23
|
public class JwPlayerPlugin extends Plugin {
|
|
24
24
|
|
|
25
|
-
private final String
|
|
25
|
+
private final String pluginVersion = "7.2.1";
|
|
26
26
|
|
|
27
27
|
private static final String TAG = "JwPlayerPlugin";
|
|
28
28
|
// Static reference to the plugin instance for activity communication
|
|
@@ -538,7 +538,7 @@ public class JwPlayerPlugin extends Plugin {
|
|
|
538
538
|
public void getPluginVersion(final PluginCall call) {
|
|
539
539
|
try {
|
|
540
540
|
final JSObject ret = new JSObject();
|
|
541
|
-
ret.put("version", this.
|
|
541
|
+
ret.put("version", this.pluginVersion);
|
|
542
542
|
call.resolve(ret);
|
|
543
543
|
} catch (final Exception e) {
|
|
544
544
|
call.reject("Could not get plugin version", e);
|
|
@@ -16,7 +16,7 @@ protocol CallbackHandler {
|
|
|
16
16
|
|
|
17
17
|
@objc(JwPlayerPlugin)
|
|
18
18
|
public class JwPlayerPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
19
|
-
private let
|
|
19
|
+
private let pluginVersion: String = "7.2.1"
|
|
20
20
|
// public class JwPlayerPlugin: CAPPlugin, CAPBridgedPlugin, GCKLoggerDelegate {
|
|
21
21
|
public let identifier = "JwPlayerPlugin"
|
|
22
22
|
public let jsName = "JwPlayer"
|
|
@@ -561,7 +561,7 @@ extension JwPlayerPlugin: CallbackHandler {
|
|
|
561
561
|
}
|
|
562
562
|
|
|
563
563
|
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
564
|
-
call.resolve(["version": self.
|
|
564
|
+
call.resolve(["version": self.pluginVersion])
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
|