@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.
- package/CHANGELOG.md +13 -0
- package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js +43 -6
- package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +1 -1
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +2 -2
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +2 -7
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js +3 -3
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +1 -0
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/commonjs/providers/StreamCall.js +1 -1
- package/dist/commonjs/utils/StreamVideoRN/index.js +5 -6
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/commonjs/utils/index.js +12 -0
- package/dist/commonjs/utils/index.js.map +1 -1
- package/dist/commonjs/utils/push/android.js +23 -79
- package/dist/commonjs/utils/push/android.js.map +1 -1
- package/dist/commonjs/utils/push/index.js +39 -0
- package/dist/commonjs/utils/push/index.js.map +1 -0
- package/dist/commonjs/utils/push/internal/rxSubjects.js.map +1 -0
- package/dist/commonjs/utils/push/internal/utils.js +157 -0
- package/dist/commonjs/utils/push/internal/utils.js.map +1 -0
- package/dist/commonjs/utils/push/ios.js +43 -84
- package/dist/commonjs/utils/push/ios.js.map +1 -1
- package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/commonjs/utils/push/libs/index.js +0 -11
- package/dist/commonjs/utils/push/libs/index.js.map +1 -1
- package/dist/commonjs/utils/push/libs/iosPushNotification.js.map +1 -1
- package/dist/commonjs/utils/push/utils.js +29 -150
- package/dist/commonjs/utils/push/utils.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/commonjs/version.js.map +1 -1
- package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js +41 -4
- package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +1 -1
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +2 -2
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/push/useProcessPushCallEffect.js +2 -7
- package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
- package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js +3 -3
- package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +1 -0
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/module/providers/StreamCall.js +1 -1
- package/dist/module/providers/StreamCall.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/index.js +5 -6
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/utils/index.js +1 -0
- package/dist/module/utils/index.js.map +1 -1
- package/dist/module/utils/push/android.js +20 -79
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/index.js +4 -0
- package/dist/module/utils/push/index.js.map +1 -0
- package/dist/module/utils/push/internal/rxSubjects.js.map +1 -0
- package/dist/module/utils/push/internal/utils.js +146 -0
- package/dist/module/utils/push/internal/utils.js.map +1 -0
- package/dist/module/utils/push/ios.js +40 -81
- package/dist/module/utils/push/ios.js.map +1 -1
- package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/module/utils/push/libs/index.js +0 -1
- package/dist/module/utils/push/libs/index.js.map +1 -1
- package/dist/module/utils/push/libs/iosPushNotification.js.map +1 -1
- package/dist/module/utils/push/utils.js +25 -144
- package/dist/module/utils/push/utils.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/module/version.js.map +1 -1
- package/dist/typescript/hooks/push/useIosCallKeepEventsSetupEffect.d.ts.map +1 -1
- package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/types.d.ts +6 -4
- package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
- package/dist/typescript/utils/index.d.ts +1 -0
- package/dist/typescript/utils/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/android.d.ts +12 -2
- package/dist/typescript/utils/push/android.d.ts.map +1 -1
- package/dist/typescript/utils/push/index.d.ts +4 -0
- package/dist/typescript/utils/push/index.d.ts.map +1 -0
- package/dist/typescript/utils/push/{rxSubjects.d.ts → internal/rxSubjects.d.ts} +1 -1
- package/dist/typescript/utils/push/internal/rxSubjects.d.ts.map +1 -0
- package/dist/typescript/utils/push/internal/utils.d.ts +43 -0
- package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -0
- package/dist/typescript/utils/push/ios.d.ts +8 -3
- package/dist/typescript/utils/push/ios.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/expoNotifications.d.ts +2 -0
- package/dist/typescript/utils/push/libs/expoNotifications.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/index.d.ts +0 -1
- package/dist/typescript/utils/push/libs/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/iosPushNotification.d.ts +2 -0
- package/dist/typescript/utils/push/libs/iosPushNotification.d.ts.map +1 -1
- package/dist/typescript/utils/push/utils.d.ts +14 -42
- package/dist/typescript/utils/push/utils.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/dist/typescript/version.d.ts.map +1 -1
- package/package.json +6 -11
- package/src/hooks/push/useIosCallKeepEventsSetupEffect.ts +62 -6
- package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +1 -1
- package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +2 -2
- package/src/hooks/push/useProcessPushCallEffect.ts +2 -7
- package/src/hooks/push/useProcessPushNonRingingCallEffect.ts +3 -3
- package/src/hooks/useAndroidKeepCallAliveEffect.ts +1 -0
- package/src/providers/StreamCall.tsx +1 -1
- package/src/utils/StreamVideoRN/index.ts +11 -6
- package/src/utils/StreamVideoRN/types.ts +6 -4
- package/src/utils/index.ts +1 -0
- package/src/utils/push/android.ts +28 -99
- package/src/utils/push/index.ts +3 -0
- package/src/utils/push/{rxSubjects.ts → internal/rxSubjects.ts} +1 -1
- package/src/utils/push/internal/utils.ts +178 -0
- package/src/utils/push/ios.ts +49 -115
- package/src/utils/push/libs/expoNotifications.ts +4 -0
- package/src/utils/push/libs/index.ts +0 -1
- package/src/utils/push/libs/iosPushNotification.ts +4 -0
- package/src/utils/push/utils.ts +44 -175
- package/src/version.ts +1 -1
- package/dist/commonjs/utils/push/libs/expoTaskManager.js +0 -17
- package/dist/commonjs/utils/push/libs/expoTaskManager.js.map +0 -1
- package/dist/commonjs/utils/push/rxSubjects.js.map +0 -1
- package/dist/module/utils/push/libs/expoTaskManager.js +0 -11
- package/dist/module/utils/push/libs/expoTaskManager.js.map +0 -1
- package/dist/module/utils/push/rxSubjects.js.map +0 -1
- package/dist/typescript/utils/push/libs/expoTaskManager.d.ts +0 -3
- package/dist/typescript/utils/push/libs/expoTaskManager.d.ts.map +0 -1
- package/dist/typescript/utils/push/rxSubjects.d.ts.map +0 -1
- package/src/utils/push/libs/expoTaskManager.ts +0 -16
- /package/dist/commonjs/utils/push/{rxSubjects.js → internal/rxSubjects.js} +0 -0
- /package/dist/module/utils/push/{rxSubjects.js → internal/rxSubjects.js} +0 -0
package/src/utils/push/utils.ts
CHANGED
|
@@ -1,178 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
export
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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.
|
|
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 +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
|
-
}
|
|
File without changes
|
|
File without changes
|