rns-nativecall 0.8.4 → 0.8.6

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rns-nativecall",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "description": "High-performance React Native module for handling native VoIP call UI on Android and iOS.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -44,11 +44,9 @@
44
44
  ],
45
45
  "peerDependencies": {
46
46
  "expo": ">=45.0.0",
47
- "react-native": ">=0.60.0",
48
- "@expo/config-plugins": "^7.0.0 || ^8.0.0 || ^9.0.0"
47
+ "react-native": ">=0.60.0"
49
48
  },
50
- "devDependencies": {
49
+ "dependencies": {
51
50
  "@expo/config-plugins": "^9.0.0"
52
- },
53
- "dependencies": {}
51
+ }
54
52
  }
@@ -169,16 +169,16 @@ function withIosConfig(config, props = {}) {
169
169
  // Explicit check: only disable if strictly false
170
170
  const enableAudio = iosBackgroundAudio !== false;
171
171
 
172
- if (enableAudio) {
173
- if (!infoPlist.UIBackgroundModes.includes('audio')) {
174
- infoPlist.UIBackgroundModes.push('audio');
175
- }
176
- } else {
177
- infoPlist.UIBackgroundModes = infoPlist.UIBackgroundModes.filter(
178
- (mode) => mode !== 'audio'
179
- );
180
- console.log(`[rns-nativecall] 'audio' background mode removed.`);
181
- }
172
+ // if (enableAudio) {
173
+ // if (!infoPlist.UIBackgroundModes.includes('audio')) {
174
+ // infoPlist.UIBackgroundModes.push('audio');
175
+ // }
176
+ // } else {
177
+ // infoPlist.UIBackgroundModes = infoPlist.UIBackgroundModes.filter(
178
+ // (mode) => mode !== 'audio'
179
+ // );
180
+ // console.log(`[rns-nativecall] 'audio' background mode removed.`);
181
+ // }
182
182
 
183
183
  ['voip', 'remote-notification'].forEach(mode => {
184
184
  if (!infoPlist.UIBackgroundModes.includes(mode)) {