@capgo/capacitor-audio-session 7.0.2 → 7.0.12

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/Package.swift CHANGED
@@ -10,7 +10,7 @@ let package = Package(
10
10
  targets: ["AudioSessionPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.4.2")
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0")
14
14
  ],
15
15
  targets: [
16
16
  .target(
@@ -7,7 +7,7 @@ public class AudioSessionPlugin: CAPPlugin, CAPBridgedPlugin {
7
7
  public let jsName = "AudioSession"
8
8
  public let pluginMethods: [CAPPluginMethod] = [
9
9
  CAPPluginMethod(name: "currentOutputs", returnType: CAPPluginReturnPromise),
10
- CAPPluginMethod(name: "overrideOutput", returnType: CAPPluginReturnPromise),
10
+ CAPPluginMethod(name: "overrideOutput", returnType: CAPPluginReturnPromise)
11
11
  ]
12
12
  private let implementation = AudioSession()
13
13
 
@@ -39,7 +39,7 @@ public class AudioSessionPlugin: CAPPlugin, CAPBridgedPlugin {
39
39
  @objc func overrideOutput(_ call: CAPPluginCall) {
40
40
  let output = call.getString("type") ?? "unknown"
41
41
 
42
- implementation.overrideOutput(_output: output) { (success, message, error) -> Void in
42
+ implementation.overrideOutput(_output: output) { (success, message, error) in
43
43
  if error == true {
44
44
  call.reject(message ?? "")
45
45
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-audio-session",
3
- "version": "7.0.2",
3
+ "version": "7.0.12",
4
4
  "description": "This capacitor plugin allows iOS applications to get notified audio about interrupts & route changes (for example when a headset is connected), and also query and override the audio device in use.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -19,10 +19,10 @@
19
19
  "license": "MIT",
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/cap-go/capacitor-plugin-audiosession.git"
22
+ "url": "git+https://github.com/Cap-go/capacitor-audiosession.git"
23
23
  },
24
24
  "bugs": {
25
- "url": "https://github.com/cap-go/capacitor-plugin-audiosession/issues"
25
+ "url": "https://github.com/Cap-go/capacitor-audiosession/issues"
26
26
  },
27
27
  "keywords": [
28
28
  "capacitor",