@stream-io/video-react-native-sdk 1.31.1-beta.0 → 1.31.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.
Files changed (217) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/android/src/main/AndroidManifest.xml +1 -8
  3. package/android/src/main/AndroidManifestNew.xml +0 -11
  4. package/android/src/main/java/com/streamvideo/reactnative/StreamVideoReactNativeModule.kt +5 -42
  5. package/android/src/main/java/com/streamvideo/reactnative/audio/utils/WebRtcAudioUtils.kt +6 -70
  6. package/android/src/main/java/com/streamvideo/reactnative/callmanager/StreamInCallManagerModule.kt +4 -6
  7. package/android/src/main/java/com/streamvideo/reactnative/util/CallAliveServiceChecker.kt +95 -0
  8. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +2 -6
  9. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
  10. package/dist/commonjs/hooks/push/index.js +2 -0
  11. package/dist/commonjs/hooks/push/index.js.map +1 -1
  12. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +160 -0
  13. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -0
  14. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +31 -18
  15. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  16. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +67 -0
  17. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +1 -0
  18. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +97 -64
  19. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  20. package/dist/commonjs/index.js +0 -1
  21. package/dist/commonjs/index.js.map +1 -1
  22. package/dist/commonjs/modules/call-manager/CallManager.js +0 -26
  23. package/dist/commonjs/modules/call-manager/CallManager.js.map +1 -1
  24. package/dist/commonjs/providers/StreamCall/index.js +6 -6
  25. package/dist/commonjs/providers/StreamCall/index.js.map +1 -1
  26. package/dist/commonjs/utils/StreamVideoRN/index.js +21 -35
  27. package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
  28. package/dist/commonjs/utils/internal/registerSDKGlobals.js +3 -53
  29. package/dist/commonjs/utils/internal/registerSDKGlobals.js.map +1 -1
  30. package/dist/commonjs/utils/push/android.js +202 -135
  31. package/dist/commonjs/utils/push/android.js.map +1 -1
  32. package/dist/commonjs/utils/push/internal/ios.js +34 -17
  33. package/dist/commonjs/utils/push/internal/ios.js.map +1 -1
  34. package/dist/commonjs/utils/push/internal/rxSubjects.js +45 -1
  35. package/dist/commonjs/utils/push/internal/rxSubjects.js.map +1 -1
  36. package/dist/commonjs/utils/push/internal/utils.js +53 -71
  37. package/dist/commonjs/utils/push/internal/utils.js.map +1 -1
  38. package/dist/commonjs/utils/push/ios.js.map +1 -1
  39. package/dist/commonjs/utils/push/libs/callkeep.js +17 -0
  40. package/dist/commonjs/utils/push/libs/callkeep.js.map +1 -0
  41. package/dist/commonjs/utils/push/libs/index.js +19 -8
  42. package/dist/commonjs/utils/push/libs/index.js.map +1 -1
  43. package/dist/commonjs/utils/push/libs/notifee/index.js +19 -0
  44. package/dist/commonjs/utils/push/libs/notifee/index.js.map +1 -1
  45. package/dist/commonjs/utils/push/libs/voipPushNotification.js +17 -0
  46. package/dist/commonjs/utils/push/libs/voipPushNotification.js.map +1 -0
  47. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +205 -0
  48. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +1 -0
  49. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +6 -7
  50. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
  51. package/dist/commonjs/version.js +1 -1
  52. package/dist/commonjs/version.js.map +1 -1
  53. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +2 -6
  54. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
  55. package/dist/module/hooks/push/index.js +2 -0
  56. package/dist/module/hooks/push/index.js.map +1 -1
  57. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +153 -0
  58. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -0
  59. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +31 -18
  60. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  61. package/dist/module/hooks/push/useProcessPushCallEffect.js +60 -0
  62. package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -0
  63. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +99 -66
  64. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  65. package/dist/module/index.js +0 -1
  66. package/dist/module/index.js.map +1 -1
  67. package/dist/module/modules/call-manager/CallManager.js +0 -26
  68. package/dist/module/modules/call-manager/CallManager.js.map +1 -1
  69. package/dist/module/providers/StreamCall/index.js +6 -6
  70. package/dist/module/providers/StreamCall/index.js.map +1 -1
  71. package/dist/module/utils/StreamVideoRN/index.js +21 -35
  72. package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
  73. package/dist/module/utils/internal/registerSDKGlobals.js +3 -53
  74. package/dist/module/utils/internal/registerSDKGlobals.js.map +1 -1
  75. package/dist/module/utils/push/android.js +204 -137
  76. package/dist/module/utils/push/android.js.map +1 -1
  77. package/dist/module/utils/push/internal/ios.js +34 -17
  78. package/dist/module/utils/push/internal/ios.js.map +1 -1
  79. package/dist/module/utils/push/internal/rxSubjects.js +44 -0
  80. package/dist/module/utils/push/internal/rxSubjects.js.map +1 -1
  81. package/dist/module/utils/push/internal/utils.js +50 -67
  82. package/dist/module/utils/push/internal/utils.js.map +1 -1
  83. package/dist/module/utils/push/ios.js.map +1 -1
  84. package/dist/module/utils/push/libs/callkeep.js +11 -0
  85. package/dist/module/utils/push/libs/callkeep.js.map +1 -0
  86. package/dist/module/utils/push/libs/index.js +2 -1
  87. package/dist/module/utils/push/libs/index.js.map +1 -1
  88. package/dist/module/utils/push/libs/notifee/index.js +18 -0
  89. package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
  90. package/dist/module/utils/push/libs/voipPushNotification.js +11 -0
  91. package/dist/module/utils/push/libs/voipPushNotification.js.map +1 -0
  92. package/dist/module/utils/push/setupIosCallKeepEvents.js +199 -0
  93. package/dist/module/utils/push/setupIosCallKeepEvents.js.map +1 -0
  94. package/dist/module/utils/push/setupIosVoipPushEvents.js +6 -7
  95. package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
  96. package/dist/module/version.js +1 -1
  97. package/dist/module/version.js.map +1 -1
  98. package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -1
  99. package/dist/typescript/hooks/push/index.d.ts.map +1 -1
  100. package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts +5 -0
  101. package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts.map +1 -0
  102. package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
  103. package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts +8 -0
  104. package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts.map +1 -0
  105. package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -1
  106. package/dist/typescript/index.d.ts +0 -1
  107. package/dist/typescript/index.d.ts.map +1 -1
  108. package/dist/typescript/modules/call-manager/CallManager.d.ts +0 -5
  109. package/dist/typescript/modules/call-manager/CallManager.d.ts.map +1 -1
  110. package/dist/typescript/utils/StreamVideoRN/index.d.ts +2 -22
  111. package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
  112. package/dist/typescript/utils/StreamVideoRN/types.d.ts +25 -59
  113. package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
  114. package/dist/typescript/utils/internal/registerSDKGlobals.d.ts.map +1 -1
  115. package/dist/typescript/utils/push/android.d.ts +2 -1
  116. package/dist/typescript/utils/push/android.d.ts.map +1 -1
  117. package/dist/typescript/utils/push/internal/ios.d.ts.map +1 -1
  118. package/dist/typescript/utils/push/internal/rxSubjects.d.ts +33 -0
  119. package/dist/typescript/utils/push/internal/rxSubjects.d.ts.map +1 -1
  120. package/dist/typescript/utils/push/internal/utils.d.ts +8 -14
  121. package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
  122. package/dist/typescript/utils/push/ios.d.ts +2 -1
  123. package/dist/typescript/utils/push/ios.d.ts.map +1 -1
  124. package/dist/typescript/utils/push/libs/callkeep.d.ts +3 -0
  125. package/dist/typescript/utils/push/libs/callkeep.d.ts.map +1 -0
  126. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts +2 -16
  127. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
  128. package/dist/typescript/utils/push/libs/index.d.ts +2 -1
  129. package/dist/typescript/utils/push/libs/index.d.ts.map +1 -1
  130. package/dist/typescript/utils/push/libs/notifee/index.d.ts +1 -0
  131. package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
  132. package/dist/typescript/utils/push/libs/voipPushNotification.d.ts +3 -0
  133. package/dist/typescript/utils/push/libs/voipPushNotification.d.ts.map +1 -0
  134. package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts +6 -0
  135. package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts.map +1 -0
  136. package/dist/typescript/utils/push/setupIosVoipPushEvents.d.ts.map +1 -1
  137. package/dist/typescript/version.d.ts +1 -1
  138. package/dist/typescript/version.d.ts.map +1 -1
  139. package/expo-config-plugin/dist/withAndroidManifest.js +33 -1
  140. package/expo-config-plugin/dist/withAndroidPermissions.js +7 -2
  141. package/expo-config-plugin/dist/withAppDelegate.js +197 -19
  142. package/expo-config-plugin/dist/withMainActivity.js +1 -1
  143. package/expo-config-plugin/dist/withiOSInfoPlist.js +3 -2
  144. package/ios/StreamInCallManager.m +0 -2
  145. package/ios/StreamInCallManager.swift +7 -19
  146. package/ios/StreamVideoReactNative.h +4 -7
  147. package/ios/StreamVideoReactNative.m +82 -189
  148. package/package.json +16 -11
  149. package/src/components/Participant/ParticipantView/ParticipantLabel.tsx +2 -7
  150. package/src/hooks/push/index.ts +2 -0
  151. package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +235 -0
  152. package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +34 -21
  153. package/src/hooks/push/useProcessPushCallEffect.ts +108 -0
  154. package/src/hooks/useAndroidKeepCallAliveEffect.ts +120 -94
  155. package/src/index.ts +0 -1
  156. package/src/modules/call-manager/CallManager.ts +0 -36
  157. package/src/modules/call-manager/native-module.d.ts +0 -7
  158. package/src/providers/StreamCall/index.tsx +6 -6
  159. package/src/utils/StreamVideoRN/index.ts +30 -42
  160. package/src/utils/StreamVideoRN/types.ts +25 -61
  161. package/src/utils/internal/registerSDKGlobals.ts +4 -52
  162. package/src/utils/push/android.ts +311 -198
  163. package/src/utils/push/internal/ios.ts +44 -28
  164. package/src/utils/push/internal/rxSubjects.ts +61 -0
  165. package/src/utils/push/internal/utils.ts +64 -108
  166. package/src/utils/push/ios.ts +6 -1
  167. package/src/utils/push/libs/callkeep.ts +16 -0
  168. package/src/utils/push/libs/index.ts +2 -1
  169. package/src/utils/push/libs/notifee/index.ts +27 -0
  170. package/src/utils/push/libs/voipPushNotification.ts +17 -0
  171. package/src/utils/push/setupIosCallKeepEvents.ts +252 -0
  172. package/src/utils/push/setupIosVoipPushEvents.ts +7 -11
  173. package/src/version.ts +1 -1
  174. package/android/src/main/java/com/streamvideo/reactnative/keepalive/KeepAliveNotification.kt +0 -83
  175. package/android/src/main/java/com/streamvideo/reactnative/keepalive/StreamCallKeepAliveHeadlessService.kt +0 -149
  176. package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js +0 -144
  177. package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js.map +0 -1
  178. package/dist/commonjs/utils/internal/callingx/audioSessionPromise.js +0 -68
  179. package/dist/commonjs/utils/internal/callingx/audioSessionPromise.js.map +0 -1
  180. package/dist/commonjs/utils/internal/callingx/callingx.js +0 -150
  181. package/dist/commonjs/utils/internal/callingx/callingx.js.map +0 -1
  182. package/dist/commonjs/utils/keepCallAliveHeadlessTask.js +0 -48
  183. package/dist/commonjs/utils/keepCallAliveHeadlessTask.js.map +0 -1
  184. package/dist/commonjs/utils/push/libs/callingx.js +0 -75
  185. package/dist/commonjs/utils/push/libs/callingx.js.map +0 -1
  186. package/dist/commonjs/utils/push/setupCallingExpEvents.js +0 -105
  187. package/dist/commonjs/utils/push/setupCallingExpEvents.js.map +0 -1
  188. package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js +0 -137
  189. package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js.map +0 -1
  190. package/dist/module/utils/internal/callingx/audioSessionPromise.js +0 -61
  191. package/dist/module/utils/internal/callingx/audioSessionPromise.js.map +0 -1
  192. package/dist/module/utils/internal/callingx/callingx.js +0 -140
  193. package/dist/module/utils/internal/callingx/callingx.js.map +0 -1
  194. package/dist/module/utils/keepCallAliveHeadlessTask.js +0 -42
  195. package/dist/module/utils/keepCallAliveHeadlessTask.js.map +0 -1
  196. package/dist/module/utils/push/libs/callingx.js +0 -67
  197. package/dist/module/utils/push/libs/callingx.js.map +0 -1
  198. package/dist/module/utils/push/setupCallingExpEvents.js +0 -99
  199. package/dist/module/utils/push/setupCallingExpEvents.js.map +0 -1
  200. package/dist/typescript/hooks/push/useCallingExpWithCallingStateEffect.d.ts +0 -5
  201. package/dist/typescript/hooks/push/useCallingExpWithCallingStateEffect.d.ts.map +0 -1
  202. package/dist/typescript/utils/internal/callingx/audioSessionPromise.d.ts +0 -16
  203. package/dist/typescript/utils/internal/callingx/audioSessionPromise.d.ts.map +0 -1
  204. package/dist/typescript/utils/internal/callingx/callingx.d.ts +0 -18
  205. package/dist/typescript/utils/internal/callingx/callingx.d.ts.map +0 -1
  206. package/dist/typescript/utils/keepCallAliveHeadlessTask.d.ts +0 -10
  207. package/dist/typescript/utils/keepCallAliveHeadlessTask.d.ts.map +0 -1
  208. package/dist/typescript/utils/push/libs/callingx.d.ts +0 -9
  209. package/dist/typescript/utils/push/libs/callingx.d.ts.map +0 -1
  210. package/dist/typescript/utils/push/setupCallingExpEvents.d.ts +0 -8
  211. package/dist/typescript/utils/push/setupCallingExpEvents.d.ts.map +0 -1
  212. package/src/hooks/push/useCallingExpWithCallingStateEffect.ts +0 -189
  213. package/src/utils/internal/callingx/audioSessionPromise.ts +0 -65
  214. package/src/utils/internal/callingx/callingx.ts +0 -194
  215. package/src/utils/keepCallAliveHeadlessTask.ts +0 -54
  216. package/src/utils/push/libs/callingx.ts +0 -89
  217. package/src/utils/push/setupCallingExpEvents.ts +0 -135
