@stream-io/video-react-native-sdk 1.29.3 → 1.29.4-beta.0

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 (209) hide show
  1. package/android/src/main/AndroidManifest.xml +8 -1
  2. package/android/src/main/AndroidManifestNew.xml +11 -0
  3. package/android/src/main/java/com/streamvideo/reactnative/StreamVideoReactNativeModule.kt +42 -5
  4. package/android/src/main/java/com/streamvideo/reactnative/audio/utils/WebRtcAudioUtils.kt +70 -6
  5. package/android/src/main/java/com/streamvideo/reactnative/callmanager/StreamInCallManagerModule.kt +6 -4
  6. package/android/src/main/java/com/streamvideo/reactnative/keepalive/KeepAliveNotification.kt +83 -0
  7. package/android/src/main/java/com/streamvideo/reactnative/keepalive/StreamCallKeepAliveHeadlessService.kt +149 -0
  8. package/dist/commonjs/hooks/push/index.js +0 -2
  9. package/dist/commonjs/hooks/push/index.js.map +1 -1
  10. package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js +121 -0
  11. package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js.map +1 -0
  12. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +18 -31
  13. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  14. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +64 -97
  15. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  16. package/dist/commonjs/index.js +1 -0
  17. package/dist/commonjs/index.js.map +1 -1
  18. package/dist/commonjs/modules/call-manager/CallManager.js +26 -0
  19. package/dist/commonjs/modules/call-manager/CallManager.js.map +1 -1
  20. package/dist/commonjs/providers/StreamCall/index.js +6 -6
  21. package/dist/commonjs/providers/StreamCall/index.js.map +1 -1
  22. package/dist/commonjs/utils/StreamVideoRN/index.js +33 -21
  23. package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
  24. package/dist/commonjs/utils/internal/callingx/audioSessionPromise.js +58 -0
  25. package/dist/commonjs/utils/internal/callingx/audioSessionPromise.js.map +1 -0
  26. package/dist/commonjs/utils/internal/callingx/callingx.js +109 -0
  27. package/dist/commonjs/utils/internal/callingx/callingx.js.map +1 -0
  28. package/dist/commonjs/utils/internal/registerSDKGlobals.js +52 -3
  29. package/dist/commonjs/utils/internal/registerSDKGlobals.js.map +1 -1
  30. package/dist/commonjs/utils/keepCallAliveHeadlessTask.js +48 -0
  31. package/dist/commonjs/utils/keepCallAliveHeadlessTask.js.map +1 -0
  32. package/dist/commonjs/utils/push/android.js +151 -202
  33. package/dist/commonjs/utils/push/android.js.map +1 -1
  34. package/dist/commonjs/utils/push/internal/ios.js +17 -34
  35. package/dist/commonjs/utils/push/internal/ios.js.map +1 -1
  36. package/dist/commonjs/utils/push/internal/rxSubjects.js +1 -45
  37. package/dist/commonjs/utils/push/internal/rxSubjects.js.map +1 -1
  38. package/dist/commonjs/utils/push/internal/utils.js +32 -20
  39. package/dist/commonjs/utils/push/internal/utils.js.map +1 -1
  40. package/dist/commonjs/utils/push/ios.js.map +1 -1
  41. package/dist/commonjs/utils/push/libs/callingx.js +75 -0
  42. package/dist/commonjs/utils/push/libs/callingx.js.map +1 -0
  43. package/dist/commonjs/utils/push/libs/index.js +8 -19
  44. package/dist/commonjs/utils/push/libs/index.js.map +1 -1
  45. package/dist/commonjs/utils/push/libs/notifee/index.js +0 -19
  46. package/dist/commonjs/utils/push/libs/notifee/index.js.map +1 -1
  47. package/dist/commonjs/utils/push/setupCallingExpEvents.js +108 -0
  48. package/dist/commonjs/utils/push/setupCallingExpEvents.js.map +1 -0
  49. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +7 -6
  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/hooks/push/index.js +0 -2
  54. package/dist/module/hooks/push/index.js.map +1 -1
  55. package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js +114 -0
  56. package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js.map +1 -0
  57. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +18 -31
  58. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  59. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +66 -99
  60. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  61. package/dist/module/index.js +1 -0
  62. package/dist/module/index.js.map +1 -1
  63. package/dist/module/modules/call-manager/CallManager.js +26 -0
  64. package/dist/module/modules/call-manager/CallManager.js.map +1 -1
  65. package/dist/module/providers/StreamCall/index.js +6 -6
  66. package/dist/module/providers/StreamCall/index.js.map +1 -1
  67. package/dist/module/utils/StreamVideoRN/index.js +33 -21
  68. package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
  69. package/dist/module/utils/internal/callingx/audioSessionPromise.js +51 -0
  70. package/dist/module/utils/internal/callingx/audioSessionPromise.js.map +1 -0
  71. package/dist/module/utils/internal/callingx/callingx.js +100 -0
  72. package/dist/module/utils/internal/callingx/callingx.js.map +1 -0
  73. package/dist/module/utils/internal/registerSDKGlobals.js +52 -3
  74. package/dist/module/utils/internal/registerSDKGlobals.js.map +1 -1
  75. package/dist/module/utils/keepCallAliveHeadlessTask.js +42 -0
  76. package/dist/module/utils/keepCallAliveHeadlessTask.js.map +1 -0
  77. package/dist/module/utils/push/android.js +153 -204
  78. package/dist/module/utils/push/android.js.map +1 -1
  79. package/dist/module/utils/push/internal/ios.js +17 -34
  80. package/dist/module/utils/push/internal/ios.js.map +1 -1
  81. package/dist/module/utils/push/internal/rxSubjects.js +0 -44
  82. package/dist/module/utils/push/internal/rxSubjects.js.map +1 -1
  83. package/dist/module/utils/push/internal/utils.js +29 -19
  84. package/dist/module/utils/push/internal/utils.js.map +1 -1
  85. package/dist/module/utils/push/ios.js.map +1 -1
  86. package/dist/module/utils/push/libs/callingx.js +67 -0
  87. package/dist/module/utils/push/libs/callingx.js.map +1 -0
  88. package/dist/module/utils/push/libs/index.js +1 -2
  89. package/dist/module/utils/push/libs/index.js.map +1 -1
  90. package/dist/module/utils/push/libs/notifee/index.js +0 -18
  91. package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
  92. package/dist/module/utils/push/setupCallingExpEvents.js +102 -0
  93. package/dist/module/utils/push/setupCallingExpEvents.js.map +1 -0
  94. package/dist/module/utils/push/setupIosVoipPushEvents.js +7 -6
  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/hooks/push/index.d.ts.map +1 -1
  99. package/dist/typescript/hooks/push/useCallingExpWithCallingStateEffect.d.ts +5 -0
  100. package/dist/typescript/hooks/push/useCallingExpWithCallingStateEffect.d.ts.map +1 -0
  101. package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
  102. package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -1
  103. package/dist/typescript/index.d.ts +1 -0
  104. package/dist/typescript/index.d.ts.map +1 -1
  105. package/dist/typescript/modules/call-manager/CallManager.d.ts +5 -0
  106. package/dist/typescript/modules/call-manager/CallManager.d.ts.map +1 -1
  107. package/dist/typescript/utils/StreamVideoRN/index.d.ts +20 -2
  108. package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
  109. package/dist/typescript/utils/StreamVideoRN/types.d.ts +54 -29
  110. package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
  111. package/dist/typescript/utils/internal/callingx/audioSessionPromise.d.ts +16 -0
  112. package/dist/typescript/utils/internal/callingx/audioSessionPromise.d.ts.map +1 -0
  113. package/dist/typescript/utils/internal/callingx/callingx.d.ts +14 -0
  114. package/dist/typescript/utils/internal/callingx/callingx.d.ts.map +1 -0
  115. package/dist/typescript/utils/internal/registerSDKGlobals.d.ts.map +1 -1
  116. package/dist/typescript/utils/keepCallAliveHeadlessTask.d.ts +10 -0
  117. package/dist/typescript/utils/keepCallAliveHeadlessTask.d.ts.map +1 -0
  118. package/dist/typescript/utils/push/android.d.ts +1 -2
  119. package/dist/typescript/utils/push/android.d.ts.map +1 -1
  120. package/dist/typescript/utils/push/internal/ios.d.ts.map +1 -1
  121. package/dist/typescript/utils/push/internal/rxSubjects.d.ts +0 -33
  122. package/dist/typescript/utils/push/internal/rxSubjects.d.ts.map +1 -1
  123. package/dist/typescript/utils/push/internal/utils.d.ts +8 -1
  124. package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
  125. package/dist/typescript/utils/push/ios.d.ts +1 -2
  126. package/dist/typescript/utils/push/ios.d.ts.map +1 -1
  127. package/dist/typescript/utils/push/libs/callingx.d.ts +9 -0
  128. package/dist/typescript/utils/push/libs/callingx.d.ts.map +1 -0
  129. package/dist/typescript/utils/push/libs/index.d.ts +1 -2
  130. package/dist/typescript/utils/push/libs/index.d.ts.map +1 -1
  131. package/dist/typescript/utils/push/libs/notifee/index.d.ts +0 -1
  132. package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
  133. package/dist/typescript/utils/push/setupCallingExpEvents.d.ts +8 -0
  134. package/dist/typescript/utils/push/setupCallingExpEvents.d.ts.map +1 -0
  135. package/dist/typescript/utils/push/setupIosVoipPushEvents.d.ts.map +1 -1
  136. package/dist/typescript/version.d.ts +1 -1
  137. package/dist/typescript/version.d.ts.map +1 -1
  138. package/expo-config-plugin/dist/withAndroidManifest.js +1 -33
  139. package/expo-config-plugin/dist/withAndroidPermissions.js +2 -7
  140. package/expo-config-plugin/dist/withAppDelegate.js +19 -197
  141. package/expo-config-plugin/dist/withMainActivity.js +1 -1
  142. package/expo-config-plugin/dist/withiOSInfoPlist.js +2 -3
  143. package/ios/StreamInCallManager.m +2 -0
  144. package/ios/StreamInCallManager.swift +19 -7
  145. package/ios/StreamVideoReactNative.h +7 -4
  146. package/ios/StreamVideoReactNative.m +189 -82
  147. package/package.json +13 -18
  148. package/src/hooks/push/index.ts +0 -2
  149. package/src/hooks/push/useCallingExpWithCallingStateEffect.ts +147 -0
  150. package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +21 -34
  151. package/src/hooks/useAndroidKeepCallAliveEffect.ts +94 -120
  152. package/src/index.ts +1 -0
  153. package/src/modules/call-manager/CallManager.ts +36 -0
  154. package/src/modules/call-manager/native-module.d.ts +7 -0
  155. package/src/providers/StreamCall/index.tsx +6 -6
  156. package/src/utils/StreamVideoRN/index.ts +40 -30
  157. package/src/utils/StreamVideoRN/types.ts +56 -29
  158. package/src/utils/internal/callingx/audioSessionPromise.ts +53 -0
  159. package/src/utils/internal/callingx/callingx.ts +146 -0
  160. package/src/utils/internal/registerSDKGlobals.ts +47 -4
  161. package/src/utils/keepCallAliveHeadlessTask.ts +54 -0
  162. package/src/utils/push/android.ts +227 -309
  163. package/src/utils/push/internal/ios.ts +28 -44
  164. package/src/utils/push/internal/rxSubjects.ts +0 -61
  165. package/src/utils/push/internal/utils.ts +45 -26
  166. package/src/utils/push/ios.ts +1 -6
  167. package/src/utils/push/libs/callingx.ts +90 -0
  168. package/src/utils/push/libs/index.ts +1 -2
  169. package/src/utils/push/libs/notifee/index.ts +0 -27
  170. package/src/utils/push/setupCallingExpEvents.ts +130 -0
  171. package/src/utils/push/setupIosVoipPushEvents.ts +11 -7
  172. package/src/version.ts +1 -1
  173. package/CHANGELOG.md +0 -3144
  174. package/android/src/main/java/com/streamvideo/reactnative/util/CallAliveServiceChecker.kt +0 -95
  175. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +0 -160
  176. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +0 -1
  177. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +0 -67
  178. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +0 -1
  179. package/dist/commonjs/utils/push/libs/callkeep.js +0 -17
  180. package/dist/commonjs/utils/push/libs/callkeep.js.map +0 -1
  181. package/dist/commonjs/utils/push/libs/voipPushNotification.js +0 -17
  182. package/dist/commonjs/utils/push/libs/voipPushNotification.js.map +0 -1
  183. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +0 -205
  184. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +0 -1
  185. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +0 -153
  186. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +0 -1
  187. package/dist/module/hooks/push/useProcessPushCallEffect.js +0 -60
  188. package/dist/module/hooks/push/useProcessPushCallEffect.js.map +0 -1
  189. package/dist/module/utils/push/libs/callkeep.js +0 -11
  190. package/dist/module/utils/push/libs/callkeep.js.map +0 -1
  191. package/dist/module/utils/push/libs/voipPushNotification.js +0 -11
  192. package/dist/module/utils/push/libs/voipPushNotification.js.map +0 -1
  193. package/dist/module/utils/push/setupIosCallKeepEvents.js +0 -199
  194. package/dist/module/utils/push/setupIosCallKeepEvents.js.map +0 -1
  195. package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts +0 -5
  196. package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts.map +0 -1
  197. package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts +0 -8
  198. package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts.map +0 -1
  199. package/dist/typescript/utils/push/libs/callkeep.d.ts +0 -3
  200. package/dist/typescript/utils/push/libs/callkeep.d.ts.map +0 -1
  201. package/dist/typescript/utils/push/libs/voipPushNotification.d.ts +0 -3
  202. package/dist/typescript/utils/push/libs/voipPushNotification.d.ts.map +0 -1
  203. package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts +0 -6
  204. package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts.map +0 -1
  205. package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +0 -235
  206. package/src/hooks/push/useProcessPushCallEffect.ts +0 -108
  207. package/src/utils/push/libs/callkeep.ts +0 -16
  208. package/src/utils/push/libs/voipPushNotification.ts +0 -17
  209. package/src/utils/push/setupIosCallKeepEvents.ts +0 -252
