@capgo/capacitor-audio-session 7.1.14 → 8.0.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.
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
13
  s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
14
  s.exclude_files = '**/node_modules/**/*', '**/examples/**/*'
15
- s.ios.deployment_target = '14.0'
15
+ s.ios.deployment_target = '15.0'
16
16
  s.dependency 'Capacitor'
17
17
  s.swift_version = '5.1'
18
18
  end
package/Package.swift CHANGED
@@ -3,14 +3,14 @@ import PackageDescription
3
3
 
4
4
  let package = Package(
5
5
  name: "CapgoCapacitorPluginAudioSession",
6
- platforms: [.iOS(.v14)],
6
+ platforms: [.iOS(.v15)],
7
7
  products: [
8
8
  .library(
9
9
  name: "CapgoCapacitorPluginAudioSession",
10
10
  targets: ["AudioSessionPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0")
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0")
14
14
  ],
15
15
  targets: [
16
16
  .target(
@@ -16,7 +16,7 @@ import org.json.JSONObject;
16
16
 
17
17
  @CapacitorPlugin(name = "AudioSession")
18
18
  public class AudioSessionPlugin extends Plugin {
19
- private final String pluginVersion = "7.1.14";
19
+ private final String pluginVersion = "8.0.1";
20
20
 
21
21
  public static String LOG_TAG = "CapgoAudioSession";
22
22
 
@@ -30,7 +30,7 @@ export declare enum AudioSessionPorts {
30
30
  /**
31
31
  * Result of an output override request.
32
32
  */
33
- export declare type OverrideResult = {
33
+ export type OverrideResult = {
34
34
  success: boolean;
35
35
  message: string;
36
36
  };
@@ -39,15 +39,15 @@ export declare type OverrideResult = {
39
39
  * - `default`: Use the system-selected route.
40
40
  * - `speaker`: Force playback through the built-in speaker.
41
41
  */
42
- export declare type OutputOverrideType = 'default' | 'speaker';
42
+ export type OutputOverrideType = 'default' | 'speaker';
43
43
  /**
44
44
  * Listener called when the audio route changes.
45
45
  */
46
- export declare type RouteChangeListener = (reason: RouteChangeReasons) => void;
46
+ export type RouteChangeListener = (reason: RouteChangeReasons) => void;
47
47
  /**
48
48
  * Listener called when the audio session is interrupted or ends.
49
49
  */
50
- export declare type InterruptionListener = (type: InterruptionTypes) => void;
50
+ export type InterruptionListener = (type: InterruptionTypes) => void;
51
51
  /**
52
52
  * iOS-only plugin to query and control the audio session output and listen to
53
53
  * route changes and interruptions.
@@ -3,7 +3,7 @@ import Capacitor
3
3
 
4
4
  @objc(AudioSessionPlugin)
5
5
  public class AudioSessionPlugin: CAPPlugin, CAPBridgedPlugin {
6
- private let pluginVersion: String = "7.1.14"
6
+ private let pluginVersion: String = "8.0.1"
7
7
  public let identifier = "AudioSessionPlugin"
8
8
  public let jsName = "AudioSession"
9
9
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-audio-session",
3
- "version": "7.1.14",
3
+ "version": "8.0.1",
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",
@@ -48,23 +48,23 @@
48
48
  "prepublishOnly": "npm run build"
49
49
  },
50
50
  "devDependencies": {
51
- "@capacitor/core": "^7.0.0",
52
- "@capacitor/docgen": "^0.3.0",
53
- "@capacitor/ios": "^7.0.0",
54
- "@capacitor/android": "^7.0.0",
51
+ "@capacitor/core": "^8.0.0",
52
+ "@capacitor/docgen": "^0.3.1",
53
+ "@capacitor/ios": "^8.0.0",
54
+ "@capacitor/android": "^8.0.0",
55
55
  "@ionic/eslint-config": "^0.4.0",
56
56
  "@ionic/prettier-config": "^4.0.0",
57
57
  "@ionic/swiftlint-config": "^2.0.0",
58
- "eslint": "^8.57.0",
59
- "prettier": "^3.4.2",
60
- "rimraf": "^6.0.1",
61
- "rollup": "^4.30.1",
58
+ "eslint": "^8.57.1",
59
+ "prettier": "^3.6.2",
60
+ "rimraf": "^6.1.0",
61
+ "rollup": "^4.53.2",
62
62
  "swiftlint": "^2.0.0",
63
- "typescript": "~4.1.5",
64
- "prettier-plugin-java": "^2.6.6"
63
+ "typescript": "^5.9.3",
64
+ "prettier-plugin-java": "^2.7.7"
65
65
  },
66
66
  "peerDependencies": {
67
- "@capacitor/core": ">=7.0.0"
67
+ "@capacitor/core": ">=8.0.0"
68
68
  },
69
69
  "prettier": "@ionic/prettier-config",
70
70
  "swiftlint": "@ionic/swiftlint-config",