@capgo/native-audio 7.7.5 → 7.7.7
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
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<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>
|
|
4
4
|
|
|
5
5
|
<div align="center">
|
|
6
|
-
<h2><a href="https://capgo.app/?ref=
|
|
7
|
-
<h2><a href="https://capgo.app/consulting/?ref=
|
|
6
|
+
<h2><a href="https://capgo.app/?ref=plugin_native_audio"> ➡️ Get Instant updates for your App with Capgo</a></h2>
|
|
7
|
+
<h2><a href="https://capgo.app/consulting/?ref=plugin_native_audio"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
10
|
<h3 align="center">Native Audio</h3>
|
|
@@ -51,7 +51,7 @@ import java.util.Map;
|
|
|
51
51
|
)
|
|
52
52
|
public class NativeAudio extends Plugin implements AudioManager.OnAudioFocusChangeListener {
|
|
53
53
|
|
|
54
|
-
private final String
|
|
54
|
+
private final String pluginVersion = "";
|
|
55
55
|
|
|
56
56
|
public static final String TAG = "NativeAudio";
|
|
57
57
|
|
|
@@ -727,7 +727,7 @@ public class NativeAudio extends Plugin implements AudioManager.OnAudioFocusChan
|
|
|
727
727
|
public void getPluginVersion(final PluginCall call) {
|
|
728
728
|
try {
|
|
729
729
|
final JSObject ret = new JSObject();
|
|
730
|
-
ret.put("version", this.
|
|
730
|
+
ret.put("version", this.pluginVersion);
|
|
731
731
|
call.resolve(ret);
|
|
732
732
|
} catch (final Exception e) {
|
|
733
733
|
call.reject("Could not get plugin version", e);
|
|
@@ -11,7 +11,7 @@ enum MyError: Error {
|
|
|
11
11
|
/// here: https://capacitor.ionicframework.com/docs/plugins/ios
|
|
12
12
|
@objc(NativeAudio)
|
|
13
13
|
public class NativeAudio: CAPPlugin, AVAudioPlayerDelegate, CAPBridgedPlugin {
|
|
14
|
-
private let
|
|
14
|
+
private let pluginVersion: String = "7.7.7"
|
|
15
15
|
public let identifier = "NativeAudio"
|
|
16
16
|
public let jsName = "NativeAudio"
|
|
17
17
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -635,7 +635,7 @@ public class NativeAudio: CAPPlugin, AVAudioPlayerDelegate, CAPBridgedPlugin {
|
|
|
635
635
|
}
|
|
636
636
|
|
|
637
637
|
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
638
|
-
call.resolve(["version": self.
|
|
638
|
+
call.resolve(["version": self.pluginVersion])
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
@objc func deinitPlugin(_ call: CAPPluginCall) {
|