@capgo/capacitor-audio-recorder 8.0.2 → 8.0.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.
@@ -25,7 +25,7 @@ import java.util.Locale;
25
25
  )
26
26
  public class CapacitorAudioRecorderPlugin extends com.getcapacitor.Plugin {
27
27
 
28
- private final String pluginVersion = "8.0.2";
28
+ private final String pluginVersion = "8.0.4";
29
29
 
30
30
  private enum RecordingStatus {
31
31
  INACTIVE,
@@ -4,7 +4,7 @@ import Foundation
4
4
 
5
5
  @objc(CapacitorAudioRecorderPlugin)
6
6
  public class CapacitorAudioRecorderPlugin: CAPPlugin, CAPBridgedPlugin, AVAudioRecorderDelegate {
7
- private let pluginVersion: String = "8.0.2"
7
+ private let pluginVersion: String = "8.0.4"
8
8
  public let identifier = "CapacitorAudioRecorderPlugin"
9
9
  public let jsName = "CapacitorAudioRecorder"
10
10
  public let pluginMethods: [CAPPluginMethod] = [
@@ -279,10 +279,7 @@ public class CapacitorAudioRecorderPlugin: CAPPlugin, CAPBridgedPlugin, AVAudioR
279
279
  case "ALLOW_BLUETOOTH":
280
280
  return .allowBluetooth
281
281
  case "ALLOW_BLUETOOTH_A2DP":
282
- if #available(iOS 10.0, *) {
283
- return .allowBluetoothA2DP
284
- }
285
- return nil
282
+ return .allowBluetoothA2DP
286
283
  case "DEFAULT_TO_SPEAKER":
287
284
  return .defaultToSpeaker
288
285
  case "DUCK_OTHERS":
@@ -292,10 +289,7 @@ public class CapacitorAudioRecorderPlugin: CAPPlugin, CAPBridgedPlugin, AVAudioR
292
289
  case "MIX_WITH_OTHERS":
293
290
  return .mixWithOthers
294
291
  case "OVERRIDE_MUTED_MICROPHONE_INTERRUPTION":
295
- if #available(iOS 14.5, *) {
296
- return .overrideMutedMicrophoneInterruption
297
- }
298
- return nil
292
+ return .overrideMutedMicrophoneInterruption
299
293
  default:
300
294
  return nil
301
295
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-audio-recorder",
3
- "version": "8.0.2",
3
+ "version": "8.0.4",
4
4
  "description": "Record audio on iOS, Android, and Web with Capacitor",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -43,7 +43,7 @@
43
43
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
44
44
  "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
45
45
  "eslint": "eslint . --ext .ts",
46
- "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
46
+ "prettier": "prettier-pretty-check \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
47
47
  "swiftlint": "node-swiftlint",
48
48
  "docgen": "docgen --api CapacitorAudioRecorderPlugin --output-readme README.md --output-json dist/docs.json",
49
49
  "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
@@ -69,7 +69,8 @@
69
69
  "rimraf": "^6.1.0",
70
70
  "rollup": "^4.53.2",
71
71
  "swiftlint": "^2.0.0",
72
- "typescript": "^5.9.3"
72
+ "typescript": "^5.9.3",
73
+ "prettier-pretty-check": "^0.2.0"
73
74
  },
74
75
  "peerDependencies": {
75
76
  "@capacitor/core": ">=8.0.0"