@@ -1,61 +0,0 @@
1
- /**
2
- * Module to manage pending promise for audio session activation.
3
- * Used to wait for iOS CallKit's didActivateAudioSession event after starting a call.
4
- */
5
-
6
- import { videoLoggerSystem } from '@stream-io/video-client';
7
- const logger = videoLoggerSystem.getLogger('callingx');
8
- let pendingResolve = null;
9
- let pendingTimeout = null;
10
- let resolveSetTime = null;
11
- /**
12
- * Flag to check if the audio session is already activated.
13
- * This solves race condition for a cold start case, when the audio session is activated before the promise is created.
14
- */
15
- let isAudioSessionAlreadyActivated = false;
16
- const AUDIO_SESSION_TIMEOUT_MS = 5000;
17
-
18
- /**
19
- * Creates a promise that resolves when the audio session is activated,
20
- * or after a timeout to prevent hanging indefinitely.
21
- * @returns Promise that resolves when audio session is activated or timeout occurs
22
- */
23
- export function waitForAudioSessionActivation() {
24
- if (isAudioSessionAlreadyActivated) {
25
- isAudioSessionAlreadyActivated = false;
26
- return Promise.resolve();
27
- }
28
- resolveSetTime = Date.now();
29
- return new Promise(resolve => {
30
- pendingResolve = resolve;
31
- pendingTimeout = setTimeout(() => {
32
- // Resolve on timeout to prevent hanging
33
- logger.debug('audioSessionPromise timed out');
34
- resolvePendingAudioSession();
35
- }, AUDIO_SESSION_TIMEOUT_MS);
36
- });
37
- }
38
-
39
- /**
40
- * Resolves the pending audio session activation promise.
41
- * Called when the didActivateAudioSession event fires or on timeout.
42
- */
43
- export function resolvePendingAudioSession() {
44
- if (pendingTimeout) {
45
- clearTimeout(pendingTimeout);
46
- pendingTimeout = null;
47
- }
48
- if (pendingResolve) {
49
- pendingResolve();
50
- if (resolveSetTime) {
51
- const elapsedTime = Date.now() - resolveSetTime;
52
- resolveSetTime = null;
53
- logger.debug(`audioSessionPromise resolved in ${elapsedTime}ms`);
54
- }
55
- pendingResolve = null;
56
- isAudioSessionAlreadyActivated = false;
57
- } else {
58
- isAudioSessionAlreadyActivated = true;
59
- }
60
- }
61
- //# sourceMappingURL=audioSessionPromise.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["videoLoggerSystem","logger","getLogger","pendingResolve","pendingTimeout","resolveSetTime","isAudioSessionAlreadyActivated","AUDIO_SESSION_TIMEOUT_MS","waitForAudioSessionActivation","Promise","resolve","Date","now","setTimeout","debug","resolvePendingAudioSession","clearTimeout","elapsedTime"],"sourceRoot":"../../../../../src","sources":["utils/internal/callingx/audioSessionPromise.ts"],"mappings":"AAAA;AACA;AACA;AACA;;AAEA,SAASA,iBAAiB,QAAQ,yBAAyB;AAE3D,MAAMC,MAAM,GAAGD,iBAAiB,CAACE,SAAS,CAAC,UAAU,CAAC;AAEtD,IAAIC,cAAmC,GAAG,IAAI;AAC9C,IAAIC,cAAoD,GAAG,IAAI;AAC/D,IAAIC,cAA6B,GAAG,IAAI;AACxC;AACA;AACA;AACA;AACA,IAAIC,8BAA8B,GAAG,KAAK;AAE1C,MAAMC,wBAAwB,GAAG,IAAI;;AAErC;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,6BAA6BA,CAAA,EAAkB;EAC7D,IAAIF,8BAA8B,EAAE;IAClCA,8BAA8B,GAAG,KAAK;IACtC,OAAOG,OAAO,CAACC,OAAO,CAAC,CAAC;EAC1B;EAEAL,cAAc,GAAGM,IAAI,CAACC,GAAG,CAAC,CAAC;EAC3B,OAAO,IAAIH,OAAO,CAAEC,OAAO,IAAK;IAC9BP,cAAc,GAAGO,OAAO;IACxBN,cAAc,GAAGS,UAAU,CAAC,MAAM;MAChC;MACAZ,MAAM,CAACa,KAAK,CAAC,+BAA+B,CAAC;MAC7CC,0BAA0B,CAAC,CAAC;IAC9B,CAAC,EAAER,wBAAwB,CAAC;EAC9B,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASQ,0BAA0BA,CAAA,EAAS;EACjD,IAAIX,cAAc,EAAE;IAClBY,YAAY,CAACZ,cAAc,CAAC;IAC5BA,cAAc,GAAG,IAAI;EACvB;EAEA,IAAID,cAAc,EAAE;IAClBA,cAAc,CAAC,CAAC;IAChB,IAAIE,cAAc,EAAE;MAClB,MAAMY,WAAW,GAAGN,IAAI,CAACC,GAAG,CAAC,CAAC,GAAGP,cAAc;MAC/CA,cAAc,GAAG,IAAI;MACrBJ,MAAM,CAACa,KAAK,CAAC,mCAAmCG,WAAW,IAAI,CAAC;IAClE;IACAd,cAAc,GAAG,IAAI;IACrBG,8BAA8B,GAAG,KAAK;EACxC,CAAC,MAAM;IACLA,8BAA8B,GAAG,IAAI;EACvC;AACF","ignoreList":[]}
@@ -1,140 +0,0 @@
1
- /***
2
- * Internal utils for callingx library usage from video-client.
3
- * See @./registerSDKGlobals.ts for more usage details.
4
- */
5
- import { Platform } from 'react-native';
6
- import { getCallingxLibIfAvailable } from '../../push/libs/callingx';
7
- import { waitForAudioSessionActivation } from './audioSessionPromise';
8
- import { CallingState, videoLoggerSystem } from '@stream-io/video-client';
9
- const CallingxModule = getCallingxLibIfAvailable();
10
-
11
- /**
12
- * Gets the call display name. To be used for display in native call screen.
13
- */
14
- export function getCallDisplayName(callMembers, participants, currentUserId) {
15
- if (!callMembers || !participants || !currentUserId) {
16
- return 'Call';
17
- }
18
- let names = [];
19
- if (callMembers.length > 0) {
20
- // for ringing calls, members array contains all call members from the very early state and participants array is empty in the beginning
21
- names = callMembers.filter(member => member.user.id !== currentUserId).map(member => member.user.name).filter(name => name !== undefined);
22
- } else if (participants.length > 0) {
23
- // for non-ringing calls, members array is empty and we rely on participants array there
24
- names = participants.filter(participant => participant.userId !== currentUserId).map(participant => participant.name).filter(Boolean);
25
- }
26
-
27
- // if no names are found, we use the name of the current user
28
- if (names.length === 0) {
29
- names = [participants.find(participant => participant.userId === currentUserId)?.name ?? 'Call'];
30
- }
31
- return names.sort().join(', ');
32
- }
33
- function getCallDisplayNameFromCall(call) {
34
- return getCallDisplayName(call.state.members, call.state.participants, call.currentUserId);
35
- }
36
- export async function registerOutgoingCall(call) {
37
- if (!CallingxModule || !CallingxModule.isSetup) {
38
- return;
39
- }
40
- const isOutcomingCall = call.ringing && call.isCreatedByMe;
41
- if (!isOutcomingCall) {
42
- return;
43
- }
44
- const logger = videoLoggerSystem.getLogger('callingx');
45
- try {
46
- logger.debug(`registerOutgoingCall: Registering outgoing call ${call.cid}`);
47
- await CallingxModule.startCall(call.cid,
48
- // unique id for call
49
- call.id,
50
- // phone number for display in dialer (we use call id as phone number)
51
- getCallDisplayNameFromCall(call),
52
- // display name for display in call screen
53
- call.state.settings?.video?.enabled ?? false // is video call?
54
- );
55
- } catch (error) {
56
- logger.error(`registerOutgoingCall: Error registering outgoing call in callingx: ${call.cid}`, error);
57
- }
58
- }
59
-
60
- /**
61
- * Starts the call in the callingx library.
62
- * It is done by client on every join
63
- * Does either of the following:
64
- * 1. Sets the state for outgoing calls in the callingx library
65
- * 2. Displays the incoming call in the callingx library
66
- * 3. Optionally for non-ringing calls also when ongoing calls are enabled.
67
- */
68
- export async function joinCallingxCall(call, activeCalls) {
69
- if (!CallingxModule || !CallingxModule.isSetup) {
70
- return;
71
- }
72
- const logger = videoLoggerSystem.getLogger('callingx');
73
- const isOutcomingCall = call.ringing && call.isCreatedByMe;
74
- const isIncomingCall = call.ringing && !call.isCreatedByMe;
75
- if (isOutcomingCall || !call.ringing && CallingxModule.isOngoingCallsEnabled) {
76
- logger.debug(`joinCallingxCall: Joining call ${call.cid}`);
77
- try {
78
- await CallingxModule.startCall(call.cid,
79
- // unique id for call
80
- call.id,
81
- // phone number for display in dialer (we use call id as phone number)
82
- getCallDisplayNameFromCall(call),
83
- // display name for display in call screen
84
- call.state.settings?.video?.enabled ?? false // is video call?
85
- );
86
-
87
- // Wait for audio session activation on iOS only
88
- if (Platform.OS === 'ios') {
89
- await waitForAudioSessionActivation();
90
- }
91
- } catch (error) {
92
- logger.error(`startCallingxCall: Error starting call in callingx: ${call.cid}`, error);
93
- }
94
- } else if (isIncomingCall) {
95
- logger.debug(`joinCallingxCall: Joining incoming call ${call.cid}`);
96
- try {
97
- // Leave any existing active ringing calls before joining a new ringing call
98
- const activeCallsToLeave = activeCalls.filter(c => c.cid !== call.cid && c.ringing && c.state.callingState !== CallingState.LEFT);
99
- for (const activeCall of activeCallsToLeave) {
100
- logger.debug(`leaving active call ${activeCall.cid} before joining ${call.cid}`);
101
- await activeCall.leave({
102
- reason: 'cancel'
103
- }).catch(e => {
104
- logger.error(`failed to leave active call ${activeCall.cid}`, e);
105
- });
106
- }
107
-
108
- // Awaits native CallKit/Telecom registration before answering.
109
- // Safe to call even if the call is already registered (e.g. from VoIP push) --
110
- // iOS early-returns with no error, Android sends the registered broadcast.
111
- await CallingxModule.displayIncomingCall(call.cid,
112
- // unique id for call
113
- call.id,
114
- // phone number for display in dialer (we use call id as phone number)
115
- getCallDisplayNameFromCall(call),
116
- // display name for display in call screen
117
- call.state.settings?.video?.enabled ?? false // is video call?
118
- );
119
- await CallingxModule.answerIncomingCall(call.cid);
120
- if (Platform.OS === 'ios') {
121
- await waitForAudioSessionActivation();
122
- }
123
- } catch (error) {
124
- logger.error(`Error displaying incoming call in callingx: ${call.cid}`, error);
125
- }
126
- }
127
- }
128
- export async function endCallingxCall(call, reason) {
129
- if (!CallingxModule || !CallingxModule.isSetup || !CallingxModule.isCallTracked(call.cid)) {
130
- return;
131
- }
132
- const logger = videoLoggerSystem.getLogger('callingx');
133
- try {
134
- logger.debug(`endCallingxCall: Ending call ${call.cid}`);
135
- await CallingxModule.endCallWithReason(call.cid, reason ?? 'local');
136
- } catch (error) {
137
- logger.error(`endCallingxCall: Error ending call in callingx: ${call.cid}`, error);
138
- }
139
- }
140
- //# sourceMappingURL=callingx.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Platform","getCallingxLibIfAvailable","waitForAudioSessionActivation","CallingState","videoLoggerSystem","CallingxModule","getCallDisplayName","callMembers","participants","currentUserId","names","length","filter","member","user","id","map","name","undefined","participant","userId","Boolean","find","sort","join","getCallDisplayNameFromCall","call","state","members","registerOutgoingCall","isSetup","isOutcomingCall","ringing","isCreatedByMe","logger","getLogger","debug","cid","startCall","settings","video","enabled","error","joinCallingxCall","activeCalls","isIncomingCall","isOngoingCallsEnabled","OS","activeCallsToLeave","c","callingState","LEFT","activeCall","leave","reason","catch","e","displayIncomingCall","answerIncomingCall","endCallingxCall","isCallTracked","endCallWithReason"],"sourceRoot":"../../../../../src","sources":["utils/internal/callingx/callingx.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,SAASC,yBAAyB,QAAQ,0BAA0B;AACpE,SAASC,6BAA6B,QAAQ,uBAAuB;AAMrE,SAASC,YAAY,EAAEC,iBAAiB,QAAQ,yBAAyB;AACzE,MAAMC,cAAc,GAAGJ,yBAAyB,CAAC,CAAC;;AAElD;AACA;AACA;AACA,OAAO,SAASK,kBAAkBA,CAChCC,WAAyC,EACzCC,YAAkD,EAClDC,aAAiC,EACzB;EACR,IAAI,CAACF,WAAW,IAAI,CAACC,YAAY,IAAI,CAACC,aAAa,EAAE;IACnD,OAAO,MAAM;EACf;EAEA,IAAIC,KAAe,GAAG,EAAE;EAExB,IAAIH,WAAW,CAACI,MAAM,GAAG,CAAC,EAAE;IAC1B;IACAD,KAAK,GAAGH,WAAW,CAChBK,MAAM,CAAEC,MAAM,IAAKA,MAAM,CAACC,I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KAAK,KAAK,EAAE;QACzB,MAAM7C,6BAA6B,CAAC,CAAC;MACvC;IACF,CAAC,CAAC,OAAOwC,KAAK,EAAE;MACdR,MAAM,CAACQ,KAAK,CACV,+CAA+ChB,IAAI,CAACW,GAAG,EAAE,EACzDK,KACF,CAAC;IACH;EACF;AACF;AAEA,OAAO,eAAeiB,eAAeA,CAACjC,IAAU,EAAE4B,MAAsB,EAAE;EACxE,IACE,CAACjD,cAAc,IACf,CAACA,cAAc,CAACyB,OAAO,IACvB,CAACzB,cAAc,CAACuD,aAAa,CAAClC,IAAI,CAACW,GAAG,CAAC,EACvC;IACA;EACF;EAEA,MAAMH,MAAM,GAAG9B,iBAAiB,CAAC+B,SAAS,CAAC,UAAU,CAAC;EACtD,IAAI;IACFD,MAAM,CAACE,KAAK,CAAC,gCAAgCV,IAAI,CAACW,GAAG,EAAE,CAAC;IACxD,MAAMhC,cAAc,CAACwD,iBAAiB,CAACnC,IAAI,CAACW,GAAG,EAAEiB,MAAM,IAAI,OAAO,CAAC;EACrE,CAAC,CAAC,OAAOZ,KAAK,EAAE;IACdR,MAAM,CAACQ,KAAK,CACV,mDAAmDhB,IAAI,CAACW,GAAG,EAAE,EAC7DK,KACF,CAAC;EACH;AACF","ignoreList":[]}
@@ -1,42 +0,0 @@
1
- import { AppRegistry, Platform } from 'react-native';
2
- import { videoLoggerSystem } from '@stream-io/video-client';
3
- import { StreamVideoRN } from './StreamVideoRN';
4
- export const KEEP_CALL_ALIVE_HEADLESS_TASK_NAME = 'StreamVideoKeepCallAlive';
5
-
6
- /**
7
- * The keep-alive headless task needs access to the active `Call` instance.
8
- * The keep-alive hook will set this reference before starting the native service.
9
- */
10
- export const keepCallAliveCallRef = {
11
- current: undefined
12
- };
13
- function registerKeepCallAliveHeadlessTaskOnce() {
14
- if (Platform.OS !== 'android') return;
15
- AppRegistry.registerHeadlessTask(KEEP_CALL_ALIVE_HEADLESS_TASK_NAME, () => async data => {
16
- const logger = videoLoggerSystem.getLogger('KEEP_CALL_ALIVE_HEADLESS_TASK');
17
- const callCid = data?.callCid;
18
- const call = keepCallAliveCallRef.current;
19
- if (!call) {
20
- logger.warn('No active call instance available for keep-alive task; skipping.', {
21
- callCid
22
- });
23
- return;
24
- }
25
- if (callCid && call.cid && call.cid !== callCid) {
26
- logger.warn('Keep-alive task callCid does not match active call; skipping.', {
27
- callCid,
28
- activeCallCid: call.cid
29
- });
30
- return;
31
- }
32
- const config = StreamVideoRN.getConfig();
33
- const taskToRun = config.foregroundService.android.taskToRun;
34
- try {
35
- await taskToRun(call);
36
- } catch (e) {
37
- logger.error('Keep-alive headless task failed', e);
38
- }
39
- });
40
- }
41
- registerKeepCallAliveHeadlessTaskOnce();
42
- //# sourceMappingURL=keepCallAliveHeadlessTask.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["AppRegistry","Platform","videoLoggerSystem","StreamVideoRN","KEEP_CALL_ALIVE_HEADLESS_TASK_NAME","keepCallAliveCallRef","current","undefined","registerKeepCallAliveHeadlessTaskOnce","OS","registerHeadlessTask","data","logger","getLogger","callCid","call","warn","cid","activeCallCid","config","getConfig","taskToRun","foregroundService","android","e","error"],"sourceRoot":"../../../src","sources":["utils/keepCallAliveHeadlessTask.ts"],"mappings":"AAAA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,cAAc;AAEpD,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,OAAO,MAAMC,kCAAkC,GAAG,0BAA0B;;AAE5E;AACA;AACA;AACA;AACA,OAAO,MAAMC,oBAAmD,GAAG;EACjEC,OAAO,EAAEC;AACX,CAAC;AAED,SAASC,qCAAqCA,CAAA,EAAG;EAC/C,IAAIP,QAAQ,CAACQ,EAAE,KAAK,SAAS,EAAE;EAE/BT,WAAW,CAACU,oBAAoB,CAC9BN,kCAAkC,EAClC,MAAM,MAAOO,IAAsC,IAAK;IACtD,MAAMC,MAAM,GAAGV,iBAAiB,CAACW,SAAS,CACxC,+BACF,CAAC;IACD,MAAMC,OAAO,GAAGH,IAAI,EAAEG,OAAO;IAE7B,MAAMC,IAAI,GAAGV,oBAAoB,CAACC,OAAO;IACzC,IAAI,CAACS,IAAI,EAAE;MACTH,MAAM,CAACI,IAAI,CACT,kEAAkE,EAClE;QAAEF;MAAQ,CACZ,CAAC;MACD;IACF;IACA,IAAIA,OAAO,IAAIC,IAAI,CAACE,GAAG,IAAIF,IAAI,CAACE,GAAG,KAAKH,OAAO,EAAE;MAC/CF,MAAM,CAACI,IAAI,CACT,+DAA+D,EAC/D;QAAEF,OAAO;QAAEI,aAAa,EAAEH,IAAI,CAACE;MAAI,CACrC,CAAC;MACD;IACF;IAEA,MAAME,MAAM,GAAGhB,aAAa,CAACiB,SAAS,CAAC,CAAC;IACxC,MAAMC,SAAS,GAAGF,MAAM,CAACG,iBAAiB,CAACC,OAAO,CAACF,SAAS;IAC5D,IAAI;MACF,MAAMA,SAAS,CAACN,IAAI,CAAC;IACvB,CAAC,CAAC,OAAOS,CAAC,EAAE;MACVZ,MAAM,CAACa,KAAK,CAAC,iCAAiC,EAAED,CAAC,CAAC;IACpD;EACF,CACF,CAAC;AACH;AAEAhB,qCAAqC,CAAC,CAAC","ignoreList":[]}
@@ -1,67 +0,0 @@
1
- let callingx;
2
- try {
3
- callingx = require('@stream-io/react-native-callingx').CallingxModule;
4
- } catch {}
5
- export function getCallingxLib() {
6
- if (!callingx) {
7
- throw Error('react-native-callingx library is not installed.');
8
- }
9
- return callingx;
10
- }
11
- export function getCallingxLibIfAvailable() {
12
- return callingx ?? undefined;
13
- }
14
- export function extractCallingExpOptions(config) {
15
- const {
16
- push: pushConfig,
17
- foregroundService: foregroundServiceConfig
18
- } = config;
19
- const callingExpOptions = {};
20
- if (pushConfig?.ios) {
21
- const iosOptions = {};
22
- if (pushConfig.ios.supportsVideo !== undefined) {
23
- iosOptions.supportsVideo = pushConfig.ios.supportsVideo;
24
- }
25
- if (pushConfig.ios.sound !== undefined) {
26
- iosOptions.sound = pushConfig.ios.sound;
27
- }
28
- if (pushConfig.ios.imageName !== undefined) {
29
- iosOptions.imageName = pushConfig.ios.imageName;
30
- }
31
- if (pushConfig.ios.callsHistory !== undefined) {
32
- iosOptions.callsHistory = pushConfig.ios.callsHistory;
33
- }
34
- if (pushConfig.ios.displayCallTimeout !== undefined) {
35
- iosOptions.displayCallTimeout = pushConfig.ios.displayCallTimeout;
36
- }
37
- if (Object.keys(iosOptions).length > 0) {
38
- callingExpOptions.ios = iosOptions;
39
- }
40
- }
41
- const androidOptions = {};
42
- if (pushConfig?.android) {
43
- if (pushConfig.android.incomingChannel) {
44
- androidOptions.incomingChannel = pushConfig.android.incomingChannel;
45
- }
46
- if (pushConfig.android.titleTransformer) {
47
- androidOptions.titleTransformer = pushConfig.android.titleTransformer;
48
- }
49
- if (pushConfig.android.notificationTexts) {
50
- androidOptions.notificationTexts = pushConfig.android.notificationTexts;
51
- }
52
- }
53
- if (foregroundServiceConfig.android.channel) {
54
- androidOptions.ongoingChannel = foregroundServiceConfig.android.channel;
55
- }
56
- if (Object.keys(androidOptions).length > 0) {
57
- callingExpOptions.android = androidOptions;
58
- }
59
- if (pushConfig?.shouldRejectCallWhenBusy !== undefined) {
60
- callingExpOptions.shouldRejectCallWhenBusy = pushConfig.shouldRejectCallWhenBusy;
61
- }
62
- if (pushConfig?.enableOngoingCalls !== undefined) {
63
- callingExpOptions.enableOngoingCalls = pushConfig?.enableOngoingCalls;
64
- }
65
- return callingExpOptions;
66
- }
67
- //# sourceMappingURL=callingx.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["callingx","require","CallingxModule","getCallingxLib","Error","getCallingxLibIfAvailable","undefined","extractCallingExpOptions","config","push","pushConfig","foregroundService","foregroundServiceConfig","callingExpOptions","ios","iosOptions","supportsVideo","sound","imageName","callsHistory","displayCallTimeout","Object","keys","length","androidOptions","android","incomingChannel","titleTransformer","notificationTexts","channel","ongoingChannel","shouldRejectCallWhenBusy","enableOngoingCalls"],"sourceRoot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ggerSystem } from '@stream-io/video-client';
2
- import { clearPushWSEventSubscriptions, processCallFromPushInBackground } from './internal/utils';
3
- import { setPushLogoutCallback } from '../internal/pushLogoutCallback';
4
- import { resolvePendingAudioSession } from '../internal/callingx/audioSessionPromise';
5
- import { getCallingxLib } from './libs/callingx';
6
- import { Platform } from 'react-native';
7
- const logger = videoLoggerSystem.getLogger('callingx');
8
-
9
- /**
10
- * Sets up callingx event listeners for handling call actions from the native calling UI.
11
- */
12
- export function setupCallingExpEvents(pushConfig) {
13
- const hasPushProvider = Platform.OS === 'android' && pushConfig.android?.pushProviderName || Platform.OS === 'ios' && pushConfig.ios?.pushProviderName;
14
- if (!hasPushProvider) {
15
- return;
16
- }
17
- const callingx = getCallingxLib();
18
- const {
19
- remove: removeAnswerCall
20
- } = callingx.addEventListener('answerCall', params => {
21
- onAcceptCall(pushConfig)(params);
22
- });
23
- const {
24
- remove: removeEndCall
25
- } = callingx.addEventListener('endCall', params => {
26
- onEndCall(pushConfig)(params);
27
- });
28
- const {
29
- remove: removeDidActivateAudioSession
30
- } = callingx.addEventListener('didActivateAudioSession', onDidActivateAudioSession);
31
- const {
32
- remove: removeDidDeactivateAudioSession
33
- } = callingx.addEventListener('didDeactivateAudioSession', onDidDeactivateAudioSession);
34
-
35
- //NOTE: until getInitialEvents invocation, events are delayed and won't be sent to event listeners, this is a way to make sure none of required events are missed
36
- //in most cases there will be no delayed answers or ends, but if so we don't want to miss any of them
37
- const events = callingx.getInitialEvents();
38
- events.forEach(event => {
39
- const {
40
- eventName,
41
- params
42
- } = event;
43
- if (eventName === 'answerCall') {
44
- logger.debug(`answerCall delayed event callId: ${params?.callId}`);
45
- onAcceptCall(pushConfig)(params);
46
- } else if (eventName === 'endCall') {
47
- logger.debug(`endCall delayed event callId: ${params?.callId}`);
48
- onEndCall(pushConfig)(params);
49
- } else if (eventName === 'didActivateAudioSession') {
50
- onDidActivateAudioSession();
51
- } else if (eventName === 'didDeactivateAudioSession') {
52
- onDidDeactivateAudioSession();
53
- }
54
- });
55
- setPushLogoutCallback(async () => {
56
- removeAnswerCall();
57
- removeEndCall();
58
- removeDidActivateAudioSession();
59
- removeDidDeactivateAudioSession();
60
- });
61
- }
62
- const onDidActivateAudioSession = () => {
63
- logger.debug('callingExpDidActivateAudioSession');
64
- resolvePendingAudioSession();
65
- };
66
- const onDidDeactivateAudioSession = () => {
67
- logger.debug('callingExpDidDeactivateAudioSession');
68
- };
69
- const onAcceptCall = pushConfig => ({
70
- callId: call_cid,
71
- source
72
- }) => {
73
- logger.debug(`onAcceptCall event call_cid: ${call_cid} source: ${source}`);
74
- if (source === 'app' || !call_cid) {
75
- // App-initiated actions are fulfilled on the native side immediately — nothing to do here
76
- return;
77
- }
78
- const callingx = getCallingxLib();
79
- clearPushWSEventSubscriptions(call_cid);
80
- processCallFromPushInBackground(pushConfig, call_cid, 'accept', didFail => {
81
- callingx.fulfillAnswerCallAction(call_cid, didFail);
82
- });
83
- };
84
- const onEndCall = pushConfig => ({
85
- callId: call_cid,
86
- source
87
- }) => {
88
- logger.debug(`onEndCall event call_cid: ${call_cid} source: ${source}`);
89
- if (source === 'app' || !call_cid) {
90
- // App-initiated actions are fulfilled on the native side immediately — nothing to do here
91
- return;
92
- }
93
- const callingx = getCallingxLib();
94
- clearPushWSEventSubscriptions(call_cid);
95
- processCallFromPushInBackground(pushConfig, call_cid, 'decline', didFail => {
96
- callingx.fulfillEndCallAction(call_cid, didFail);
97
- });
98
- };
99
- //# sourceMappingURL=setupCallingExpEvents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["videoLoggerSystem","clearPushWSEventSubscriptions","processCallFromPushInBackground","setPushLogoutCallback","resolvePendingAudioSession","getCallingxLib","Platform","logger","getLogger","setupCallingExpEvents","pushConfig","hasPushProvider","OS","android","pushProviderName","ios","callingx","remove","removeAnswerCall","addEventListener","params","onAcceptCall","removeEndCall","onEndCall","removeDidActivateAudioSession","onDidActivateAudioSession","removeDidDeactivateAudioSession","onDidDeactivateAudioSession","events","getInitialEvents","forEach","event","eventName","debug","callId","call_cid","source","didFail","fulfillAnswerCallAction","fulfillEndCallAction"],"sourceRoot":"../../../../src","sources":["utils/push/setupCallingExpEvents.ts"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,yBAAyB;AAE3D,SACEC,6BAA6B,EAC7BC,+BAA+B,QAC1B,kBAAkB;AACzB,SAASC,qBAAqB,QAAQ,gCAAgC;AACtE,SAASC,0BAA0B,QAAQ,0CAA0C;AACrF,SACEC,cAAc,QAGT,iBAAiB;AACxB,SAASC,QAAQ,QAAQ,cAAc;AAIvC,MAAMC,MAAM,GAAGP,iBAAiB,CAACQ,SAAS,CAAC,UAAU,CAAC;;AAEtD;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CAACC,UAAmC,EAAE;EACzE,MAAMC,eAAe,GAClBL,QAAQ,CAACM,EAAE,KAAK,SAAS,IAAIF,UAAU,CAACG,OAAO,EAAEC,gBAAgB,IACjER,QAAQ,CAACM,EAAE,KAAK,KAAK,IAAIF,UAAU,CAACK,GAAG,EAAED,gBAAiB;EAE7D,IAAI,CAACH,eAAe,EAAE;IACpB;EACF;EAEA,MAAMK,QAAQ,GAAGX,cAAc,CAAC,CAAC;EAEjC,MAAM;IAAEY,MAAM,EAAEC;EAAiB,CAAC,GAAGF,QAAQ,CAACG,gBAAgB,CAC5D,YAAY,EACXC,MAAM,IAAK;IACVC,YAAY,CAACX,UAAU,CAAC,CAACU,MAAM,CAAC;EAClC,CACF,CAAC;EAED,MAAM;IAAEH,MAAM,EAAEK;EAAc,CAAC,GAAGN,QAAQ,CAACG,gBAAgB,CACzD,SAAS,EACRC,MAAM,IAAK;IACVG,SAAS,CAACb,UAAU,CAAC,CAACU,MAAM,CAAC;EAC/B,CACF,CAAC;EAED,MAAM;IAAEH,MAAM,EAAEO;EAA8B,CAAC,GAAGR,QAAQ,CAACG,gBAAgB,CACzE,yBAAyB,EACzBM,yBACF,CAAC;EACD,MAAM;IAAER,MAAM,EAAES;EAAg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EAAEC,QAAQ;EAAEC;AAAkC,CAAC,KAAK;EAC3D7B,MAAM,CAAC0B,KAAK,CAAC,gCAAgCE,QAAQ,YAAYC,MAAM,EAAE,CAAC;EAE1E,IAAIA,MAAM,KAAK,KAAK,IAAI,CAACD,QAAQ,EAAE;IACjC;IACA;EACF;EAEA,MAAMnB,QAAQ,GAAGX,cAAc,CAAC,CAAC;EACjCJ,6BAA6B,CAACkC,QAAQ,CAAC;EAEvCjC,+BAA+B,CAC7BQ,UAAU,EACVyB,QAAQ,EACR,QAAQ,EACPE,OAAO,IAAK;IACXrB,QAAQ,CAACsB,uBAAuB,CAACH,QAAQ,EAAEE,OAAO,CAAC;EACrD,CACF,CAAC;AACH,CAAC;AAEH,MAAMd,SAAS,GACZb,UAAsB,IACvB,CAAC;EAAEwB,MAAM,EAAEC,QAAQ;EAAEC;AAA+B,CAAC,KAAK;EACxD7B,MAAM,CAAC0B,KAAK,CAAC,6BAA6BE,QAAQ,YAAYC,MAAM,EAAE,CAAC;EAEvE,IAAIA,MAAM,KAAK,KAAK,IAAI,CAACD,QAAQ,EAAE;IACjC;IACA;EACF;EAEA,MAAMnB,QAAQ,GAAGX,cAAc,CAAC,CAAC;EACjCJ,6BAA6B,CAACkC,QAAQ,CAAC;EACvCjC,+BAA+B,CAC7BQ,UAAU,EACVyB,QAAQ,EACR,SAAS,EACRE,OAAO,IAAK;IACXrB,QAAQ,CAACuB,oBAAoB,CAACJ,QAAQ,EAAEE,OAAO,CAAC;EAClD,CACF,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1,5 +0,0 @@
1
- /**
2
- * This hook is used to inform sync call state with CallKit/Telecom (i.e. start call, end call, mute/unmute call).
3
- */
4
- export declare const useCallingExpWithCallingStateEffect: () => void;
5
- //# sourceMappingURL=useCallingExpWithCallingStateEffect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCallingExpWithCallingStateEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useCallingExpWithCallingStateEffect.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,mCAAmC,YAgL/C,CAAC"}
@@ -1,16 +0,0 @@
1
- /**
2
- * Module to manage pending promise for audio session activation.
3
- * Used to wait for iOS CallKit's didActivateAudioSession event after starting a call.
4
- */
5
- /**
6
- * Creates a promise that resolves when the audio session is activated,
7
- * or after a timeout to prevent hanging indefinitely.
8
- * @returns Promise that resolves when audio session is activated or timeout occurs
9
- */
10
- export declare function waitForAudioSessionActivation(): Promise<void>;
11
- /**
12
- * Resolves the pending audio session activation promise.
13
- * Called when the didActivateAudioSession event fires or on timeout.
14
- */
15
- export declare function resolvePendingAudioSession(): void;
16
- //# sourceMappingURL=audioSessionPromise.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"audioSessionPromise.d.ts","sourceRoot":"","sources":["../../../../../src/utils/internal/callingx/audioSessionPromise.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAiBH;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,OAAO,CAAC,IAAI,CAAC,CAe7D;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAkBjD"}
@@ -1,18 +0,0 @@
1
- import type { EndCallReason } from '@stream-io/react-native-callingx';
2
- import type { Call, MemberResponse, StreamVideoParticipant } from '@stream-io/video-client';
3
- /**
4
- * Gets the call display name. To be used for display in native call screen.
5
- */
6
- export declare function getCallDisplayName(callMembers: MemberResponse[] | undefined, participants: StreamVideoParticipant[] | undefined, currentUserId: string | undefined): string;
7
- export declare function registerOutgoingCall(call: Call): Promise<void>;
8
- /**
9
- * Starts the call in the callingx library.
10
- * It is done by client on every join
11
- * Does either of the following:
12
- * 1. Sets the state for outgoing calls in the callingx library
13
- * 2. Displays the incoming call in the callingx library
14
- * 3. Optionally for non-ringing calls also when ongoing calls are enabled.
15
- */
16
- export declare function joinCallingxCall(call: Call, activeCalls: Call[]): Promise<void>;
17
- export declare function endCallingxCall(call: Call, reason?: EndCallReason): Promise<void>;
18
- //# sourceMappingURL=callingx.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"callingx.d.ts","sourceRoot":"","sources":["../../../../../src/utils/internal/callingx/callingx.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,KAAK,EACV,IAAI,EACJ,cAAc,EACd,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AAIjC;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,cAAc,EAAE,GAAG,SAAS,EACzC,YAAY,EAAE,sBAAsB,EAAE,GAAG,SAAS,EAClD,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,MAAM,CA8BR;AAUD,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,IAAI,iBA0BpD;AAED;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,iBAyErE;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,aAAa,iBAmBvE"}
@@ -1,10 +0,0 @@
1
- import type { Call } from '@stream-io/video-client';
2
- export declare const KEEP_CALL_ALIVE_HEADLESS_TASK_NAME = "StreamVideoKeepCallAlive";
3
- /**
4
- * The keep-alive headless task needs access to the active `Call` instance.
5
- * The keep-alive hook will set this reference before starting the native service.
6
- */
7
- export declare const keepCallAliveCallRef: {
8
- current: Call | undefined;
9
- };
10
- //# sourceMappingURL=keepCallAliveHeadlessTask.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keepCallAliveHeadlessTask.d.ts","sourceRoot":"","sources":["../../../src/utils/keepCallAliveHeadlessTask.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAIpD,eAAO,MAAM,kCAAkC,6BAA6B,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE;IAAE,OAAO,EAAE,IAAI,GAAG,SAAS,CAAA;CAE7D,CAAC"}
@@ -1,9 +0,0 @@
1
- import { StreamVideoConfig } from '../../StreamVideoRN/types';
2
- export type RNCallingxType = import('@stream-io/react-native-callingx').ICallingxModule;
3
- export type EventData = import('@stream-io/react-native-callingx').EventData;
4
- export type EventParams = import('@stream-io/react-native-callingx').EventParams;
5
- export type CallingExpOptions = import('@stream-io/react-native-callingx').CallingExpOptions;
6
- export declare function getCallingxLib(): import("@stream-io/react-native-callingx").ICallingxModule;
7
- export declare function getCallingxLibIfAvailable(): import("@stream-io/react-native-callingx").ICallingxModule | undefined;
8
- export declare function extractCallingExpOptions(config: StreamVideoConfig): CallingExpOptions;
9
- //# sourceMappingURL=callingx.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"callingx.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/libs/callingx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,MAAM,cAAc,GACxB,OAAO,kCAAkC,EAAE,eAAe,CAAC;AAC7D,MAAM,MAAM,SAAS,GAAG,OAAO,kCAAkC,EAAE,SAAS,CAAC;AAC7E,MAAM,MAAM,WAAW,GACrB,OAAO,kCAAkC,EAAE,WAAW,CAAC;AACzD,MAAM,MAAM,iBAAiB,GAC3B,OAAO,kCAAkC,EAAE,iBAAiB,CAAC;AAQ/D,wBAAgB,cAAc,+DAK7B;AAED,wBAAgB,yBAAyB,2EAExC;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,iBAAiB,GACxB,iBAAiB,CA2DnB"}
@@ -1,8 +0,0 @@
1
- import type { StreamVideoConfig } from '../StreamVideoRN/types';
2
- type PushConfig = NonNullable<StreamVideoConfig['push']>;
3
- /**
4
- * Sets up callingx event listeners for handling call actions from the native calling UI.
5
- */
6
- export declare function setupCallingExpEvents(pushConfig: NonNullable<PushConfig>): void;
7
- export {};
8
- //# sourceMappingURL=setupCallingExpEvents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setupCallingExpEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupCallingExpEvents.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAchE,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAIzD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,QA0DxE"}