@stream-io/video-react-native-sdk 1.23.0 → 1.24.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 (228) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/commonjs/components/Call/CallContent/CallContent.js +2 -2
  3. package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
  4. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +2 -2
  5. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  6. package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js +3 -3
  7. package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
  8. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +3 -3
  9. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  10. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +3 -3
  11. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
  12. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +2 -2
  13. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
  14. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +2 -2
  15. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  16. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +2 -2
  17. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
  18. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +4 -4
  19. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  20. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +2 -2
  21. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  22. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +4 -4
  23. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
  24. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js +2 -2
  25. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
  26. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +2 -2
  27. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  28. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +11 -11
  29. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
  30. package/dist/commonjs/contexts/internal/ScreenshotIosContext.js +3 -3
  31. package/dist/commonjs/contexts/internal/ScreenshotIosContext.js.map +1 -1
  32. package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js +1 -1
  33. package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
  34. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +2 -2
  35. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
  36. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +13 -13
  37. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  38. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +2 -2
  39. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +1 -1
  40. package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js +1 -1
  41. package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
  42. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +10 -10
  43. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  44. package/dist/commonjs/hooks/usePermissionRequest.js +2 -2
  45. package/dist/commonjs/hooks/usePermissionRequest.js.map +1 -1
  46. package/dist/commonjs/hooks/useScreenShareButton.js +4 -4
  47. package/dist/commonjs/hooks/useScreenShareButton.js.map +1 -1
  48. package/dist/commonjs/hooks/useScreenshot.js +2 -2
  49. package/dist/commonjs/hooks/useScreenshot.js.map +1 -1
  50. package/dist/commonjs/modules/call-manager/PrevLibDetection.js +1 -1
  51. package/dist/commonjs/modules/call-manager/PrevLibDetection.js.map +1 -1
  52. package/dist/commonjs/providers/BusyTonePlayer.js +6 -6
  53. package/dist/commonjs/providers/BusyTonePlayer.js.map +1 -1
  54. package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js +2 -2
  55. package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
  56. package/dist/commonjs/providers/StreamCall/AppStateListener.js +7 -7
  57. package/dist/commonjs/providers/StreamCall/AppStateListener.js.map +1 -1
  58. package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js +3 -3
  59. package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
  60. package/dist/commonjs/utils/push/android.js +30 -30
  61. package/dist/commonjs/utils/push/android.js.map +1 -1
  62. package/dist/commonjs/utils/push/internal/ios.js +9 -9
  63. package/dist/commonjs/utils/push/internal/ios.js.map +1 -1
  64. package/dist/commonjs/utils/push/internal/utils.js +11 -11
  65. package/dist/commonjs/utils/push/internal/utils.js.map +1 -1
  66. package/dist/commonjs/utils/push/ios.js +21 -21
  67. package/dist/commonjs/utils/push/ios.js.map +1 -1
  68. package/dist/commonjs/utils/push/libs/expoNotifications.js +1 -1
  69. package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -1
  70. package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js +3 -3
  71. package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  72. package/dist/commonjs/utils/push/libs/notifee/index.js +3 -3
  73. package/dist/commonjs/utils/push/libs/notifee/index.js.map +1 -1
  74. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +7 -7
  75. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +1 -1
  76. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +4 -4
  77. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
  78. package/dist/commonjs/version.js +1 -1
  79. package/dist/module/components/Call/CallContent/CallContent.js +3 -3
  80. package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
  81. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +3 -3
  82. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  83. package/dist/module/components/Call/CallContent/RTCViewPipNative.js +3 -3
  84. package/dist/module/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
  85. package/dist/module/components/Call/CallControls/AcceptCallButton.js +3 -3
  86. package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  87. package/dist/module/components/Call/CallControls/HangupCallButton.js +3 -4
  88. package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
  89. package/dist/module/components/Call/CallControls/RejectCallButton.js +3 -3
  90. package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
  91. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +3 -3
  92. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  93. package/dist/module/components/Call/Lobby/JoinCallButton.js +3 -3
  94. package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
  95. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +5 -5
  96. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  97. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +3 -3
  98. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  99. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +5 -5
  100. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
  101. package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js +3 -4
  102. package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
  103. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +3 -3
  104. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  105. package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +11 -11
  106. package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
  107. package/dist/module/contexts/internal/ScreenshotIosContext.js +4 -4
  108. package/dist/module/contexts/internal/ScreenshotIosContext.js.map +1 -1
  109. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +2 -2
  110. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
  111. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +3 -3
  112. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
  113. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +14 -14
  114. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  115. package/dist/module/hooks/push/useProcessPushCallEffect.js +3 -3
  116. package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
  117. package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js +2 -2
  118. package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
  119. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +11 -11
  120. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  121. package/dist/module/hooks/usePermissionRequest.js +3 -3
  122. package/dist/module/hooks/usePermissionRequest.js.map +1 -1
  123. package/dist/module/hooks/useScreenShareButton.js +5 -5
  124. package/dist/module/hooks/useScreenShareButton.js.map +1 -1
  125. package/dist/module/hooks/useScreenshot.js +3 -3
  126. package/dist/module/hooks/useScreenshot.js.map +1 -1
  127. package/dist/module/modules/call-manager/PrevLibDetection.js +2 -2
  128. package/dist/module/modules/call-manager/PrevLibDetection.js.map +1 -1
  129. package/dist/module/providers/BusyTonePlayer.js +7 -7
  130. package/dist/module/providers/BusyTonePlayer.js.map +1 -1
  131. package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js +3 -3
  132. package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
  133. package/dist/module/providers/StreamCall/AppStateListener.js +8 -8
  134. package/dist/module/providers/StreamCall/AppStateListener.js.map +1 -1
  135. package/dist/module/utils/getAndroidDefaultRingtoneUrl.js +3 -3
  136. package/dist/module/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
  137. package/dist/module/utils/push/android.js +31 -31
  138. package/dist/module/utils/push/android.js.map +1 -1
  139. package/dist/module/utils/push/internal/ios.js +9 -9
  140. package/dist/module/utils/push/internal/ios.js.map +1 -1
  141. package/dist/module/utils/push/internal/utils.js +12 -12
  142. package/dist/module/utils/push/internal/utils.js.map +1 -1
  143. package/dist/module/utils/push/ios.js +22 -22
  144. package/dist/module/utils/push/ios.js.map +1 -1
  145. package/dist/module/utils/push/libs/expoNotifications.js +2 -2
  146. package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
  147. package/dist/module/utils/push/libs/firebaseMessaging/index.js +3 -3
  148. package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  149. package/dist/module/utils/push/libs/notifee/index.js +3 -3
  150. package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
  151. package/dist/module/utils/push/setupIosCallKeepEvents.js +8 -8
  152. package/dist/module/utils/push/setupIosCallKeepEvents.js.map +1 -1
  153. package/dist/module/utils/push/setupIosVoipPushEvents.js +5 -5
  154. package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
  155. package/dist/module/version.js +1 -1
  156. package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
  157. package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts.map +1 -1
  158. package/dist/typescript/components/Call/CallContent/RTCViewPipNative.d.ts.map +1 -1
  159. package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -1
  160. package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -1
  161. package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -1
  162. package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLobby.d.ts.map +1 -1
  163. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts.map +1 -1
  164. package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.d.ts.map +1 -1
  165. package/dist/typescript/contexts/internal/ScreenshotIosContext.d.ts.map +1 -1
  166. package/dist/typescript/hooks/push/useInitAndroidTokenAndRest.d.ts.map +1 -1
  167. package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts.map +1 -1
  168. package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
  169. package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts.map +1 -1
  170. package/dist/typescript/hooks/push/useProcessPushNonRingingCallEffect.d.ts.map +1 -1
  171. package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -1
  172. package/dist/typescript/hooks/useScreenShareButton.d.ts.map +1 -1
  173. package/dist/typescript/hooks/useScreenshot.d.ts.map +1 -1
  174. package/dist/typescript/modules/call-manager/PrevLibDetection.d.ts.map +1 -1
  175. package/dist/typescript/providers/BusyTonePlayer.d.ts.map +1 -1
  176. package/dist/typescript/providers/NoiseCancellation/NoiseCancellationProvider.d.ts.map +1 -1
  177. package/dist/typescript/providers/StreamCall/AppStateListener.d.ts.map +1 -1
  178. package/dist/typescript/utils/push/android.d.ts.map +1 -1
  179. package/dist/typescript/utils/push/internal/ios.d.ts.map +1 -1
  180. package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
  181. package/dist/typescript/utils/push/ios.d.ts.map +1 -1
  182. package/dist/typescript/utils/push/libs/expoNotifications.d.ts.map +1 -1
  183. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
  184. package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
  185. package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts.map +1 -1
  186. package/dist/typescript/utils/push/setupIosVoipPushEvents.d.ts.map +1 -1
  187. package/dist/typescript/version.d.ts +1 -1
  188. package/ios/StreamInCallManager.swift +35 -23
  189. package/package.json +3 -3
  190. package/src/components/Call/CallContent/CallContent.tsx +7 -9
  191. package/src/components/Call/CallContent/RTCViewPipIOS.tsx +7 -9
  192. package/src/components/Call/CallContent/RTCViewPipNative.tsx +8 -6
  193. package/src/components/Call/CallControls/AcceptCallButton.tsx +3 -3
  194. package/src/components/Call/CallControls/HangupCallButton.tsx +3 -4
  195. package/src/components/Call/CallControls/RejectCallButton.tsx +4 -4
  196. package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +6 -3
  197. package/src/components/Call/Lobby/JoinCallButton.tsx +3 -3
  198. package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +5 -5
  199. package/src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx +3 -3
  200. package/src/components/Livestream/LivestreamPlayer/LivestreamPlayer.tsx +5 -5
  201. package/src/components/Livestream/ViewerLivestream/ViewerLobby.tsx +3 -4
  202. package/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.tsx +3 -4
  203. package/src/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx +9 -10
  204. package/src/contexts/internal/ScreenshotIosContext.tsx +12 -14
  205. package/src/hooks/push/useInitAndroidTokenAndRest.ts +4 -6
  206. package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +9 -3
  207. package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +14 -19
  208. package/src/hooks/push/useProcessPushCallEffect.ts +11 -9
  209. package/src/hooks/push/useProcessPushNonRingingCallEffect.ts +6 -5
  210. package/src/hooks/useAndroidKeepCallAliveEffect.ts +17 -14
  211. package/src/hooks/usePermissionRequest.tsx +3 -3
  212. package/src/hooks/useScreenShareButton.ts +5 -7
  213. package/src/hooks/useScreenshot.ts +7 -11
  214. package/src/modules/call-manager/PrevLibDetection.ts +6 -5
  215. package/src/providers/BusyTonePlayer.tsx +7 -11
  216. package/src/providers/NoiseCancellation/NoiseCancellationProvider.tsx +7 -11
  217. package/src/providers/StreamCall/AppStateListener.tsx +8 -12
  218. package/src/utils/getAndroidDefaultRingtoneUrl.ts +3 -3
  219. package/src/utils/push/android.ts +93 -85
  220. package/src/utils/push/internal/ios.ts +9 -15
  221. package/src/utils/push/internal/utils.ts +28 -25
  222. package/src/utils/push/ios.ts +28 -32
  223. package/src/utils/push/libs/expoNotifications.ts +6 -5
  224. package/src/utils/push/libs/firebaseMessaging/index.ts +5 -4
  225. package/src/utils/push/libs/notifee/index.ts +3 -4
  226. package/src/utils/push/setupIosCallKeepEvents.ts +12 -14
  227. package/src/utils/push/setupIosVoipPushEvents.ts +7 -9
  228. package/src/version.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["_videoClient","require","_videoReactBindings","_react","_reactNative","usePermissionRequest","call","useCall","useHasPermissions","useCallStateHooks","userHasUpdateCallPermissionsCapability","OwnCapability","UPDATE_CALL_PERMISSIONS","messageForPermission","userName","permission","SEND_AUDIO","SEND_VIDEO","SCREENSHARE","handleUpdatePermission","useCallback","request","allow","user","permissions","grantPermissions","id","revokePermissions","err","logger","getLogger","useEffect","on","event","type","forEach","Alert","alert","name","text","onPress","exports"],"sourceRoot":"../../../src","sources":["hooks/usePermissionRequest.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAEO,MAAMI,oBAAoB,GAAGA,CAAA,KAAM;EACxC,MAAMC,IAAI,GAAG,IAAAC,2BAAO,EAAC,CAAC;EAEtB,MAAM;IAAEC;EAAkB,CA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ACnD,IAAIA,KAAK,CAACC,IAAI,KAAK,yBAAyB,EAAE;QAC5C;MACF;MACA,MAAM;QAAEX,IAAI;QAAEC;MAAY,CAAC,GAAGS,KAAK;MACnCT,WAAW,CAACW,OAAO,CAAEpB,UAAU,IAAK;QAClC,OAAOqB,kBAAK,CAACC,KAAK,CAChB,qBAAqB,EACrBxB,oBAAoB,CAACU,IAAI,CAACe,IAAI,IAAIf,IAAI,CAACG,EAAE,EAAEX,UAAU,CAAC,EACtD,CACE;UACEwB,IAAI,EAAE,QAAQ;UACdC,OAAO,EAAErB,sBAAsB,CAACc,KAAK,EAAE,KAAK;QAC9C,CAAC,EACD;UACEM,IAAI,EAAE,OAAO;UACbC,OAAO,EAAErB,sBAAsB,CAACc,KAAK,EAAE,IAAI;QAC7C,CAAC,CAEL,CAAC;MACH,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ,CAAC,EAAE,CAAC3B,IAAI,EAAEI,sCAAsC,EAAES,sBAAsB,CAAC,CAAC;AAC5E,CAAC;AAACsB,OAAA,CAAApC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_videoClient","require","_videoReactBindings","_react","_reactNative","usePermissionRequest","call","useCall","useHasPermissions","useCallStateHooks","userHasUpdateCallPermissionsCapability","OwnCapability","UPDATE_CALL_PERMISSIONS","messageForPermission","userName","permission","SEND_AUDIO","SEND_VIDEO","SCREENSHARE","handleUpdatePermission","useCallback","request","allow","user","permissions","grantPermissions","id","revokePermissions","err","logger","videoLoggerSystem","getLogger","error","useEffect","on","event","type","forEach","Alert","alert","name","text","onPress","exports"],"sourceRoot":"../../../src","sources":["hooks/usePermissionRequest.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAEO,MAAMI,oBAAoB,GAAGA,CAAA,KAAM;EACxC,MAAMC,I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A,OAAOJ,IAAI,CAAC4B,EAAE,CAAC,yBAAyB,EAAGC,KAAK,IAAK;MACnD,IAAIA,KAAK,CAACC,IAAI,KAAK,yBAAyB,EAAE;QAC5C;MACF;MACA,MAAM;QAAEb,IAAI;QAAEC;MAAY,CAAC,GAAGW,KAAK;MACnCX,WAAW,CAACa,OAAO,CAAEtB,UAAU,IAAK;QAClC,OAAOuB,kBAAK,CAACC,KAAK,CAChB,qBAAqB,EACrB1B,oBAAoB,CAACU,IAAI,CAACiB,IAAI,IAAIjB,IAAI,CAACG,EAAE,EAAEX,UAAU,CAAC,EACtD,CACE;UACE0B,IAAI,EAAE,QAAQ;UACdC,OAAO,EAAEvB,sBAAsB,CAACgB,KAAK,EAAE,KAAK;QAC9C,CAAC,EACD;UACEM,IAAI,EAAE,OAAO;UACbC,OAAO,EAAEvB,sBAAsB,CAACgB,KAAK,EAAE,IAAI;QAC7C,CAAC,CAEL,CAAC;MACH,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ,CAAC,EAAE,CAAC7B,IAAI,EAAEI,sCAAsC,EAAES,sBAAsB,CAAC,CAAC;AAC5E,CAAC;AAACwB,OAAA,CAAAtC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -47,8 +47,8 @@ const useScreenShareButton = (screenCapturePickerViewiOSRef, onScreenShareStarte
47
47
  }, [call, iosScreenShareStartedFromSystem, prevIosScreenShareStartedFromSystem]);
