@stream-io/video-react-native-sdk 1.2.14 → 1.3.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 (127) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js +43 -6
  3. package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -1
  4. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +1 -1
  5. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +2 -2
  6. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +2 -7
  7. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +1 -1
  8. package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js +3 -3
  9. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +1 -0
  10. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  11. package/dist/commonjs/providers/StreamCall.js +1 -1
  12. package/dist/commonjs/utils/StreamVideoRN/index.js +5 -6
  13. package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
  14. package/dist/commonjs/utils/index.js +12 -0
  15. package/dist/commonjs/utils/index.js.map +1 -1
  16. package/dist/commonjs/utils/push/android.js +23 -79
  17. package/dist/commonjs/utils/push/android.js.map +1 -1
  18. package/dist/commonjs/utils/push/index.js +39 -0
  19. package/dist/commonjs/utils/push/index.js.map +1 -0
  20. package/dist/commonjs/utils/push/internal/rxSubjects.js.map +1 -0
  21. package/dist/commonjs/utils/push/internal/utils.js +157 -0
  22. package/dist/commonjs/utils/push/internal/utils.js.map +1 -0
  23. package/dist/commonjs/utils/push/ios.js +43 -84
  24. package/dist/commonjs/utils/push/ios.js.map +1 -1
  25. package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -1
  26. package/dist/commonjs/utils/push/libs/index.js +0 -11
  27. package/dist/commonjs/utils/push/libs/index.js.map +1 -1
  28. package/dist/commonjs/utils/push/libs/iosPushNotification.js.map +1 -1
  29. package/dist/commonjs/utils/push/utils.js +29 -150
  30. package/dist/commonjs/utils/push/utils.js.map +1 -1
  31. package/dist/commonjs/version.js +1 -1
  32. package/dist/commonjs/version.js.map +1 -1
  33. package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js +41 -4
  34. package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -1
  35. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +1 -1
  36. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
  37. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +2 -2
  38. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  39. package/dist/module/hooks/push/useProcessPushCallEffect.js +2 -7
  40. package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
  41. package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js +3 -3
  42. package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
  43. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +1 -0
  44. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  45. package/dist/module/providers/StreamCall.js +1 -1
  46. package/dist/module/providers/StreamCall.js.map +1 -1
  47. package/dist/module/utils/StreamVideoRN/index.js +5 -6
  48. package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
  49. package/dist/module/utils/index.js +1 -0
  50. package/dist/module/utils/index.js.map +1 -1
  51. package/dist/module/utils/push/android.js +20 -79
  52. package/dist/module/utils/push/android.js.map +1 -1
  53. package/dist/module/utils/push/index.js +4 -0
  54. package/dist/module/utils/push/index.js.map +1 -0
  55. package/dist/module/utils/push/internal/rxSubjects.js.map +1 -0
  56. package/dist/module/utils/push/internal/utils.js +146 -0
  57. package/dist/module/utils/push/internal/utils.js.map +1 -0
  58. package/dist/module/utils/push/ios.js +40 -81
  59. package/dist/module/utils/push/ios.js.map +1 -1
  60. package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
  61. package/dist/module/utils/push/libs/index.js +0 -1
  62. package/dist/module/utils/push/libs/index.js.map +1 -1
  63. package/dist/module/utils/push/libs/iosPushNotification.js.map +1 -1
  64. package/dist/module/utils/push/utils.js +25 -144
  65. package/dist/module/utils/push/utils.js.map +1 -1
  66. package/dist/module/version.js +1 -1
  67. package/dist/module/version.js.map +1 -1
  68. package/dist/typescript/hooks/push/useIosCallKeepEventsSetupEffect.d.ts.map +1 -1
  69. package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -1
  70. package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
  71. package/dist/typescript/utils/StreamVideoRN/types.d.ts +6 -4
  72. package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
  73. package/dist/typescript/utils/index.d.ts +1 -0
  74. package/dist/typescript/utils/index.d.ts.map +1 -1
  75. package/dist/typescript/utils/push/android.d.ts +12 -2
  76. package/dist/typescript/utils/push/android.d.ts.map +1 -1
  77. package/dist/typescript/utils/push/index.d.ts +4 -0
  78. package/dist/typescript/utils/push/index.d.ts.map +1 -0
  79. package/dist/typescript/utils/push/{rxSubjects.d.ts → internal/rxSubjects.d.ts} +1 -1
  80. package/dist/typescript/utils/push/internal/rxSubjects.d.ts.map +1 -0
  81. package/dist/typescript/utils/push/internal/utils.d.ts +43 -0
  82. package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -0
  83. package/dist/typescript/utils/push/ios.d.ts +8 -3
  84. package/dist/typescript/utils/push/ios.d.ts.map +1 -1
  85. package/dist/typescript/utils/push/libs/expoNotifications.d.ts +2 -0
  86. package/dist/typescript/utils/push/libs/expoNotifications.d.ts.map +1 -1
  87. package/dist/typescript/utils/push/libs/index.d.ts +0 -1
  88. package/dist/typescript/utils/push/libs/index.d.ts.map +1 -1
  89. package/dist/typescript/utils/push/libs/iosPushNotification.d.ts +2 -0
  90. package/dist/typescript/utils/push/libs/iosPushNotification.d.ts.map +1 -1
  91. package/dist/typescript/utils/push/utils.d.ts +14 -42
  92. package/dist/typescript/utils/push/utils.d.ts.map +1 -1
  93. package/dist/typescript/version.d.ts +1 -1
  94. package/dist/typescript/version.d.ts.map +1 -1
  95. package/package.json +6 -11
  96. package/src/hooks/push/useIosCallKeepEventsSetupEffect.ts +62 -6
  97. package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +1 -1
  98. package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +2 -2
  99. package/src/hooks/push/useProcessPushCallEffect.ts +2 -7
  100. package/src/hooks/push/useProcessPushNonRingingCallEffect.ts +3 -3
  101. package/src/hooks/useAndroidKeepCallAliveEffect.ts +1 -0
  102. package/src/providers/StreamCall.tsx +1 -1
  103. package/src/utils/StreamVideoRN/index.ts +11 -6
  104. package/src/utils/StreamVideoRN/types.ts +6 -4
  105. package/src/utils/index.ts +1 -0
  106. package/src/utils/push/android.ts +28 -99
  107. package/src/utils/push/index.ts +3 -0
  108. package/src/utils/push/{rxSubjects.ts → internal/rxSubjects.ts} +1 -1
  109. package/src/utils/push/internal/utils.ts +178 -0
  110. package/src/utils/push/ios.ts +49 -115
  111. package/src/utils/push/libs/expoNotifications.ts +4 -0
  112. package/src/utils/push/libs/index.ts +0 -1
  113. package/src/utils/push/libs/iosPushNotification.ts +4 -0
  114. package/src/utils/push/utils.ts +44 -175
  115. package/src/version.ts +1 -1
  116. package/dist/commonjs/utils/push/libs/expoTaskManager.js +0 -17
  117. package/dist/commonjs/utils/push/libs/expoTaskManager.js.map +0 -1
  118. package/dist/commonjs/utils/push/rxSubjects.js.map +0 -1
  119. package/dist/module/utils/push/libs/expoTaskManager.js +0 -11
  120. package/dist/module/utils/push/libs/expoTaskManager.js.map +0 -1
  121. package/dist/module/utils/push/rxSubjects.js.map +0 -1
  122. package/dist/typescript/utils/push/libs/expoTaskManager.d.ts +0 -3
  123. package/dist/typescript/utils/push/libs/expoTaskManager.d.ts.map +0 -1
  124. package/dist/typescript/utils/push/rxSubjects.d.ts.map +0 -1
  125. package/src/utils/push/libs/expoTaskManager.ts +0 -16
  126. /package/dist/commonjs/utils/push/{rxSubjects.js → internal/rxSubjects.js} +0 -0
  127. /package/dist/module/utils/push/{rxSubjects.js → internal/rxSubjects.js} +0 -0
