blix-expo-settings 0.1.12 → 0.1.13

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.
@@ -209,7 +209,7 @@ public class ExpoSettingsModule: Module {
209
209
  // Audio session
210
210
  let session = AVAudioSession.sharedInstance()
211
211
  do {
212
- try session.setCategory(.playAndRecord, mode: .videoRecording, options: [.defaultToSpeaker, .allowBluetooth])
212
+ try session.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetooth])
213
213
  try session.setPreferredSampleRate(44_100)
214
214
  try session.setActive(true)
215
215
  print("[ExpoSettings] ✅ AudioSession OK")
@@ -218,6 +218,8 @@ public class ExpoSettingsModule: Module {
218
218
  }
219
219
 
220
220
  let connection = RTMPConnection()
221
+ self.rtmpConnection = connection
222
+
221
223
  let stream = RTMPStream(connection: connection)
222
224
 
223
225
  // Attach listeners
@@ -235,7 +237,6 @@ public class ExpoSettingsModule: Module {
235
237
  selector: #selector(RTMPEventObserver.rtmpErrorHandler(_:)),
236
238
  observer: self.rtmpObserver)
237
239
 
238
- self.rtmpConnection = connection
239
240
  self.rtmpStream = stream
240
241
 
241
242
  self.rtmpObserver.onStatus = { [weak self] code, level, desc in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blix-expo-settings",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "LiveStream",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -29,7 +29,6 @@
29
29
  "license": "MIT",
30
30
  "homepage": "https://github.com/BlixTechnology/expo-settings#readme",
31
31
  "devDependencies": {
32
- "@react-native-community/cli-server-api": "^20.1.1",
33
32
  "@types/react": "~19.0.0",
34
33
  "expo": "^50.0.21",
35
34
  "expo-module-scripts": "^4.1.7",
@@ -39,8 +38,5 @@
39
38
  "expo": "*",
40
39
  "react": "*",
41
40
  "react-native": "*"
42
- },
43
- "dependencies": {
44
- "expo-dev-client": "~3.3.12"
45
41
  }
46
42
  }