48
48
  const onPress = async () => {
49
49
  if (!hasScreenSharingPermissions) {
50
- const logger = (0, _videoClient.getLogger)(['useScreenShareButton']);
51
- logger('info', 'User does not have permissions to stream the screen share media, calling onMissingScreenShareStreamPermission handler if present');
50
+ const logger = _videoClient.videoLoggerSystem.getLogger('useScreenShareButton');
51
+ logger.info('User does not have permissions to stream the screen share media, calling onMissingScreenShareStreamPermission handler if present');
52
52
  onMissingScreenShareStreamPermission?.();
53
53
  }
54
54
  if (!hasPublishedScreenShare) {
@@ -63,8 +63,8 @@ const useScreenShareButton = (screenCapturePickerViewiOSRef, onScreenShareStarte
63
63
  onScreenShareStartedHandler?.();
64
64
  } catch (error) {
65
65
  // ignored.. user didnt allow the screen share in the popup
66
- const logger = (0, _videoClient.getLogger)(['useScreenShareButton']);
67
- logger('info', 'User opted to not give permissions to start a screen share stream', error);
66
+ const logger = _videoClient.videoLoggerSystem.getLogger('useScreenShareButton');
67
+ logger.info('User opted to not give permissions to start a screen share stream', error);
68
68
  }
69
69
  }
70
70
  } else if (hasPublishedScreenShare) {
@@ -1 +1 @@
1
- {"version":3,"names":["_videoClient","require","_videoReactBindings","_react","_reactNative","_hooks","_useIsIosScreenshareBroadcastStarted","CanDeviceScreenShare","Platform","OS","Number","parseInt","Version","split","useScreenShareButton","screenCapturePickerViewiOSRef","onScreenShareStartedHandler","onScreenShareStoppedHandler","onMissingScreenShareStreamPermission","call","useCall","useLocalParticipant","useCallSettings","useOwnCapabilities","useCallStateHooks","callSettings","ownCapabilities","hasScreenSharingPermissions","includes","OwnCapability","SCREENSHARE","isScreenSharingEnabledInCall","screensharing","enabled","onScreenShareStartedHandlerRef","useRef","current","onScreenShareStoppedHandlerRef","iosScreenShareStartedFromSystem","useIsIosScreenshareBroadcastStarted","prevIosScreenShareStartedFromSystem","usePrevious","localParticipant","hasPublishedScreenShare","hasScreenShare","useEffect","screenShare","enable","disable","onPress","logger","getLogger","reactTag","findNodeHandle","NativeModules","ScreenCapturePickerViewManager","show","error","undefined","exports"],"sourceRoot":"../../../src","sources":["hooks/useScreenShareButton.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,oCAAA,GAAAL,OAAA;AAEA;AACA,MAAMM,oBAAoB,GACvBC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IACpBC,MAAM,CAACC,QAAQ,CAACH,q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AO,CAAC,IAAI,CAAC;IACvC;EACF,CAAC;EAED,IAAI,CAACjB,4BAA4B,IAAI,CAACxB,oBAAoB,EAAE;IAC1D,OAAO;MAAE0C,OAAO,EAAES,SAAS;MAAEf,uBAAuB,EAAE;IAAM,CAAC;EAC/D;EACA,OAAO;IAAEM,OAAO;IAAEN;EAAwB,CAAC;AAC7C,CAAC;AAACgB,OAAA,CAAA7C,oBAAA,GAAAA,oBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_videoClient","require","_videoReactBindings","_react","_reactNative","_hooks","_useIsIosScreenshareBroadcastStarted","CanDeviceScreenShare","Platform","OS","Number","parseInt","Version","split","useScreenShareButton","screenCapturePickerViewiOSRef","onScreenShareStartedHandler","onScreenShareStoppedHandler","onMissingScreenShareStreamPermission","call","useCall","useLocalParticipant","useCallSettings","useOwnCapabilities","useCallStateHooks","callSettings","ownCapabilities","hasScreenSharingPermissions","includes","OwnCapability","SCREENSHARE","isScreenSharingEnabledInCall","screensharing","enabled","onScreenShareStartedHandlerRef","useRef","current","onScreenShareStoppedHandlerRef","iosScreenShareStartedFromSystem","useIsIosScreenshareBroadcastStarted","prevIosScreenShareStartedFromSystem","usePrevious","localParticipant","hasPublishedScreenShare","hasScreenShare","useEffect","screenShare","enable","disable","onPress","logger","videoLoggerSystem","getLogger","info","reactTag","findNodeHandle","NativeModules","ScreenCapturePickerViewManager","show","error","undefined","exports"],"sourceRoot":"../../../src","sources":["hooks/useScreenShareButton.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,oCAAA,GAAAL,OAAA;AAEA;AACA,MAAMM,oBAAoB,GACvBC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IACpBC,MAAM,CAACC,QAAQ,CAACH,qBAAQ,CAACI,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;IACvC;EACF,CAAC;EAED,IAAI,CAACjB,4BAA4B,IAAI,CAACxB,oBAAoB,EAAE;IAC1D,OAAO;MAAE0C,OAAO,EAAEW,SAAS;MAAEjB,uBAAuB,EAAE;IAAM,CAAC;EAC/D;EACA,OAAO;IAAEM,OAAO;IAAEN;EAAwB,CAAC;AAC7C,CAAC;AAACkB,OAAA,CAAA/C,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -33,7 +33,7 @@ function useScreenshot() {
33
33
  try {
34
34
  return await StreamVideoReactNative.takeScreenshot(videoStreamForScreenshot.toURL());
35
35
  } catch (error) {
36
- (0, _videoClient.getLogger)(['useScreenshot'])('error', 'Error taking screenshot', error);
36
+ _videoClient.videoLoggerSystem.getLogger('useScreenshot').error('Error taking screenshot', error);
37
37
  return null;
38
38
  }
39
39
  }
@@ -42,7 +42,7 @@ function useScreenshot() {
42
42
  try {
43
43
  return await take(participant, videoTrackType);
44
44
  } catch (error) {
45
- (0, _videoClient.getLogger)(['useScreenshot'])('error', 'Error taking screenshot', error);
45
+ _videoClient.videoLoggerSystem.getLogger('useScreenshot').error('Error taking screenshot', error);
46
46
  return null;
47
47
  }
48
48
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_ScreenshotIosContext","_reactNative","_videoClient","StreamVideoReactNative","NativeModules","useScreenshot","take","useScreenshotIosContext","takeScreenshot","useCallback","participant","videoTrackType","Platform","OS","videoStream","screenShareStream","videoStreamForScreenshot","toURL","error","getLogger"],"sourceRoot":"../../../src","sources":["hooks/useScreenshot.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AAMA,MAAM;EAAEI;AAAuB,CAAC,GAAGC,0BAAa;;AAEhD;AACA;AACA;AACA;AACA;;AAeO,SAASC,aAAaA,CAAA,EAAwB;EACnD,MAAM;IAAEC;EAAK,CAAC,GAAG,IAAAC,6CAAuB,EAAC,CAAC;EAC1C,MAAMC,cAAc,GAAG,IAAAC,kBAAW,EAChC,OACEC,WAAmC,EACnCC,cAA8B,KAC3B;IACH,IAAIC,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;MAC7B,MAAM;QAAEC,WAAW;QAAEC;MAAkB,CAAC,GAAGL,WAAW;MAEtD,MAAMM,wBAAwB,GAAIL,cAAc,KAAK,kBAAkB,GACnEI,iBAAiB,GACjBD,WAAkD;MAEtD,IAAIE,wBAAwB,EAAE;QAC5B,IAAI;UACF,OAAO,MAAMb,sBAAsB,CAACK,cAAc,CAChDQ,wBAAwB,CAACC,KAAK,CAAC,CACjC,CAAC;QACH,CAAC,CAAC,OAAOC,KAAK,EAAE;UACd,IAAAC,sBAAS,EAAC,CAAC,eAAe,CAAC,CAAC,CAC1B,OAAO,EACP,yBAAyB,EACzBD,KACF,CAAC;UACD,OAAO,IAAI;QACb;MACF;MACA,OAAO,IAAI;IACb,CAAC,MAAM;MACL,IAAI;QACF,OAAO,MAAMZ,IAAI,CAACI,WAAW,EAAEC,cAAc,CAAC;MAChD,CAAC,CAAC,OAAOO,KAAK,EAAE;QACd,IAAAC,sBAAS,EAAC,CAAC,eAAe,CAAC,CAAC,CAC1B,OAAO,EACP,yBAAyB,EACzBD,KACF,CAAC;QACD,OAAO,IAAI;MACb;IACF;EACF,CAAC,EACD,CAACZ,IAAI,CACP,CAAC;EAED,OAAO;IAAEE;EAAe,CAAC;AAC3B","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_ScreenshotIosContext","_reactNative","_videoClient","StreamVideoReactNative","NativeModules","useScreenshot","take","useScreenshotIosContext","takeScreenshot","useCallback","participant","videoTrackType","Platform","OS","videoStream","screenShareStream","videoStreamForScreenshot","toURL","error","videoLoggerSystem","getLogger"],"sourceRoot":"../../../src","sources":["hooks/useScreenshot.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,q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13
  if (rnInCallManagerLib) {
14
- (0, _videoClient.getLogger)(['getRNInCallManagerLibNoThrow'])('debug', 'react-native-incall-manager library is not required to be installed from 1.22.0 version of the @stream-io/video-react-native-sdk. Please check the migration documentation at https://getstream.io/video/docs/react-native/migration-guides/1.22.0/ for more details.');
14
+ _videoClient.videoLoggerSystem.getLogger('getRNInCallManagerLibNoThrow').debug('react-native-incall-manager library is not required to be installed from 1.22.0 version of the @stream-io/video-react-native-sdk. Please check the migration documentation at https://getstream.io/video/docs/react-native/migration-guides/1.22.0/ for more details.');
15
15
  }
16
16
  return rnInCallManagerLib;
17
17
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_videoClient","require","rnInCallManagerLib","default","getRNInCallManagerLibNoThrow","getLogger"],"sourceRoot":"../../../../src","sources":["modules/call-manager/PrevLibDetection.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAYA,IAAIC,kBAAkD;AAEtD,IAAI;EACFA,kBAAkB,GAAGD,OAAO,CAAC,6BAA6B,CAAC,CAACE,OAAO;AACrE,CAAC,CAAC,MAAM,CAAC;AAEF,SAASC,4BAA4BA,CAAA,EAAG;EAC7C,IAAIF,kBAAkB,EAAE;IACtB,IAAAG,sBAAS,EAAC,CAAC,8BAA8B,CAAC,CAAC,CACzC,OAAO,EACP,uQACF,CAAC;EACH;EACA,OAAOH,kBAAkB;AAC3B","ignoreList":[]}
1
+ {"version":3,"names":["_videoClient","require","rnInCallManagerLib","default","getRNInCallManagerLibNoThrow","videoLoggerSystem","getLogger","debug"],"sourceRoot":"../../../../src","sources":["modules/call-manager/PrevLibDetection.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAYA,IAAIC,kBAAkD;AAEtD,IAAI;EACFA,kBAAkB,GAAGD,OAAO,CAAC,6BAA6B,CAAC,CAACE,OAAO;AACrE,CAAC,CAAC,MAAM,CAAC;AAEF,SAASC,4BAA4BA,CAAA,EAAG;EAC7C,IAAIF,kBAAkB,EAAE;IACtBG,8BAAiB,CACdC,SAAS,CAAC,8BAA8B,CAAC,CACzCC,KAAK,CACJ,uQACF,CAAC;EACL;EACA,OAAOL,kBAAkB;AAC3B","ignoreList":[]}
@@ -23,26 +23,26 @@ const BusyTonePlayer = () => {
23
23
  const isCallCreatedByMe = event.call.created_by.id === client.state.connectedUser?.id;
24
24
  const isCalleeBusy = isCallCreatedByMe && event.reason === 'busy';
25
25
  let busyToneTimeout;
26
- const logger = (0, _videoClient.getLogger)(['RejectCallWhenBusy']);
26
+ const logger = _videoClient.videoLoggerSystem.getLogger('RejectCallWhenBusy');
27
27
  if (isCalleeBusy) {
28
28
  if (busyToneTimeout) {
29
29
  clearTimeout(busyToneTimeout);
30
30
  busyToneTimeout = undefined;
31
31
  }
32
- logger('info', `Playing busy tone for call rejection for call cid: ${event.call.cid}`);
32
+ logger.info(`Playing busy tone for call rejection for call cid: ${event.call.cid}`);
33
33
  _utils.StreamVideoRN.playBusyTone().then(() => {
34
34
  busyToneTimeout = setTimeout(() => {
35
35
  _utils.StreamVideoRN.stopBusyTone().then(() => {
36
- logger('info', `Stopped busy tone for call rejection for call cid: ${event.call.cid}`);
37
- }).catch(error => logger('error', 'stopBusyTone failed:', error));
36
+ logger.info(`Stopped busy tone for call rejection for call cid: ${event.call.cid}`);
37
+ }).catch(error => logger.error('stopBusyTone failed:', error));
38
38
  busyToneTimeout = undefined;
39
39
  }, BUSY_TONE_DURATION_IN_MS);
40
40
  }).catch(error => {
41
- logger('error', 'playBusyTone failed:', error);
41
+ logger.error('playBusyTone failed:', error);
42
42
  });
43
43
  }
44
44
  return () => {
45
- _utils.StreamVideoRN.stopBusyTone().catch(err => logger('error', 'stopBusyTone on cleanup failed:', err));
45
+ _utils.StreamVideoRN.stopBusyTone().catch(err => logger.error('stopBusyTone on cleanup failed:', err));
46
46
  clearTimeout(busyToneTimeout);
47
47
  unsubscribe();
48
48
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_videoReactBindings","_utils","_videoClient","BUSY_TONE_DURATION_IN_MS","BusyTonePlayer","client","useStreamVideoClient","useEffect","unsubscribe","on","event","isCallCreatedByMe","call","created_by","id","state","connectedUser","isCalleeBusy","reason","busyToneTimeout","logger","getLogger","clearTimeout","undefined","cid","StreamVideoRN","playBusyTone","then","setTimeout","stopBusyTone","catch","error","err","_default","exports","default"],"sourceRoot":"../../../src","sources":["providers/BusyTonePlayer.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAEA,MAAMI,wBAAwB,GAAG,IAAI;;AAErC;AACA;AACA;AACA,MAAMC,cAAc,GAAGA,CAAA,KAAM;EAC3B,MAAMC,MAAM,GAAG,IAAAC,wCAAoB,EAAC,CAAC;EAErC,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAI,CAACF,MAAM,EAAE;MACX;IACF;IAEA,MAAMG,WAAW,GAAGH,MAAM,CAACI,EAAE,CAAC,eAAe,EAAE,MAAOC,KAAK,IAAK;MAC9D,MAAMC,iBAAiB,GACrBD,KAAK,CAACE,IAAI,CAACC,UAAU,CAACC,EAAE,KAAKT,MAAM,CAACU,KAAK,CAACC,aAAa,EAAEF,EAAE;MAC7D,MAAMG,YAAY,GAAGN,iBAAiB,IAAID,KAAK,CAACQ,MAAM,KAAK,MAAM;MAEjE,IAAIC,eAA0D;MAE9D,MAAMC,MAAM,GAAG,IAAAC,sBAAS,EAAC,CAAC,oBAAoB,CAAC,CAAC;MAEhD,IAAIJ,YAAY,EAAE;QAChB,IAAIE,eAAe,EAAE;UACnBG,YAAY,CAACH,eAAe,CAAC;UAC7BA,eAAe,GAAGI,SAAS;QAC7B;QACAH,MAAM,CACJ,MAAM,EACN,sDAAsDV,KAAK,CAACE,IAAI,CAACY,GAAG,EACtE,CAAC;QAEDC,oBAAa,CAACC,YAAY,CAAC,CAAC,CACzBC,IAAI,CAAC,MAAM;UACVR,eAAe,GAAGS,UAAU,CAAC,MAAM;YACjCH,oBAAa,CAACI,YAAY,CAAC,CAAC,CACzBF,IAAI,CAAC,MAAM;cACVP,MAAM,CACJ,MAAM,EACN,sDAAsDV,KAAK,CAACE,IAAI,CAACY,GAAG,EACtE,CAAC;YACH,CAAC,CAAC,CACDM,KAAK,CAAEC,KAAK,IACXX,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAEW,KAAK,CAC/C,CAAC;YACHZ,eAAe,GAAGI,SAAS;UAC7B,CAAC,EAAEpB,wBAAwB,CAAC;QAC9B,CAAC,CAAC,CACD2B,KAAK,CAAEC,KAAK,IAAK;UAChBX,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAEW,KAAK,CAAC;QAChD,CAAC,CAAC;MACN;MACA,OAAO,MAAM;QACXN,oBAAa,CAACI,YAAY,CAAC,CAAC,CAACC,KAAK,CAAEE,GAAG,IACrCZ,MAAM,CAAC,OAAO,EAAE,iCAAiC,EAAEY,GAAG,CACxD,CAAC;QACDV,YAAY,CAACH,eAAe,CAAC;QAC7BX,WAAW,CAAC,CAAC;MACf,CAAC;IACH,CAAC,CAAC;EACJ,CAAC,EAAE,CAACH,MAAM,CAAC,CAAC;EAEZ,OAAO,IAAI;AACb,CAAC;AAAC,IAAA4B,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEa/B,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_videoReactBindings","_utils","_videoClient","BUSY_TONE_DURATION_IN_MS","BusyTonePlayer","client","useStreamVideoClient","useEffect","unsubscribe","on","event","isCallCreatedByMe","call","created_by","id","state","connectedUser","isCalleeBusy","reason","busyToneTimeout","logger","videoLoggerSystem","getLogger","clearTimeout","undefined","info","cid","StreamVideoRN","playBusyTone","then","setTimeout","stopBusyTone","catch","error","err","_default","exports","default"],"sourceRoot":"../../../src","sources":["providers/BusyTonePlayer.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,G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AC,CAAC;YAChEd,eAAe,GAAGK,SAAS;UAC7B,CAAC,EAAErB,wBAAwB,CAAC;QAC9B,CAAC,CAAC,CACD6B,KAAK,CAAEC,KAAK,IAAK;UAChBb,MAAM,CAACa,KAAK,CAAC,sBAAsB,EAAEA,KAAK,CAAC;QAC7C,CAAC,CAAC;MACN;MACA,OAAO,MAAM;QACXN,oBAAa,CAACI,YAAY,CAAC,CAAC,CAACC,KAAK,CAAEE,GAAG,IACrCd,MAAM,CAACa,KAAK,CAAC,iCAAiC,EAAEC,GAAG,CACrD,CAAC;QACDX,YAAY,CAACJ,eAAe,CAAC;QAC7BX,WAAW,CAAC,CAAC;MACf,CAAC;IACH,CAAC,CAAC;EACJ,CAAC,EAAE,CAACH,MAAM,CAAC,CAAC;EAEZ,OAAO,IAAI;AACb,CAAC;AAAC,IAAA8B,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEajC,cAAc","ignoreList":[]}
@@ -48,9 +48,9 @@ const NoiseCancellationProvider = props => {
48
48
  if (!call || !isSupported) return;
49
49
  const ncInstance = _lib.NoiseCancellationWrapper.getInstance();
50
50
  const unsubscribe = ncInstance.on('change', v => setIsEnabled(v));
51
- call.microphone.enableNoiseCancellation(ncInstance).catch(err => (0, _videoClient.getLogger)(['NoiseCancellationProvider'])('error', `Can't initialize noise suppression`, err));
51
+ call.microphone.enableNoiseCancellation(ncInstance).catch(err => _videoClient.videoLoggerSystem.getLogger('NoiseCancellationProvider').error(`Can't initialize noise suppression`, err));
52
52
  return () => {
53
- call.microphone.disableNoiseCancellation().catch(err => (0, _videoClient.getLogger)(['NoiseCancellationProvider'])('error', `Can't disable noise suppression`, err));
53
+ call.microphone.disableNoiseCancellation().catch(err => _videoClient.videoLoggerSystem.getLogger('NoiseCancellationProvider').error(`Can't disable noise suppression`, err));
54
54
  unsubscribe();
55
55
  };
56
56
  }, [call, isSupported]);
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_videoClient","_videoReactBindings","_lib","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NoiseCancellationContext","createContext","useNoiseCancellation","context","useContext","Error","exports","NoiseCancellationProvider","props","useCall","deviceSupportsAdvancedAudioProcessing","setDeviceSupportsAdvancedAudioProcessing","useState","useCallSettings","useHasPermissions","useCallStateHooks","settings","noiseCancellationAllowed","audio","noise_cancellation","mode","NoiseCancellationSettingsModeEnum","DISABLED","hasCapability","OwnCapability","ENABLE_NOISE_CANCELLATION","isEnabled","setIsEnabled","useEffect","noiseCancellationNativeLib","getNoiseCancellationLibThrowIfNotInstalled","then","result","isSupported","ncInstance","NoiseCancellationWrapper","getInstance","unsubscribe","on","v","microphone","enableNoiseCancellation","catch","err","getLogger","disableNoiseCancellation","createElement","Provider","value","setEnabled","enabledOrSetter","enable","disable","children"],"sourceRoot":"../../../../src","sources":["providers/NoiseCancellation/NoiseCancellationProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,IAAA,GAAAH,OAAA;AAGe,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,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,EACjCD,GACF,CACF,CAAC;MACHN,WAAW,CAAC,CAAC;IACf,CAAC;EACH,CAAC,EAAE,CAACzC,IAAI,EAAEqC,WAAW,CAAC,CAAC;EAEvB,oBACE1D,MAAA,CAAAgB,OAAA,CAAAuD,aAAA,CAAC9C,wBAAwB,CAAC+C,QAAQ;IAChCC,KAAK,EAAE;MACLtC,qCAAqC;MACrCuB,WAAW;MACXP,SAAS;MACTuB,UAAU,EAAGC,eAAe,IAAK;QAC/B,MAAMhB,UAAU,GAAGC,6BAAwB,CAACC,WAAW,CAAC,CAAC;QACzD,MAAMe,MAAM,GACV,OAAOD,eAAe,KAAK,UAAU,GACjCA,eAAe,CAACxB,SAAS,CAAC,GAC1BwB,eAAe;QACrB,IAAIC,MAAM,EAAE;UACVjB,UAAU,CAACiB,MAAM,CAAC,CAAC;QACrB,CAAC,MAAM;UACLjB,UAAU,CAACkB,OAAO,CAAC,CAAC;QACtB;MACF;IACF;EAAE,GAED5C,KAAK,CAAC6C,QAC0B,CAAC;AAExC,CAAC;AAAC/C,OAAA,CAAAC,yBAAA,GAAAA,yBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_videoClient","_videoReactBindings","_lib","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NoiseCancellationContext","createContext","useNoiseCancellation","context","useContext","Error","exports","NoiseCancellationProvider","props","useCall","deviceSupportsAdvancedAudioProcessing","setDeviceSupportsAdvancedAudioProcessing","useState","useCallSettings","useHasPermissions","useCallStateHooks","settings","noiseCancellationAllowed","audio","noise_cancellation","mode","NoiseCancellationSettingsModeEnum","DISABLED","hasCapability","OwnCapability","ENABLE_NOISE_CANCELLATION","isEnabled","setIsEnabled","useEffect","noiseCancellationNativeLib","getNoiseCancellationLibThrowIfNotInstalled","then","result","isSupported","ncInstance","NoiseCancellationWrapper","getInstance","unsubscribe","on","v","microphone","enableNoiseCancellation","catch","err","videoLoggerSystem","getLogger","error","disableNoiseCancellation","createElement","Provider","value","setEnabled","enabledOrSetter","enable","disable","children"],"sourceRoot":"../../../../src","sources":["providers/NoiseCancellation/NoiseCancellationProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,IAAA,GAAAH,OAAA;AAGe,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EA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AAM,EAAE;UACVnB,UAAU,CAACmB,MAAM,CAAC,CAAC;QACrB,CAAC,MAAM;UACLnB,UAAU,CAACoB,OAAO,CAAC,CAAC;QACtB;MACF;IACF;EAAE,GAED9C,KAAK,CAAC+C,QAC0B,CAAC;AAExC,CAAC;AAACjD,OAAA,CAAAC,yBAAA,GAAAA,yBAAA","ignoreList":[]}
@@ -27,13 +27,13 @@ const AppStateListener = () => {
27
27
  return;
28
28
  }
29
29
  const disablePiP = _videoClient.RxUtils.getCurrentValue(_rxSubjects.disablePiPMode$);
30
- const logger = (0, _videoClient.getLogger)(['AppStateListener']);
30
+ const logger = _videoClient.videoLoggerSystem.getLogger('AppStateListener');
31
31
  const initialPipMode = !disablePiP && _reactNative.AppState.currentState === 'background';
32
32
  _rxSubjects.isInPiPMode$.next(initialPipMode);
33
- logger('debug', 'Initial PiP mode on mount set to ', initialPipMode);
33
+ logger.debug('Initial PiP mode on mount set to ', initialPipMode);
34
34
  _reactNative.NativeModules?.StreamVideoReactNative?.isInPiPMode().then(isInPiP => {
35
35
  _rxSubjects.isInPiPMode$.next(!!isInPiP);
36
- logger('debug', 'Initial PiP mode on mount (after asking native module) set to ', !!isInPiP);
36
+ logger.debug('Initial PiP mode on mount (after asking native module) set to ', !!isInPiP);
37
37
  });
38
38
  const eventEmitter = new _reactNative.NativeEventEmitter(_reactNative.NativeModules.StreamVideoReactNative);
39
39
  const subscriptionPiPChange = eventEmitter.addListener(PIP_CHANGE_EVENT, isInPiPMode => {
@@ -48,7 +48,7 @@ const AppStateListener = () => {
48
48
  // we dont check for inactive states
49
49
  // ref: https://www.reddit.com/r/reactnative/comments/15kib42/appstate_behavior_in_ios_when_swiping_down_to/
50
50
  const subscription = _reactNative.AppState.addEventListener('change', nextAppState => {
51
- const logger = (0, _videoClient.getLogger)(['AppStateListener']);
51
+ const logger = _videoClient.videoLoggerSystem.getLogger('AppStateListener');
52
52
  if (appState.current.match(/background/) && nextAppState === 'active') {
53
53
  if (call?.camera?.state.status === 'enabled') {
54
54
  // Android: when device is locked and resumed, the status isnt made disabled but stays enabled
@@ -57,12 +57,12 @@ const AppStateListener = () => {
57
57
  call?.camera?.disable(true).then(() => {
58
58
  call?.camera?.enable();
59
59
  });
60
- logger('debug', 'Disable and reenable camera as app came to foreground');
60
+ logger.debug('Disable and reenable camera as app came to foreground');
61
61
  } else {
62
62
  if (cameraDisabledByAppState.current) {
63
63
  call?.camera?.resume();
64
64
  cameraDisabledByAppState.current = false;
65
- logger('debug', 'Resume camera as app came to foreground');
65
+ logger.debug('Resume camera as app came to foreground');
66
66
  }
67
67
  }
68
68
  appState.current = nextAppState;
@@ -71,7 +71,7 @@ const AppStateListener = () => {
71
71
  if (call?.camera?.state.status === 'enabled') {
72
72
  cameraDisabledByAppState.current = true;
73
73
  call?.camera?.disable();
74
- logger('debug', 'Camera disabled by app going to background');
74
+ logger.debug('Camera disabled by app going to background');
75
75
  }
76
76
  };
77
77
  if (_reactNative.Platform.OS === 'android') {
@@ -1 +1 @@
1
- {"version":3,"names":["_videoReactBindings","require","_react","_reactNative","_shouldDisableIOSLocalVideoOnBackground","_rxSubjects","_videoClient","PIP_CHANGE_EVENT","isAndroid8OrAbove","Platform","OS","Version","AppStateListener","call","useCall","appState","useRef","AppState","currentState","cameraDisabledByAppState","useEffect","disablePiP","RxUtils","getCurrentValue","disablePiPMode$","logger","getLogger","initialPipMode","isInPiPMode$","next","NativeModules","StreamVideoReactNative","isInPiPMode","then","isInPiP","eventEmitter","NativeEventEmitter","subscriptionPiPChange","addListener","remove","subscription","addEventListener","nextAppState","current","match","camera","state","status","disable","enable","resume","disableCameraIfNeeded","shouldDisableIOSLocalVideoOnBackgroundRef","exports"],"sourceRoot":"../../../../src","sources":["providers/StreamCall/AppStateListener.tsx"],"mappings":";;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAMA,IAAAG,uCAAA,GAAAH,OAAA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AAE;YAC5C5B,wBAAwB,CAACwB,OAAO,GAAG,IAAI;YACvC9B,IAAI,EAAEgC,MAAM,EAAEG,OAAO,CAAC,CAAC;YACvBvB,MAAM,CAAC,OAAO,EAAE,4CAA4C,CAAC;UAC/D;QACF,CAAC;QACD,IAAIhB,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;UAC7B;UACA;UACA,IAAIF,iBAAiB,EAAE;YACrB;YACA,MAAMa,UAAU,GAAGC,oBAAO,CAACC,eAAe,CAACC,2BAAe,CAAC;YAC3DI,wBAAY,CAACC,IAAI,CAAC,CAACR,UAAU,CAAC;YAC9B;YACAS,0BAAa,EAAEC,sBAAsB,EAAEC,WAAW,CAAC,CAAC,CAACC,IAAI,CACtDC,OAAmC,IAAK;cACvCN,wBAAY,CAACC,IAAI,CAAC,CAAC,CAACK,OAAO,CAAC;cAC5B,IAAI,CAACA,OAAO,EAAE;gBACZ,IAAIjB,qBAAQ,CAACC,YAAY,KAAK,QAAQ,EAAE;kBACtC;kBACA;kBACA;kBACA;gBACF;gBACAiC,qBAAqB,CAAC,CAAC;cACzB;YACF,CACF,CAAC;UACH,CAAC,MAAM;YACLA,qBAAqB,CAAC,CAAC;UACzB;QACF,CAAC,MAAM;UACL;UACA,IAAIC,iFAAyC,CAACT,OAAO,EAAE;YACrDQ,qBAAqB,CAAC,CAAC;UACzB;QACF;QACApC,QAAQ,CAAC4B,OAAO,GAAGD,YAAY;MACjC;IACF,CAAC,CAAC;IAEF,OAAO,MAAM;MACXF,YAAY,CAACD,MAAM,CAAC,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAAC1B,IAAI,CAAC,CAAC;EAEV,OAAO,IAAI;AACb,CAAC;AAACwC,OAAA,CAAAzC,gBAAA,GAAAA,gBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_videoReactBindings","require","_react","_reactNative","_shouldDisableIOSLocalVideoOnBackground","_rxSubjects","_videoClient","PIP_CHANGE_EVENT","isAndroid8OrAbove","Platform","OS","Version","AppStateListener","call","useCall","appState","useRef","AppState","currentState","cameraDisabledByAppState","useEffect","disablePiP","RxUtils","getCurrentValue","disablePiPMode$","logger","videoLoggerSystem","getLogger","initialPipMode","isInPiPMode$","next","debug","NativeModules","StreamVideoReactNative","isInPiPMode","then","isInPiP","eventEmitter","NativeEventEmitter","subscriptionPiPChange","addListener","remove","subscription","addEventListener","nextAppState","current","match","camera","state","status","disable","enable","resume","disableCameraIfNeeded","shouldDisableIOSLocalVideoOnBackgroundRef","exports"],"sourceRoot":"../../../../src","sources":["providers/StreamCall/AppStateListener.tsx"],"mappings":";;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAMA,IAAAG,uCAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AAEA,MAAMM,gBAAgB,GAAG,yCAAyC;AAElE,MAAMC,iBAAiB,GAAGC,qBAAQ,CAACC,EAAE,KAAK,SAAS,IAAID,qBAAQ,CAACE,OAAO,IAAI,EAAE;;AAE7E;AACA;AACA;AACO,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;EACpC,MAAMC,IAAI,GAAG,IAAAC,2BAAO,EAAC,CAAC;EACtB,MAAMC,QAAQ,GAAG,IAAAC,aAAM,EAACC,qBAAQ,CAACC,YAAY,CAAC;EAC9C,MAAMC,wBAAwB,GAAG,IAAAH,aAAM,EAAU,KAAK,CAAC;;EAEvD;EACA,IAAAI,gBAAS,EAAC,MAAM;IACd,IAAI,CAACZ,iBAAiB,EAAE;MACtB;IACF;IAEA,MAAMa,UAAU,GAAGC,oBAAO,CAACC,eAAe,CAACC,2BAAe,CAAC;IAC3D,MAAMC,MAAM,GAAGC,8BAAiB,CAACC,SAAS,CAAC,kBAAkB,CAAC;IAC9D,MAAMC,cAAc,GAClB,CAACP,UAAU,IAAIJ,qBAAQ,CAACC,YAAY,KAA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,CAAC;UACzB;QACF,CAAC,MAAM;UACL;UACA,IAAIC,iFAAyC,CAACT,OAAO,EAAE;YACrDQ,qBAAqB,CAAC,CAAC;UACzB;QACF;QACAtC,QAAQ,CAAC8B,OAAO,GAAGD,YAAY;MACjC;IACF,CAAC,CAAC;IAEF,OAAO,MAAM;MACXF,YAAY,CAACD,MAAM,CAAC,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAAC5B,IAAI,CAAC,CAAC;EAEV,OAAO,IAAI;AACb,CAAC;AAAC0C,OAAA,CAAA3C,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getAndroidDefaultRingtoneUrl = getAndroidDefaultRingtoneUrl;
7
- var _videoClient = require("@stream-io/video-client");
8
7
  var _reactNative = require("react-native");
8
+ var _videoClient = require("@stream-io/video-client");
9
9
  async function getAndroidDefaultRingtoneUrl() {
10
10
  if (_reactNative.Platform.OS !== 'android') {
11
11
  return undefined;
@@ -14,8 +14,8 @@ async function getAndroidDefaultRingtoneUrl() {
14
14
  const url = await _reactNative.NativeModules.StreamVideoReactNative?.getDefaultRingtoneUrl();
15
15
  return url;
16
16
  } catch (e) {
17
- const logger = (0, _videoClient.getLogger)(['getAndroidDefaultRingtoneUrl']);
18
- logger('warn', 'Failed to get default ringtone from native module', e);
17
+ const logger = _videoClient.videoLoggerSystem.getLogger('getAndroidDefaultRingtoneUrl');
18
+ logger.warn('Failed to get default ringtone from native module', e);
19
19
  }
20
20
  return undefined;
21
21
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_videoClient","require","_reactNative","getAndroidDefaultRingtoneUrl","Platform","OS","undefined","url","NativeModules","StreamVideoReactNative","getDefaultRingtoneUrl","e","logger","getLogger"],"sourceRoot":"../../../src","sources":["utils/getAndroidDefaultRingtoneUrl.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEO,eAAeE,4BAA4BA,CAAA,EAEhD;EACA,IAAIC,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;IAC7B,OAAOC,SAAS;EAClB;EACA,IAAI;IACF,MAAMC,GAAG,GACP,MAAMC,0BAAa,CAACC,sBAAsB,EAAEC,qBAAqB,CAAC,CAAC;IACrE,OAAOH,GAAG;EACZ,CAAC,CAAC,OAAOI,CAAC,EAAE;IACV,MAAMC,MAAM,GAAG,IAAAC,sBAAS,EAAC,CAAC,8BAA8B,CAAC,CAAC;IAC1DD,MAAM,CAAC,MAAM,EAAE,mDAAmD,EAAED,CAAC,CAAC;EACxE;EAEA,OAAOL,SAAS;AAClB","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_videoClient","getAndroidDefaultRingtoneUrl","Platform","OS","undefined","url","NativeModules","StreamVideoReactNative","getDefaultRingtoneUrl","e","logger","videoLoggerSystem","getLogger","warn"],"sourceRoot":"../../../src","sources":["utils/getAndroidDefaultRingtoneUrl.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEO,eAAeE,4BAA4BA,CAAA,EAEhD;EACA,IAAIC,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;IAC7B,OAAOC,SAAS;EAClB;EACA,IAAI;IACF,MAAMC,GAAG,GACP,MAAMC,0BAAa,CAACC,sBAAsB,EAAEC,qBAAqB,CAAC,CAAC;IACrE,OAAOH,GAAG;EACZ,CAAC,CAAC,OAAOI,CAAC,EAAE;IACV,MAAMC,MAAM,GAAGC,8BAAiB,CAACC,SAAS,CAAC,8BAA8B,CAAC;IAC1EF,MAAM,CAACG,IAAI,CAAC,mDAAmD,EAAEJ,CAAC,CAAC;EACrE;EAEA,OAAOL,SAAS;AAClB","ignoreList":[]}
@@ -27,15 +27,15 @@ async function initAndroidPushToken(client, pushConfig, setUnsubscribeListener)
27
27
  if (_reactNative.Platform.OS !== 'android' || !pushConfig.android.pushProviderName) {
28
28
  return;
29
29
  }
30
- const logger = (0, _videoClient.getLogger)(['initAndroidPushToken']);
30
+ const logger = _videoClient.videoLoggerSystem.getLogger('initAndroidPushToken');
31
31
  const setDeviceToken = async token => {
32
32
  const userId = client.streamClient._user?.id ?? '';
33
33
  if (client.streamClient.anonymous) {
34
- logger('debug', 'Skipped sending firebase token for anonymous user');
34
+ logger.debug('Skipped sending firebase token for anonymous user');
35
35
  return;
36
36
  }
37
37
  if (lastFirebaseToken.token === token && lastFirebaseToken.userId === userId) {
38
- logger('debug', `Skipping setting the same token again for userId: ${userId} and token: ${token}`);
38
+ logger.debug(`Skipping setting the same token again for userId: ${userId} and token: ${token}`);
39
39
  return;
40
40
  }
41
41
  lastFirebaseToken = {
@@ -48,20 +48,20 @@ async function initAndroidPushToken(client, pushConfig, setUnsubscribeListener)
48
48
  userId: ''
49
49
  };
50
50
  try {
51
- logger('debug', `Logout removeDeviceToken: ${token}`);
51
+ logger.debug(`Logout removeDeviceToken: ${token}`);
52
52
  await client.removeDevice(token);
53
53
  } catch (err) {
54
- logger('warn', 'Failed to remove firebase token from stream', err);
54
+ logger.warn('Failed to remove firebase token from stream', err);
55
55
  }
56
56
  });
57
57
  const push_provider_name = pushConfig.android.pushProviderName;
58
- logger('debug', `sending firebase token: ${token} for userId: ${userId}`);
58
+ logger.debug(`sending firebase token: ${token} for userId: ${userId}`);
59
59
  await client.addDevice(token, 'firebase', push_provider_name);
60
60
  };
61
61
  if (pushConfig.isExpo) {
62
62
  const expoNotificationsLib = pushConfig.onTapNonRingingCallNotification ? (0, _libs.getExpoNotificationsLib)() : (0, _libs.getExpoNotificationsLibNoThrow)();
63
63
  if (expoNotificationsLib) {
64
- logger('debug', `setting expo notification token listeners`);
64
+ logger.debug(`setting expo notification token listeners`);
65
65
  const subscription = expoNotificationsLib.addPushTokenListener(devicePushToken => {
66
66
  setDeviceToken(devicePushToken.data);
67
67
  });
@@ -74,7 +74,7 @@ async function initAndroidPushToken(client, pushConfig, setUnsubscribeListener)
74
74
  // TODO: remove the incomingCallChannel check and find a better way once we have telecom integration for android
75
75
  const messaging = pushConfig.isExpo && !pushConfig.android.incomingCallChannel ? (0, _libs.getFirebaseMessagingLibNoThrow)(true) : (0, _libs.getFirebaseMessagingLib)();
76
76
  if (messaging) {
77
- logger('debug', `setting firebase token listeners`);
77
+ logger.debug(`setting firebase token listeners`);
78
78
  const unsubscribe = messaging().onTokenRefresh(refreshedToken => setDeviceToken(refreshedToken));
79
79
  setUnsubscribeListener(unsubscribe);
80
80
  const token = await messaging().getToken();
@@ -111,8 +111,8 @@ const firebaseDataHandler = async data => {
111
111
  const notifee = notifeeLib.default;
112
112
  const settings = await notifee.getNotificationSettings();
113
113
  if (settings.authorizationStatus !== 1) {
114
- const logger = (0, _videoClient.getLogger)(['firebaseDataHandler']);
115
- logger('debug', `Notification permission not granted, unable to post ${data.type} notifications`);
114
+ const logger = _videoClient.videoLoggerSystem.getLogger('firebaseDataHandler');
115
+ logger.debug(`Notification permission not granted, unable to post ${data.type} notifications`);
116
116
  return;
117
117
  }
118
118
  if (data.type === 'call.ring') {
@@ -136,14 +136,14 @@ const firebaseDataHandler = async data => {
136
136
  return new Promise(async () => {
137
137
  const client = await pushConfig.createStreamVideoClient();
138
138
  if (!client) {
139
- (0, _videoClient.getLogger)(['firebaseMessagingOnMessageHandler'])('debug', `Closing fg service as there is no client to create from push config`);
139
+ _videoClient.videoLoggerSystem.getLogger('firebaseMessagingOnMessageHandler').debug(`Closing fg service as there is no client to create from push config`);
140
140
  notifee.stopForegroundService();
141
141
  return;
142
142
  }
143
143
  const callFromPush = await client.onRingingCall(call_cid);
144
144
  let _shouldCallBeClosed = shouldCallBeClosed(callFromPush);
145
145
  if (_shouldCallBeClosed) {
146
- (0, _videoClient.getLogger)(['firebaseMessagingOnMessageHandler'])('debug', `Closing fg service callCid: ${call_cid} shouldCallBeClosed: ${_shouldCallBeClosed}`);
146
+ _videoClient.videoLoggerSystem.getLogger('firebaseMessagingOnMessageHandler').debug(`Closing fg service callCid: ${call_cid} shouldCallBeClosed: ${_shouldCallBeClosed}`);
147
147
  notifee.stopForegroundService();
148
148
  return;
149
149
  }
@@ -152,7 +152,7 @@ const firebaseDataHandler = async data => {
152
152
  const unsubscribe = callFromPush.on('all', event => {
153
153
  const _canListenToWS = canListenToWS();
154
154
  if (!_canListenToWS) {
155
- (0, _videoClient.getLogger)(['firebaseMessagingOnMessageHandler'])('debug', `Closing fg service from event callCid: ${call_cid} canListenToWS: ${_canListenToWS}`, {
155
+ _videoClient.videoLoggerSystem.getLogger('firebaseMessagingOnMessageHandler').debug(`Closing fg service from event callCid: ${call_cid} canListenToWS: ${_canListenToWS}`, {
156
156
  event
157
157
  });
158
158
  unsubscribeFunctions.forEach(fn => fn());
@@ -161,7 +161,7 @@ const firebaseDataHandler = async data => {
161
161
  }
162
162
  _shouldCallBeClosed = shouldCallBeClosed(callFromPush);
163
163
  if (_shouldCallBeClosed) {
164
- (0, _videoClient.getLogger)(['firebaseMessagingOnMessageHandler'])('debug', `Closing fg service from event callCid: ${call_cid} canListenToWS: ${_canListenToWS} shouldCallBeClosed: ${_shouldCallBeClosed}`, {
164
+ _videoClient.videoLoggerSystem.getLogger('firebaseMessagingOnMessageHandler').debug(`Closing fg service from event callCid: ${call_cid} canListenToWS: ${_canListenToWS} shouldCallBeClosed: ${_shouldCallBeClosed}`, {
165
165
  event
166
166
  });
167
167
  unsubscribeFunctions.forEach(fn => fn());
@@ -171,7 +171,7 @@ const firebaseDataHandler = async data => {
171
171
  // check if service needs to be closed if call was left
172
172
  const subscription = callFromPush.state.callingState$.subscribe(callingState => {
173
173
  if (callingState === _videoClient.CallingState.IDLE || callingState === _videoClient.CallingState.LEFT) {
174
- (0, _videoClient.getLogger)(['firebaseMessagingOnMessageHandler'])('debug', `Closing fg service from callingState callCid: ${call_cid} callingState: ${callingState}`);
174
+ _videoClient.videoLoggerSystem.getLogger('firebaseMessagingOnMessageHandler').debug(`Closing fg service from callingState callCid: ${call_cid} callingState: ${callingState}`);
175
175
  unsubscribeFunctions.forEach(fn => fn());
176
176
  notifee.stopForegroundService();
177
177
  }
@@ -186,8 +186,8 @@ const firebaseDataHandler = async data => {
186
186
  const incomingCallChannel = pushConfig.android.incomingCallChannel;
187
187
  const incomingCallNotificationTextGetters = pushConfig.android.incomingCallNotificationTextGetters;
188
188
  if (!incomingCallChannel || !incomingCallNotificationTextGetters) {
189
- const logger = (0, _videoClient.getLogger)(['firebaseMessagingOnMessageHandler']);
190
- logger('error', "Can't show incoming call notification as either or both incomingCallChannel and incomingCallNotificationTextGetters were not provided");
189
+ const logger = _videoClient.videoLoggerSystem.getLogger('firebaseMessagingOnMessageHandler');
190
+ logger.error("Can't show incoming call notification as either or both incomingCallChannel and incomingCallNotificationTextGetters were not provided");
191
191
  return;
192
192
  }
193
193
  /*
@@ -208,7 +208,7 @@ const firebaseDataHandler = async data => {
208
208
  const createdUserName = data.created_by_display_name;
209
209
  const title = getTitle(createdUserName);
210
210
  const body = getBody(createdUserName);
211
- (0, _videoClient.getLogger)(['firebaseMessagingOnMessageHandler'])('debug', `Displaying incoming call notification with callCid: ${call_cid} title: ${title} body: ${body} asForegroundService: ${asForegroundService}`);
211
+ _videoClient.videoLoggerSystem.getLogger('firebaseMessagingOnMessageHandler').debug(`Displaying incoming call notification with callCid: ${call_cid} title: ${title} body: ${body} asForegroundService: ${asForegroundService}`);
212
212
  const channelId = incomingCallChannel.id;
213
213
  await notifee.displayNotification({
214
214
  id: call_cid,
@@ -262,7 +262,7 @@ const firebaseDataHandler = async data => {
262
262
  }
263
263
  const callFromPush = await client.onRingingCall(call_cid);
264
264
  if (shouldCallBeClosed(callFromPush)) {
265
- (0, _videoClient.getLogger)(['firebaseMessagingOnMessageHandler'])('debug', `Removing incoming call notification immediately with callCid: ${call_cid} as it should be closed`);
265
+ _videoClient.videoLoggerSystem.getLogger('firebaseMessagingOnMessageHandler').debug(`Removing incoming call notification immediately with callCid: ${call_cid} as it should be closed`);
266
266
  notifee.cancelDisplayedNotification(call_cid);
267
267
  }
268
268
  } else {
@@ -270,8 +270,8 @@ const firebaseDataHandler = async data => {
270
270
  const callChannel = pushConfig.android.callChannel;
271
271
  const callNotificationTextGetters = pushConfig.android.callNotificationTextGetters;
272
272
  if (!callChannel || !callNotificationTextGetters) {
273
- const logger = (0, _videoClient.getLogger)(['firebaseMessagingOnMessageHandler']);
274
- logger('debug', "Can't show call notification as either or both callChannel and callNotificationTextGetters is not provided");
273
+ const logger = _videoClient.videoLoggerSystem.getLogger('firebaseMessagingOnMessageHandler');
274
+ logger.debug("Can't show call notification as either or both callChannel and callNotificationTextGetters is not provided");
275
275
  return;
276
276
  }
277
277
  await notifee.createChannel(callChannel);
@@ -285,7 +285,7 @@ const firebaseDataHandler = async data => {
285
285
  const type = data.type;
286
286
  const title = getTitle(type, createdUserName);
287
287
  const body = getBody(type, createdUserName);
288
- (0, _videoClient.getLogger)(['firebaseMessagingOnMessageHandler'])('debug', `Displaying NonRingingPushEvent ${type} notification with title: ${title} body: ${body}`);
288
+ _videoClient.videoLoggerSystem.getLogger('firebaseMessagingOnMessageHandler').debug(`Displaying NonRingingPushEvent ${type} notification with title: ${title} body: ${body}`);
289
289
  await notifee.displayNotification({
290
290
  title: getTitle(type, createdUserName),
291
291
  body: getBody(type, createdUserName),
@@ -346,31 +346,31 @@ const onAndroidNotifeeEvent = async ({
346
346
  // Check if we need to accept the call
347
347
  const mustAccept = type === notifeeLib.EventType.ACTION_PRESS && pressAction?.id === ACCEPT_CALL_ACTION_ID;
348
348
  if (mustAccept || mustDecline || type === notifeeLib.EventType.ACTION_PRESS) {
349
- (0, _videoClient.getLogger)(['onAndroidNotifeeEvent'])('debug', `clearPushWSEventSubscriptions for callCId: ${call_cid} mustAccept: ${mustAccept} mustDecline: ${mustDecline}`);
349
+ _videoClient.videoLoggerSystem.getLogger('onAndroidNotifeeEvent').debug(`clearPushWSEventSubscriptions for callCId: ${call_cid} mustAccept: ${mustAccept} mustDecline: ${mustDecline}`);
350
350
  (0, _utils.clearPushWSEventSubscriptions)(call_cid);
351
351
  notifee.stopForegroundService();
352
352
  }
353
353
  if (mustAccept) {
354
- (0, _videoClient.getLogger)(['onAndroidNotifeeEvent'])('debug', `pushAcceptedIncomingCallCId$ added with callCId: ${call_cid}`);
354
+ _videoClient.videoLoggerSystem.getLogger('onAndroidNotifeeEvent').debug(`pushAcceptedIncomingCallCId$ added with callCId: ${call_cid}`);
355
355
  _rxSubjects.pushAcceptedIncomingCallCId$.next(call_cid);
356
356
  // NOTE: accept will be handled by the app with rxjs observers as the app will go to foreground always
357
357
  } else if (mustDecline) {
358
- (0, _videoClient.getLogger)(['onAndroidNotifeeEvent'])('debug', `pushRejectedIncomingCallCId$ added with callCId: ${call_cid}`);
358
+ _videoClient.videoLoggerSystem.getLogger('onAndroidNotifeeEvent').debug(`pushRejectedIncomingCallCId$ added with callCId: ${call_cid}`);
359
359
  _rxSubjects.pushRejectedIncomingCallCId$.next(call_cid);
360
360
  if (hasObservers) {
361
361
  // if we had observers we can return here as the observers will handle the call as the app is in the foreground state
362
- (0, _videoClient.getLogger)(['onAndroidNotifeeEvent'])('debug', `Skipped processCallFromPushInBackground for Declining call with callCId: ${call_cid} as the app is in the foreground state`);
362
+ _videoClient.videoLoggerSystem.getLogger('onAndroidNotifeeEvent').debug(`Skipped processCallFromPushInBackground for Declining call with callCId: ${call_cid} as the app is in the foreground state`);
363
363
  return;
364
364
  }
365
- (0, _videoClient.getLogger)(['onAndroidNotifeeEvent'])('debug', `start processCallFromPushInBackground - Declining call with callCId: ${call_cid}`);
365
+ _videoClient.videoLoggerSystem.getLogger('onAndroidNotifeeEvent').debug(`start processCallFromPushInBackground - Declining call with callCId: ${call_cid}`);
366
366
  await (0, _utils.processCallFromPushInBackground)(pushConfig, call_cid, 'decline');
367
367
  } else {
368
368
  if (type === notifeeLib.EventType.PRESS) {
369
- (0, _videoClient.getLogger)(['onAndroidNotifeeEvent'])('debug', `pushTappedIncomingCallCId$ added with callCId: ${call_cid}`);
369
+ _videoClient.videoLoggerSystem.getLogger('onAndroidNotifeeEvent').debug(`pushTappedIncomingCallCId$ added with callCId: ${call_cid}`);
370
370
  _rxSubjects.pushTappedIncomingCallCId$.next(call_cid);
371
371
  // pressed state will be handled by the app with rxjs observers as the app will go to foreground always
372
372
  } else if (isBackground && type === notifeeLib.EventType.DELIVERED) {
373
- (0, _videoClient.getLogger)(['onAndroidNotifeeEvent'])('debug', `pushAndroidBackgroundDeliveredIncomingCallCId$ added with callCId: ${call_cid}`);
373
+ _videoClient.videoLoggerSystem.getLogger('onAndroidNotifeeEvent').debug(`pushAndroidBackgroundDeliveredIncomingCallCId$ added with callCId: ${call_cid}`);
374
374
  _rxSubjects.pushAndroidBackgroundDeliveredIncomingCallCId$.next(call_cid);
375
375
  // background delivered state will be handled by the app with rxjs observers as processing needs to happen only when app is opened
376
376
  }
@@ -378,7 +378,7 @@ const onAndroidNotifeeEvent = async ({
378
378
  } else {
379
379
  const notifeeLib = (0, _libs.getNotifeeLibThrowIfNotInstalledForPush)();
380
380
  if (type === notifeeLib.EventType.PRESS) {
381
- (0, _videoClient.getLogger)(['onAndroidNotifeeEvent'])('debug', `onTapNonRingingCallNotification with callCId: ${call_cid}`);
381
+ _videoClient.videoLoggerSystem.getLogger('onAndroidNotifeeEvent').debug(`onTapNonRingingCallNotification with callCId: ${call_cid}`);
382
382
  pushConfig.onTapNonRingingCallNotification?.(call_cid, data.type);
383
383
  }
384
384
  }