@@ -1,178 +1,47 @@
1
- import {
2
- Call,
3
- getLogger,
4
- RxUtils,
5
- StreamVideoClient,
6
- } from '@stream-io/video-client';
7
- import type {
8
- NonRingingPushEvent,
9
- StreamVideoConfig,
10
- } from '../StreamVideoRN/types';
11
- import { onNewCallNotification } from '../internal/newNotificationCallbacks';
12
- import { pushUnsubscriptionCallbacks$ } from './rxSubjects';
13
-
14
- type PushConfig = NonNullable<StreamVideoConfig['push']>;
15
-
16
- type CanAddPushWSSubscriptionsRef = { current: boolean };
17
-
18
- /**
19
- * This function is used to check if the call should be ended based on the push notification
20
- * Useful for callkeep management to end the call if necessary (with reportEndCallWithUUID)
21
- */
22
- export const shouldCallBeEnded = (
23
- callFromPush: Call,
24
- created_by_id: string | undefined,
25
- receiver_id: string | undefined
26
- ) => {
27
- /* callkeep reasons for ending a call
28
- FAILED: 1,
29
- REMOTE_ENDED: 2,
30
- UNANSWERED: 3,
31
- ANSWERED_ELSEWHERE: 4,
32
- DECLINED_ELSEWHERE: 5,
33
- MISSED: 6
34
- */
35
- const callSession = callFromPush.state.session;
36
- const rejected_by = callSession?.rejected_by;
37
- const accepted_by = callSession?.accepted_by;
38
- let mustEndCall = false;
39
- let callkeepReason = 0;
40
- if (created_by_id && rejected_by) {
41
- if (rejected_by[created_by_id]) {
42
- // call was cancelled by the caller
43
- mustEndCall = true;
44
- callkeepReason = 2;
45
- }
46
- } else if (receiver_id && rejected_by) {
47
- if (rejected_by[receiver_id]) {
48
- // call was rejected by the receiver in some other device
49
- mustEndCall = true;
50
- callkeepReason = 5;
51
- }
52
- } else if (receiver_id && accepted_by) {
53
- if (accepted_by[receiver_id]) {
54
- // call was accepted by the receiver in some other device
55
- mustEndCall = true;
56
- callkeepReason = 4;
1
+ import { Event } from '@notifee/react-native';
2
+ import { FirebaseMessagingTypes } from './libs/firebaseMessaging';
3
+ import { ExpoNotification } from './libs/expoNotifications';
4
+ import { NonRingingPushEvent } from '../StreamVideoRN/types';
5
+ import { PushNotificationiOSType } from './libs/iosPushNotification';
6
+
7
+ export type StreamPushPayload =
8
+ | {
9
+ call_cid: string;
10
+ type: 'call.ring' | NonRingingPushEvent;
11
+ sender: string;
57
12
  }
58
- }
59
- return { mustEndCall, callkeepReason };
60
- };
61
-
62
- /* An action for the notification or callkeep and app does not have JS context setup yet, so we need to do two steps:
63
- 1. we need to create a new client and connect the user to decline the call
64
- 2. this is because the app is in background state and we don't have a client to get the call and do an action
65
- */
66
- export const processCallFromPushInBackground = async (
67
- pushConfig: PushConfig,
68
- call_cid: string,
69
- action: Parameters<typeof processCallFromPush>[2]
70
- ) => {
71
- let videoClient: StreamVideoClient | undefined;
72
-
73
- try {
74
- videoClient = await pushConfig.createStreamVideoClient();
75
- if (!videoClient) {
76
- return;
77
- }
78
- } catch (e) {
79
- const logger = getLogger(['processCallFromPushInBackground']);
80
- logger('error', 'failed to create video client', e);
81
- return;
82
- }
83
- await processCallFromPush(videoClient, call_cid, action, pushConfig);
84
- };
85
-
86
- /**
87
- * This function is used process the call from push notifications due to incoming call
88
- * It does the following steps:
89
- * 1. Get the call from the client if present or create a new call
90
- * 2. Fetch the latest state of the call from the server if its not already in ringing state
91
- * 3. Join or leave the call based on the user's action.
92
- */
93
- export const processCallFromPush = async (
94
- client: StreamVideoClient,
95
- call_cid: string,
96
- action: 'accept' | 'decline' | 'pressed' | 'backgroundDelivered',
97
- pushConfig: PushConfig
98
- ) => {
99
- let callFromPush: Call;
100
- try {
101
- callFromPush = await client.onRingingCall(call_cid);
102
- } catch (e) {
103
- const logger = getLogger(['processCallFromPush']);
104
- logger('error', 'failed to fetch call from push notification', e);
105
- return;
106
- }
107
- // note: when action was pressed or delivered, we dont need to do anything as the only thing is to do is to get the call which adds it to the client
108
- try {
109
- if (action === 'accept') {
110
- if (pushConfig.publishOptions) {
111
- callFromPush.updatePublishOptions(pushConfig.publishOptions);
112
- }
113
- await callFromPush.join();
114
- } else if (action === 'decline') {
115
- await callFromPush.leave({ reject: true });
116
- }
117
- } catch (e) {
118
- const logger = getLogger(['processCallFromPush']);
119
- logger(
120
- 'error',
121
- `failed to process ${action} call from push notification`,
122
- e
13
+ | undefined;
14
+
15
+ export function isFirebaseStreamVideoMessage(
16
+ message: FirebaseMessagingTypes.RemoteMessage
17
+ ) {
18
+ return message.data?.sender === 'stream.video';
19
+ }
20
+
21
+ export function isNotifeeStreamVideoEvent(event: Event) {
22
+ const { detail } = event;
23
+ const { notification } = detail;
24
+ return notification?.data?.sender === 'stream.video';
25
+ }
26
+
27
+ export function isExpoNotificationStreamVideoEvent(event: ExpoNotification) {
28
+ if (event.request.trigger.type === 'push') {
29
+ // iOS
30
+ const streamPayload = event.request.trigger.payload
31
+ ?.stream as StreamPushPayload;
32
+ // Android
33
+ const remoteMessageData = event.request.trigger.remoteMessage?.data;
34
+ return (
35
+ streamPayload?.sender === 'stream.video' ||
36
+ remoteMessageData?.sender === 'stream.video'
123
37
  );
124
38
  }
125
- };
126
-
127
- /**
128
- * This function is used process the call from push notifications due to non ringing calls
129
- * It does the following steps:
130
- * 1. Get the call from the client if present or create a new call
131
- * 2. Fetch the latest state of the call from the server if its not already in ringing state
132
- * 3. Call all the callbacks to inform the app about the call
133
- */
134
- export const processNonIncomingCallFromPush = async (
135
- client: StreamVideoClient,
136
- call_cid: string,
137
- nonRingingNotificationType: NonRingingPushEvent
138
- ) => {
139
- let callFromPush: Call;
140
- try {
141
- const _callFromPush = client.state.calls.find((c) => c.cid === call_cid);
142
- if (_callFromPush) {
143
- callFromPush = _callFromPush;
144
- } else {
145
- // if not it means that WS is not alive when receiving the push notifications and we need to fetch the call
146
- const [callType, callId] = call_cid.split(':');
147
- callFromPush = client.call(callType as string, callId as string);
148
- await callFromPush.get();
149
- }
150
- } catch (e) {
151
- const logger = getLogger(['processNonIncomingCallFromPush']);
152
- logger('error', 'failed to fetch call from push notification', e);
153
- return;
154
- }
155
- onNewCallNotification(callFromPush, nonRingingNotificationType);
156
- };
157
-
158
- /**
159
- * This function is used to clear all the push related WS subscriptions
160
- * note: events are subscribed in push for accept/decline through WS
161
- */
162
- export const clearPushWSEventSubscriptions = () => {
163
- const unsubscriptionCallbacks = RxUtils.getCurrentValue(
164
- pushUnsubscriptionCallbacks$
165
- );
166
- if (unsubscriptionCallbacks) {
167
- unsubscriptionCallbacks.forEach((cb) => cb());
168
- }
169
- pushUnsubscriptionCallbacks$.next(undefined);
170
- };
171
-
172
- /**
173
- * This ref is used to check if the push WS subscriptions can be added
174
- * It is used to avoid adding the push WS subscriptions when the client is connected to WS in the foreground
175
- */
176
- export const canAddPushWSSubscriptionsRef: CanAddPushWSSubscriptionsRef = {
177
- current: true,
178
- };
39
+ }
40
+
41
+ export function isPushNotificationiOSStreamVideoEvent(
42
+ notification: PushNotificationiOSType
43
+ ) {
44
+ const data = notification.getData();
45
+ const streamPayload = data?.stream as StreamPushPayload;
46
+ return streamPayload?.sender === 'stream.video';
47
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '1.2.14';
1
+ export const version = '1.3.0';
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getExpoTaskManagerLib = getExpoTaskManagerLib;
7
- let expoTaskManagerLib;
8
- try {
9
- expoTaskManagerLib = require('expo-task-manager');
10
- } catch (_e) {}
11
- function getExpoTaskManagerLib() {
12
- if (!expoTaskManagerLib) {
13
- throw Error('expo-task-manager library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/task-manager/ for installation instructions');
14
- }
15
- return expoTaskManagerLib;
16
- }
17
- //# sourceMappingURL=expoTaskManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["expoTaskManagerLib","require","_e","getExpoTaskManagerLib","Error"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/expoTaskManager.ts"],"mappings":";;;;;;AAEA,IAAIA,kBAAkD;AAEtD,IAAI;EACFA,kBAAkB,GAAGC,OAAO,CAAC,mBAAmB,CAAC;AACnD,CAAC,CAAC,OAAOC,EAAE,EAAE,CAAC;AAEP,SAASC,qBAAqBA,CAAA,EAAuB;EAC1D,IAAI,CAACH,kBAAkB,EAAE;IACvB,MAAMI,KAAK,CACT,8IACF,CAAC;EACH;EACA,OAAOJ,kBAAkB;AAC3B","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_rxjs","require","pushNonRingingCallData$","exports","BehaviorSubject","undefined","pushAcceptedIncomingCallCId$","pushTappedIncomingCallCId$","pushAndroidBackgroundDeliveredIncomingCallCId$","pushRejectedIncomingCallCId$","voipPushNotificationCallCId$","voipCallkeepCallOnForegroundMap$","voipCallkeepAcceptedCallOnNativeDialerMap$","pushUnsubscriptionCallbacks$"],"sourceRoot":"../../../../src","sources":["utils/push/rxSubjects.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA;AACO,MAAMC,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,GAAG,IAAIE,qBAAe,CAExDC,SAAS,CAAC;;AAEZ;AACA;AACA;AACA;AACO,MAAMC,4BAA4B,GAAAH,OAAA,CAAAG,4BAAA,GAAG,IAAIF,qBAAe,CAE7DC,SAAS,CAAC;;AAEZ;AACA;AACA;AACA;AACO,MAAME,0BAA0B,GAAAJ,OAAA,CAAAI,0BAAA,GAAG,IAAIH,qBAAe,CAE3DC,SAAS,CAAC;;AAEZ;AACA;AACA;AACA;AACA;AACO,MAAMG,8CAA8C,GAAAL,OAAA,CAAAK,8CAAA,GACzD,IAAIJ,qBAAe,CAAqBC,SAAS,CAAC;;AAEpD;AACA;AACA;AACA;AACO,MAAMI,4BAA4B,GAAAN,OAAA,CAAAM,4BAAA,GAAG,IAAIL,qBAAe,CAE7DC,SAAS,CAAC;;AAEZ;AACA;AACA;AACO,MAAMK,4BAA4B,GAAAP,OAAA,CAAAO,4BAAA,GAAG,IAAIN,qBAAe,CAE7DC,SAAS,CAAC;;AAEZ;;AAMA;AACA;AACA;AACA;AACA;AACO,MAAMM,gCAAgC,GAAAR,OAAA,CAAAQ,gCAAA,GAAG,IAAIP,qBAAe,CAEjEC,SAAS,CAAC;;AAEZ;AACA;AACA;AACO,MAAMO,0CAA0C,GAAAT,OAAA,CAAAS,0CAAA,GAAG,IAAIR,qBAAe,CAE3EC,SAAS,CAAC;AAIZ;AACA;AACA;AACA;AACO,MAAMQ,4BAA4B,GAAAV,OAAA,CAAAU,4BAAA,GAAG,IAAIT,qBAAe,CAE7DC,SAAS,CAAC","ignoreList":[]}
@@ -1,11 +0,0 @@
1
- let expoTaskManagerLib;
2
- try {
3
- expoTaskManagerLib = require('expo-task-manager');
4
- } catch (_e) {}
5
- export function getExpoTaskManagerLib() {
6
- if (!expoTaskManagerLib) {
7
- throw Error('expo-task-manager library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/task-manager/ for installation instructions');
8
- }
9
- return expoTaskManagerLib;
10
- }
11
- //# sourceMappingURL=expoTaskManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["expoTaskManagerLib","require","_e","getExpoTaskManagerLib","Error"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/expoTaskManager.ts"],"mappings":"AAEA,IAAIA,kBAAkD;AAEtD,IAAI;EACFA,kBAAkB,GAAGC,OAAO,CAAC,mBAAmB,CAAC;AACnD,CAAC,CAAC,OAAOC,EAAE,EAAE,CAAC;AAEd,OAAO,SAASC,qBAAqBA,CAAA,EAAuB;EAC1D,IAAI,CAACH,kBAAkB,EAAE;IACvB,MAAMI,KAAK,CACT,8IACF,CAAC;EACH;EACA,OAAOJ,kBAAkB;AAC3B","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["BehaviorSubject","pushNonRingingCallData$","undefined","pushAcceptedIncomingCallCId$","pushTappedIncomingCallCId$","pushAndroidBackgroundDeliveredIncomingCallCId$","pushRejectedIncomingCallCId$","voipPushNotificationCallCId$","voipCallkeepCallOnForegroundMap$","voipCallkeepAcceptedCallOnNativeDialerMap$","pushUnsubscriptionCallbacks$"],"sourceRoot":"../../../../src","sources":["utils/push/rxSubjects.ts"],"mappings":"AAAA,SAASA,eAAe,QAAQ,MAAM;AAGtC;AACA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAG,IAAID,eAAe,CAExDE,SAAS,CAAC;;AAEZ;AACA;AACA;AACA;AACA,OAAO,MAAMC,4BAA4B,GAAG,IAAIH,eAAe,CAE7DE,SAAS,CAAC;;AAEZ;AACA;AACA;AACA;AACA,OAAO,MAAME,0BAA0B,GAAG,IAAIJ,eAAe,CAE3DE,SAAS,CAAC;;AAEZ;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,8CAA8C,GACzD,IAAIL,eAAe,CAAqBE,SAAS,CAAC;;AAEpD;AACA;AACA;AACA;AACA,OAAO,MAAMI,4BAA4B,GAAG,IAAIN,eAAe,CAE7DE,SAAS,CAAC;;AAEZ;AACA;AACA;AACA,OAAO,MAAMK,4BAA4B,GAAG,IAAIP,eAAe,CAE7DE,SAAS,CAAC;;AAEZ;;AAMA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMM,gCAAgC,GAAG,IAAIR,eAAe,CAEjEE,SAAS,CAAC;;AAEZ;AACA;AACA;AACA,OAAO,MAAMO,0CAA0C,GAAG,IAAIT,eAAe,CAE3EE,SAAS,CAAC;AAIZ;AACA;AACA;AACA;AACA,OAAO,MAAMQ,4BAA4B,GAAG,IAAIV,eAAe,CAE7DE,SAAS,CAAC","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- export type ExpoTaskManagerLib = typeof import('expo-task-manager');
2
- export declare function getExpoTaskManagerLib(): ExpoTaskManagerLib;
3
- //# sourceMappingURL=expoTaskManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"expoTaskManager.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/libs/expoTaskManager.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,cAAc,mBAAmB,CAAC,CAAC;AAQpE,wBAAgB,qBAAqB,IAAI,kBAAkB,CAO1D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rxSubjects.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/rxSubjects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;;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;AAEb,KAAK,mBAAmB,GAAG,MAAM,IAAI,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,4BAA4B,oDAE7B,CAAC"}
@@ -1,16 +0,0 @@
1
- export type ExpoTaskManagerLib = typeof import('expo-task-manager');
2
-
3
- let expoTaskManagerLib: ExpoTaskManagerLib | undefined;
4
-
5
- try {
6
- expoTaskManagerLib = require('expo-task-manager');
7
- } catch (_e) {}
8
-
9
- export function getExpoTaskManagerLib(): ExpoTaskManagerLib {
10
- if (!expoTaskManagerLib) {
11
- throw Error(
12
- 'expo-task-manager library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/task-manager/ for installation instructions'
13
- );
14
- }
15
- return expoTaskManagerLib;
16
- }