@@ -12,7 +12,6 @@ export declare class StreamVideoRN {
12
12
  * This function accepts a partial config object that will be deeply merged with the default config.
13
13
  */
14
14
  static updateConfig(updateConfig: DeepPartial<Omit<StreamVideoConfig, 'push'>>): void;
15
- static updateAndroidIncomingCallChannel(updateChannel: Partial<NonNullable<StreamVideoConfig['push']>['android']['incomingCallChannel']>): void;
16
15
  /**
17
16
  * Set the push config for StreamVideoRN.
18
17
  * This method must be called **outside** of your application lifecycle, e.g. alongside your
@@ -25,7 +24,26 @@ export declare class StreamVideoRN {
25
24
  * import App from './App';
26
25
  * // Set push config
27
26
  * const pushConfig = {}; // construct your config
28
- * StreamVideoRN.setPushConfig(pushConfig);
27
+ * // Set CallKit/Android Telecom API integration options. All params are optional. If not provided, the default values will be used.
28
+ * const callingExpOptions = {
29
+ * ios: {
30
+ * callsHistory: true,
31
+ * displayCallTimeout: 60000,
32
+ * sound: 'ringtone',
33
+ * imageName: 'callkit_icon',
34
+ * },
35
+ * android: {
36
+ * incomingChannel: {
37
+ * id: 'stream_incoming_call_notifications',
38
+ * name: 'Call notifications',
39
+ * vibration: true,
40
+ * sound: 'default',
41
+ * },
42
+ * titleTransformer: (text: string) => text,
43
+ * subtitleTransformer: (text: string) => text,
44
+ * },
45
+ * };
46
+ * StreamVideoRN.setPushConfig(pushConfig, callingExpOptions);
29
47
  * AppRegistry.registerComponent('app', () => App);
30
48
  */
31
49
  static setPushConfig(pushConfig: NonNullable<StreamVideoConfig['push']>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/StreamVideoRN/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAiC,EAC/B,KAAK,2BAA2B,EACjC,MAAM,sCAAsC,CAAC;AAM9C,KAAK,WAAW,CAAC,CAAC,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A2B,EACjC,MAAM,sCAAsC,CAAC;AAW9C,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC;AAgDF,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAC,MAAM,CAA+B;IACpD,OAAO,CAAC,MAAM,CAAC,eAAe,CAA+B;IAE7D;;;;OAIG;IACH,MAAM,CAAC,YAAY,CACjB,YAAY,EAAE,WAAW,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IAK5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,MAAM,CAAC,aAAa,CAAC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAyBvE,MAAM,CAAC,SAAS;IAIhB;;;OAGG;IACH,MAAM,CAAC,YAAY;IASnB,MAAM,CAAC,wBAAwB;IAI/B;;;;OAIG;IACH,MAAM,CAAC,gCAAgC,CACrC,QAAQ,EAAE,2BAA2B;IAavC;;OAEG;WACU,YAAY;IAIzB;;OAEG;WACU,YAAY;IAIzB;;;OAGG;WACU,6BAA6B,IAAI,OAAO,CAAC,OAAO,CAAC;IAQ9D;;;OAGG;WACU,4BAA4B,IAAI,OAAO,CAAC,OAAO,CAAC;IAQ7D;;;OAGG;WACU,wBAAwB,IAAI,OAAO,CAAC,OAAO,CAAC;CAO1D"}
@@ -1,5 +1,15 @@
1
1
  import { type ClientPublishOptions, StreamVideoClient, type Call } from '@stream-io/video-client';
2
2
  import type { AndroidChannel } from '@notifee/react-native';
3
+ export type AndroidChannelConfig = {
4
+ id: string;
5
+ name: string;
6
+ sound?: string;
7
+ vibration?: boolean;
8
+ };
9
+ export type KeepAliveAndroidNotificationTexts = {
10
+ title: string;
11
+ body: string;
12
+ };
3
13
  export type NonRingingPushEvent = 'call.live_started' | 'call.notification' | 'call.missed';
4
14
  export type StreamVideoConfig = {
5
15
  /**
@@ -22,6 +32,27 @@ export type StreamVideoConfig = {
22
32
  * @example "production-apn-video" or "staging-apn-video" based on the environment
23
33
  */
24
34
  pushProviderName?: string;
35
+ supportsVideo?: boolean;
36
+ /**
37
+ * Sound to play when an incoming call is received. Must be a valid sound resource name in the project.
38
+ * @default '' (no sound)
39
+ */
40
+ sound?: string;
41
+ /**
42
+ * Image to display when an incoming call is received. Must be a valid image resource name in the project.
43
+ * @default '' (no image)
44
+ */
45
+ imageName?: string;
46
+ /**
47
+ * Enable calls history. When enabled, the call will be added to the calls history.
48
+ * @default false
49
+ */
50
+ callsHistory?: boolean;
51
+ /**
52
+ * Timeout to display an incoming call. When the call is displayed for more than the timeout, the call will be rejected.
53
+ * @default 60000 (1 minute)
54
+ */
55
+ displayCallTimeout?: number;
25
56
  };
26
57
  android: {
27
58
  /**
@@ -51,28 +82,21 @@ export type StreamVideoConfig = {
51
82
  * The notification channel to be used for incoming calls for Android.
52
83
  * @example
53
84
  * {
54
- * id: 'stream_incoming_call',
55
- * name: 'Incoming call notifications',
56
- * importance: AndroidImportance.HIGH,
85
+ * id: 'incoming_calls_channel',
86
+ * name: 'Incoming calls',
87
+ * sound?: string;
88
+ * vibration?: boolean;
57
89
  * }
58
90
  */
59
- incomingCallChannel?: AndroidChannel;
91
+ incomingChannel?: AndroidChannelConfig;
60
92
  /**
61
- * Functions to create the texts shown in the notification for incoming calls in Android.
62
- * @example
63
- * {
64
- * getTitle: (createdUserName: string) => `Incoming call from ${createdUserName}`,
65
- * getBody: (createdUserName: string) => `Tap to answer the call`
66
- * getAcceptButtonTitle?: () => `Accept`,
67
- * getDeclineButtonTitle?: () => `Decline`,
68
- * }
93
+ * The transformer to be used to transform the call title in the notification for ringing and ongoing calls for Android.
69
94
  */
70
- incomingCallNotificationTextGetters?: {
71
- getTitle: (createdUserName: string) => string;
72
- getBody: (createdUserName: string) => string;
73
- getAcceptButtonTitle?: () => string;
74
- getDeclineButtonTitle?: () => string;
75
- };
95
+ titleTransformer?: (memberName: string, incoming: boolean) => string;
96
+ /**
97
+ * The transformer to be used to transform the call subtitle for ringing and ongoing calls for Android.
98
+ */
99
+ subtitleTransformer?: (call_cid: string, incoming: boolean) => string;
76
100
  /**
77
101
  * Functions to create the texts shown in the notification for non ringing calls in Android.
78
102
  * @example
@@ -98,6 +122,16 @@ export type StreamVideoConfig = {
98
122
  getBody: (type: NonRingingPushEvent, createdUserName: string) => string;
99
123
  };
100
124
  };
125
+ /**
126
+ * Whether to enable ongoing calls.
127
+ * @default false
128
+ */
129
+ enableOngoingCalls?: boolean;
130
+ /**
131
+ * Whether to reject calls when the user is busy.
132
+ * @default false
133
+ */
134
+ shouldRejectCallWhenBusy?: boolean;
101
135
  /**
102
136
  * This function is used to create a custom video client.
103
137
  * This is used create a video client for incoming calls in the background and inform call events to the server.
@@ -117,12 +151,6 @@ export type StreamVideoConfig = {
117
151
  * }
118
152
  */
119
153
  createStreamVideoClient: () => Promise<StreamVideoClient | undefined>;
120
- /** @deprecated This method will be removed in the future. Please watch for incoming and outgoing calls in the root component of your app.
121
- Please see https://getstream.io/video/docs/react-native/advanced/ringing-calls/#watch-for-incoming-and-outgoing-calls for more information */
122
- navigateAcceptCall?: () => void;
123
- /** @deprecated This method will be removed in the future. Please watch for incoming and outgoing calls in the root component of your app.
124
- Please see https://getstream.io/video/docs/react-native/advanced/ringing-calls/#watch-for-incoming-and-outgoing-calls for more information */
125
- navigateToIncomingCall?: () => void;
126
154
  /** Callback that is called when a non ringing push notification was tapped */
127
155
  onTapNonRingingCallNotification?: (call_cid: string, type: NonRingingPushEvent) => void;
128
156
  };
@@ -131,14 +159,11 @@ export type StreamVideoConfig = {
131
159
  /**
132
160
  * The notification channel to keep call alive in the background for Android using a foreground service.
133
161
  */
134
- channel: AndroidChannel;
162
+ channel: Omit<AndroidChannelConfig, 'sound' | 'vibration'>;
135
163
  /**
136
164
  * The texts shown in the notification to keep call alive in the background
137
165
  */
138
- notificationTexts: {
139
- title: string;
140
- body: string;
141
- };
166
+ notificationTexts: KeepAliveAndroidNotificationTexts;
142
167
  /**
143
168
  * The task to run in the foreground service
144
169
  * The task must resolve a promise once complete
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/utils/StreamVideoRN/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,iBAAiB,EACjB,KAAK,IAAI,EACV,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAC3B,mBAAmB,GACnB,mBAAmB,GACnB,aAAa,CAAC;AAElB,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;OAIG;IACH,IAAI,CAAC,EAAE;QACL,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB;;;;WAIG;QACH,cAAc,CAAC,EAAE,oBAAoB,CAAC;QAEtC,GAAG,EAAE;YACH;;;;eAIG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;SAC3B,CAAC;QACF,OAAO,EAAE;YACP;;;;eAIG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB;;;;eAIG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B;;;;;;;;;eASG;YACH,WAAW,CAAC,EAAE,cAAc,CAAC;YAC7B;;;;;;;;eAQG;YACH,mBAAmB,CAAC,EAAE,cAAc,CAAC;YACrC;;;;;;;;;eASG;YACH,mCAAmC,CAAC,EAAE;gBACpC,QAAQ,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,MAAM,CAAC;gBAC9C,OAAO,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,MAAM,CAAC;gBAC7C,oBAAoB,CAAC,EAAE,MAAM,MAAM,CAAC;gBACpC,qBAAqB,CAAC,EAAE,M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;;;;;;;;;;;;eAmBG;YACH,2BAA2B,CAAC,EAAE;gBAC5B,QAAQ,EAAE,CACR,IAAI,EAAE,mBAAmB,EACzB,eAAe,EAAE,MAAM,KACpB,MAAM,CAAC;gBACZ,OAAO,EAAE,CAAC,IAAI,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,KAAK,MAAM,CAAC;aACzE,CAAC;SACH,CAAC;QACF;;;WAGG;QACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B;;;WAGG;QACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;QACnC;;;;;;;;;;;;;;;;;WAiBG;QACH,uBAAuB,EAAE,MAAM,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;QACtE,8EAA8E;QAC9E,+BAA+B,CAAC,EAAE,CAChC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,mBAAmB,KACtB,IAAI,CAAC;KACX,CAAC;IACF,iBAAiB,EAAE;QACjB,OAAO,EAAE;YACP;;eAEG;YACH,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,OAAO,GAAG,WAAW,CAAC,CAAC;YAC3D;;eAEG;YACH,iBAAiB,EAAE,iCAAiC,CAAC;YACrD;;;eAGG;YACH,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;SAC1C,CAAC;KACH,CAAC;CACH,CAAC"}
@@ -0,0 +1,16 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audioSessionPromise.d.ts","sourceRoot":"","sources":["../../../../../src/utils/internal/callingx/audioSessionPromise.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,OAAO,CAAC,IAAI,CAAC,CAa7D;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAajD"}
@@ -0,0 +1,14 @@
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
+ /**
8
+ * Starts the call in the callingx library.
9
+ * Must be called for all outgoing calls
10
+ * and optionally for non-ringing calls when ongoing calls are enabled.
11
+ */
12
+ export declare function startCallingxCall(call: Call): Promise<void>;
13
+ export declare function endCallingxCall(call: Call, reason?: EndCallReason): Promise<void>;
14
+ //# sourceMappingURL=callingx.d.ts.map
@@ -0,0 +1 @@
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,UA+BlC;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,IAAI,iBAgEjD;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,aAAa,iBAmBvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"registerSDKGlobals.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/registerSDKGlobals.ts"],"names":[],"mappings":"AA4CA,wBAAgB,kBAAkB,SAIjC"}
1
+ {"version":3,"file":"registerSDKGlobals.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/registerSDKGlobals.ts"],"names":[],"mappings":"AAuFA,wBAAgB,kBAAkB,SAIjC"}
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -11,9 +11,8 @@ export declare function initAndroidPushToken(client: StreamVideoClient, pushConf
11
11
  * For Ringing and Non-Ringing calls.
12
12
  */
13
13
  export declare const firebaseDataHandler: (data: FirebaseMessagingTypes.RemoteMessage["data"]) => Promise<void>;
14
- export declare const onAndroidNotifeeEvent: ({ event, isBackground, }: {
14
+ export declare const onAndroidNotifeeEvent: ({ event }: {
15
15
  event: Event;
16
- isBackground: boolean;
17
16
  }) => Promise<void>;
18
17
  export {};
19
18
  //# sourceMappingURL=android.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/android.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,sBAAsB,EAO3B,KAAK,UAAU,EAChB,MAAM,QAAQ,CAAC;AAsBhB,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzD,KAAK,+BAA+B,GAAG,UAAU,CAC/C,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAC3C,CAAC,CAAC,CAAC,CAAC;AAEL,KAAK,KAAK,GAAG,UAAU,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC;AAI5D,4BAA4B;AAC5B,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBAmE1D;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,sBAAsB,CAAC,aAAa,CAAC,MAAM,CAAC,kBAuRnD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAU,0BAGzC;IACD,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;CACvB,kBA2GA,CAAC"}
1
+ {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/android.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,sBAAsB,EAM3B,KAAK,UAAU,EAChB,MAAM,QAAQ,CAAC;AAQhB,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzD,KAAK,+BAA+B,GAAG,UAAU,CAC/C,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAC3C,CAAC,CAAC,CAAC,CAAC;AAEL,KAAK,KAAK,GAAG,UAAU,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC;AAI5D,4BAA4B;AAC5B,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBAkE1D;AAED;;;GAGG;AAEH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,sBAAsB,CAAC,aAAa,CAAC,MAAM,CAAC,kBAySnD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAU,WAAW;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,kBA6BtE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/internal/ios.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,eAAO,MAAM,0BAA0B,GACrC,cAAc,GAAG,EACjB,YAAY,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,kBAuHnD,CAAC"}
1
+ {"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/internal/ios.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAI9D,eAAO,MAAM,0BAA0B,GACrC,cAAc,GAAG,EACjB,YAAY,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,kBAwGnD,CAAC"}
@@ -8,37 +8,4 @@ export declare const pushNonRingingCallData$: BehaviorSubject<{
8
8
  cid: string;
9
9
  type: NonRingingPushEvent;
10
10
  } | undefined>;
11
- /**
12
- * This rxjs subject is used to store the call cid of the accepted incoming call from push notification
13
- * Note: it is should be subscribed only when a user has connected to the websocket of Stream
14
- */
15
- export declare const pushAcceptedIncomingCallCId$: BehaviorSubject<string | undefined>;
16
- /**
17
- * This rxjs subject is used to store the call cid of the tapped incoming call from push notification it is neither accepted nor rejected yet
18
- * Note: it should be subscribed only when a user has connected to the websocket of Stream
19
- */
20
- export declare const pushTappedIncomingCallCId$: BehaviorSubject<string | undefined>;
21
- /**
22
- * This rxjs subject is used to store the call cid of the delivered incoming call from push notification it is neither accepted nor rejected yet
23
- * Used so that the call is navigated to when app is open from being killed
24
- * Note: it should be subscribed only when a user has connected to the websocket of Stream
25
- */
26
- export declare const pushAndroidBackgroundDeliveredIncomingCallCId$: BehaviorSubject<string | undefined>;
27
- /**
28
- * This rxjs subject is used to store the call cid of the accepted incoming call from push notification
29
- * Note: it should be subscribed only when a user has connected to the websocket of Stream
30
- */
31
- export declare const pushRejectedIncomingCallCId$: BehaviorSubject<string | undefined>;
32
- /**
33
- * This rxjs subject is used to store the call cid of the incoming call from ios voip pushkit notification
34
- */
35
- export declare const voipPushNotificationCallCId$: BehaviorSubject<string | undefined>;
36
- /** The pair of cid of a call and its corresponding uuid created in the native side */
37
- type CallkeepMap = {
38
- uuid: string;
39
- cid: string;
40
- };
41
- export declare const voipCallkeepCallOnForegroundMap$: BehaviorSubject<CallkeepMap | undefined>;
42
- export declare const voipCallkeepAcceptedCallOnNativeDialerMap$: BehaviorSubject<CallkeepMap | undefined>;
43
- export {};
44
11
  //# sourceMappingURL=rxSubjects.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rxSubjects.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/internal/rxSubjects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,uBAAuB;SAC3B,MAAM;UAAQ,mBAAmB;cAC9B,CAAC;AAEb;;;GAGG;AACH,eAAO,MAAM,4BAA4B,qCAE7B,CAAC;AAEb;;;GAGG;AACH,eAAO,MAAM,0BAA0B,qCAE3B,CAAC;AAEb;;;;GAIG;AACH,eAAO,MAAM,8CAA8C,qCACP,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,4BAA4B,qCAE7B,CAAC;AAEb;;GAEG;AACH,eAAO,MAAM,4BAA4B,qCAE7B,CAAC;AAEb,sFAAsF;AACtF,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAOF,eAAO,MAAM,gCAAgC,0CAEjC,CAAC;AAKb,eAAO,MAAM,0CAA0C,0CAE3C,CAAC"}
1
+ {"version":3,"file":"rxSubjects.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/internal/rxSubjects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,uBAAuB;SAC3B,MAAM;UAAQ,mBAAmB;cAC9B,CAAC"}
@@ -10,7 +10,7 @@ type CanAddPushWSSubscriptionsRef = {
10
10
  */
11
11
  export declare const shouldCallBeEnded: (callFromPush: Call, created_by_id: string | undefined, receiver_id: string | undefined) => {
12
12
  mustEndCall: boolean;
13
- callkeepReason: number;
13
+ endCallReason: "rejected" | "answeredElsewhere" | "canceled" | "unknown";
14
14
  };
15
15
  export declare const processCallFromPushInBackground: (pushConfig: PushConfig, call_cid: string, action: Parameters<typeof processCallFromPush>[2]) => Promise<void>;
16
16
  /**
@@ -39,5 +39,12 @@ export declare const clearPushWSEventSubscriptions: (call_cid: string) => void;
39
39
  * It is used to avoid adding the push WS subscriptions when the client is connected to WS in the foreground
40
40
  */
41
41
  export declare const canAddPushWSSubscriptionsRef: CanAddPushWSSubscriptionsRef;
42
+ export declare const canListenToWS: () => boolean;
43
+ export declare const shouldCallBeClosed: (call: Call, pushData: {
44
+ [key: string]: string | object;
45
+ }) => {
46
+ mustEndCall: boolean;
47
+ endCallReason: "rejected" | "answeredElsewhere" | "canceled" | "unknown";
48
+ };
42
49
  export {};
43
50
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/internal/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAEJ,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAInC,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzD,KAAK,4BAA4B,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,cAAc,IAAI,EAClB,eAAe,MAAM,GAAG,SAAS,EACjC,aAAa,MAAM,GAAG,SAAS;;;CAwChC,CAAC;AAMF,eAAO,MAAM,+BAA+B,GAC1C,YAAY,UAAU,EACtB,UAAU,MAAM,EAChB,QAAQ,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,kBAiBlD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,iBAAiB,EACzB,UAAU,MAAM,EAChB,QAAQ,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,qBAAqB,EAChE,YAAY,UAAU,kBAoCvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,GACzC,QAAQ,iBAAiB,EACzB,UAAU,MAAM,EAChB,4BAA4B,mBAAmB,kBAqBhD,CAAC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eACkD,CAAC;AAE7E,eAAO,MAAM,kBAAkB,GAC7B,MAAM,IAAI,EACV,UAAU;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE;;;CAW7C,CAAC"}
@@ -4,9 +4,8 @@ import { StreamVideoClient } from '@stream-io/video-client';
4
4
  import type { Event } from '@notifee/react-native';
5
5
  type PushConfig = NonNullable<StreamVideoConfig['push']>;
6
6
  export declare const oniOSExpoNotificationEvent: (event: ExpoNotification) => void;
7
- export declare const oniOSNotifeeEvent: ({ event, }: {
7
+ export declare const oniOSNotifeeEvent: ({ event }: {
8
8
  event: Event;
9
- isBackground: boolean;
10
9
  }) => void;
11
10
  export declare function onPushNotificationiOSStreamVideoEvent(notification: PushNotificationiOSType): void;
12
11
  /** Send token to stream */
@@ -1 +1 @@
1
- {"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/ios.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EACL,KAAK,gBAAgB,EAIrB,KAAK,uBAAuB,EAC7B,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,iBAAiB,EAAqB,MAAM,yBAAyB,CAAC;AAE/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAuBzD,eAAO,MAAM,0BAA0B,GAAI,OAAO,gBAAgB,SAuBjE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,YAE/B;IACD,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;CACvB,SAkBA,CAAC;AAEF,wBAAgB,qCAAqC,CACnD,YAAY,EAAE,uBAAuB,QAkCtC;AAED,2BAA2B;AAC3B,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBAiF1D"}
1
+ {"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/ios.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EACL,KAAK,gBAAgB,EAIrB,KAAK,uBAAuB,EAC7B,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,iBAAiB,EAAqB,MAAM,yBAAyB,CAAC;AAE/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAuBzD,eAAO,MAAM,0BAA0B,GAAI,OAAO,gBAAgB,SAuBjE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,WAAW;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,SAkB5D,CAAC;AAEF,wBAAgB,qCAAqC,CACnD,YAAY,EAAE,uBAAuB,QAkCtC;AAED,2BAA2B;AAC3B,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBAiF1D"}
@@ -0,0 +1,9 @@
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
@@ -0,0 +1 @@
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,CA4DnB"}
@@ -1,7 +1,6 @@
1
1
  export * from './expoNotifications';
2
2
  export * from './firebaseMessaging';
3
3
  export * from './iosPushNotification';
4
- export * from './voipPushNotification';
5
- export * from './callkeep';
6
4
  export * from './notifee';
5
+ export * from './callingx';
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/libs/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/libs/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
@@ -19,7 +19,6 @@ declare enum AndroidForegroundServiceType {
19
19
  }
20
20
  export declare function getNotifeeLibThrowIfNotInstalledForPush(): typeof import("@notifee/react-native");
21
21
  export declare function getNotifeeLibNoThrowForKeepCallAlive(): typeof import("@notifee/react-native") | undefined;
22
- export declare function getKeepCallAliveForegroundServiceTypes(): Promise<AndroidForegroundServiceType[]>;
23
22
  export declare function getIncomingCallForegroundServiceTypes(): AndroidForegroundServiceType[];
24
23
  export {};
25
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/notifee/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,IAAI,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC;AAE9B,aAAK,4BAA4B;IAC/B,8BAA8B,KAAK;IACnC,wCAAwC,KAAK;IAC7C,iCAAiC,IAAI;IACrC,8BAA8B,MAAM;IACpC,gCAAgC,IAAI;IACpC,sCAAsC,IAAI;IAC1C,wCAAwC,KAAK;IAC7C,wCAAwC,OAAO;IAC/C,kCAAkC,MAAM;IACxC,kCAAkC,IAAI;IACtC,wCAAwC,MAAM;IAC9C,qCAAqC,OAAO;IAC5C,mCAAmC,aAAa;IAChD,uCAAuC,OAAO;IAC9C,gCAAgC,KAAK;CACtC;AAKD,wBAAgB,uCAAuC,2CAQtD;AAED,wBAAgB,oCAAoC,uDAQnD;AAED,wBAAsB,sCAAsC,4CAiB3D;AAED,wBAAgB,qCAAqC,mCAKpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/notifee/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,IAAI,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC;AAE9B,aAAK,4BAA4B;IAC/B,8BAA8B,KAAK;IACnC,wCAAwC,KAAK;IAC7C,iCAAiC,IAAI;IACrC,8BAA8B,MAAM;IACpC,gCAAgC,IAAI;IACpC,sCAAsC,IAAI;IAC1C,wCAAwC,KAAK;IAC7C,wCAAwC,OAAO;IAC/C,kCAAkC,MAAM;IACxC,kCAAkC,IAAI;IACtC,wCAAwC,MAAM;IAC9C,qCAAqC,OAAO;IAC5C,mCAAmC,aAAa;IAChD,uCAAuC,OAAO;IAC9C,gCAAgC,KAAK;CACtC;AAKD,wBAAgB,uCAAuC,2CAQtD;AAED,wBAAgB,oCAAoC,uDAEnD;AAED,wBAAgB,qCAAqC,mCAKpD"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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,QAoExE"}
@@ -1 +1 @@
1
- {"version":3,"file":"setupIosVoipPushEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupIosVoipPushEvents.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QAyBnD"}
1
+ {"version":3,"file":"setupIosVoipPushEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupIosVoipPushEvents.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAI3D,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QA4BnD"}
@@ -1,2 +1,2 @@
1
- export declare const version = "1.29.3";
1
+ export declare const version = "1.29.4-beta.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
@@ -1,42 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const config_plugins_1 = require("@expo/config-plugins");
4
- const { prefixAndroidKeys, getMainApplicationOrThrow, getMainActivityOrThrow, ensureToolsAvailable, } = config_plugins_1.AndroidConfig.Manifest;
5
- function getNotifeeService(isKeepCallAliveEnabled = false) {
6
- /* We add this service to the AndroidManifest.xml:
7
- <service
8
- android:name="app.notifee.core.ForegroundService"
9
- android:stopWithTask="true"
10
- android:foregroundServiceType="shortService" />
11
- */
12
- let foregroundServiceType = 'shortService';
13
- if (isKeepCallAliveEnabled) {
14
- foregroundServiceType =
15
- 'mediaPlayback|camera|microphone|' + foregroundServiceType;
16
- }
17
- let head = prefixAndroidKeys({
18
- name: 'app.notifee.core.ForegroundService',
19
- stopWithTask: 'true',
20
- foregroundServiceType,
21
- });
22
- head = { ...head, 'tools:replace': 'android:foregroundServiceType' };
23
- return {
24
- $: head,
25
- };
26
- }
4
+ const { getMainActivityOrThrow } = config_plugins_1.AndroidConfig.Manifest;
27
5
  const withStreamVideoReactNativeSDKManifest = (configuration, props) => {
28
6
  return (0, config_plugins_1.withAndroidManifest)(configuration, (config) => {
29
7
  const androidManifest = config.modResults;
30
- const mainApplication = getMainApplicationOrThrow(androidManifest);
31
- if (props?.ringingPushNotifications || props?.androidKeepCallAlive) {
32
- ensureToolsAvailable(androidManifest);
33
- /* Add the notifee foreground Service */
34
- let services = mainApplication.service ?? [];
35
- // we filter out the existing notifee service (if any) so that we can override it
36
- services = services.filter((service) => service.$['android:name'] !== 'app.notifee.core.ForegroundService');
37
- services.push(getNotifeeService(!!props?.androidKeepCallAlive));
38
- mainApplication.service = services;
39
- }
40
8
  if (props?.androidPictureInPicture) {
41
9
  const mainActivity = getMainActivityOrThrow(androidManifest);
42
10
  const currentConfigChangesArray = mainActivity.$['android:configChanges']
@@ -8,20 +8,15 @@ const withStreamVideoReactNativeSDKAndroidPermissions = (configuration, props) =
8
8
  'android.permission.BLUETOOTH_ADMIN',
9
9
  'android.permission.WAKE_LOCK',
10
10
  ];
11
- if (props?.androidKeepCallAlive ||
12
- props?.ringingPushNotifications ||
13
- props?.enableScreenshare) {
11
+ if (props?.androidKeepCallAlive || props?.enableScreenshare) {
14
12
  permissions.push('android.permission.POST_NOTIFICATIONS', 'android.permission.FOREGROUND_SERVICE');
15
13
  if (props?.enableScreenshare) {
16
14
  permissions.push('android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION');
17
15
  }
18
16
  }
19
- if (props?.androidKeepCallAlive || props?.ringingPushNotifications) {
17
+ if (props?.androidKeepCallAlive) {
20
18
  permissions.push('android.permission.FOREGROUND_SERVICE_CAMERA', 'android.permission.FOREGROUND_SERVICE_MICROPHONE', 'android.permission.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK');
21
19
  }
22
- if (props?.ringingPushNotifications?.showWhenLockedAndroid) {
23
- permissions.push('android.permission.USE_FULL_SCREEN_INTENT');
24
- }
25
20
  const config = config_plugins_1.AndroidConfig.Permissions.withPermissions(configuration, permissions);
26
21
  return config;
27
22
  };