@stream-io/video-react-native-sdk 1.4.17 → 1.4.19
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 +14 -0
- package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js +2 -2
- package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -1
- package/dist/commonjs/utils/push/ios.js +2 -2
- package/dist/commonjs/utils/push/ios.js.map +1 -1
- package/dist/commonjs/utils/push/libs/{firebaseMessaging.js → firebaseMessaging/index.js} +6 -9
- package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js.map +1 -0
- package/dist/commonjs/utils/push/libs/firebaseMessaging/lib.js +16 -0
- package/dist/commonjs/utils/push/libs/firebaseMessaging/lib.js.map +1 -0
- package/dist/commonjs/utils/push/libs/{notifee.js → notifee/index.js} +6 -9
- package/dist/commonjs/utils/push/libs/notifee/index.js.map +1 -0
- package/dist/commonjs/utils/push/libs/notifee/lib.js +16 -0
- package/dist/commonjs/utils/push/libs/notifee/lib.js.map +1 -0
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js +1 -1
- package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -1
- package/dist/module/utils/push/ios.js +3 -3
- package/dist/module/utils/push/ios.js.map +1 -1
- package/dist/module/utils/push/libs/{firebaseMessaging.js → firebaseMessaging/index.js} +6 -9
- package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -0
- package/dist/module/utils/push/libs/firebaseMessaging/lib.js +11 -0
- package/dist/module/utils/push/libs/firebaseMessaging/lib.js.map +1 -0
- package/dist/module/utils/push/libs/index.js +2 -2
- package/dist/module/utils/push/libs/{notifee.js → notifee/index.js} +6 -9
- package/dist/module/utils/push/libs/notifee/index.js.map +1 -0
- package/dist/module/utils/push/libs/notifee/lib.js +11 -0
- package/dist/module/utils/push/libs/notifee/lib.js.map +1 -0
- package/dist/module/version.js +1 -1
- package/dist/typescript/utils/push/ios.d.ts +1 -1
- package/dist/typescript/utils/push/ios.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/{firebaseMessaging.d.ts → firebaseMessaging/index.d.ts} +3 -2
- package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs/firebaseMessaging/lib.d.ts +4 -0
- package/dist/typescript/utils/push/libs/firebaseMessaging/lib.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs/{notifee.d.ts → notifee/index.d.ts} +3 -2
- package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs/notifee/lib.d.ts +4 -0
- package/dist/typescript/utils/push/libs/notifee/lib.d.ts.map +1 -0
- package/dist/typescript/utils/push/utils.d.ts +1 -1
- package/dist/typescript/utils/push/utils.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/Participant/ParticipantView/SpeechIndicator.tsx +1 -1
- package/src/utils/push/ios.ts +4 -2
- package/src/utils/push/libs/{firebaseMessaging.ts → firebaseMessaging/index.ts} +7 -12
- package/src/utils/push/libs/firebaseMessaging/lib.ts +14 -0
- package/src/utils/push/libs/index.ts +2 -2
- package/src/utils/push/libs/{notifee.ts → notifee/index.ts} +6 -11
- package/src/utils/push/libs/notifee/lib.ts +14 -0
- package/src/utils/push/utils.ts +1 -1
- package/src/version.ts +1 -1
- package/dist/commonjs/utils/push/libs/firebaseMessaging.js.map +0 -1
- package/dist/commonjs/utils/push/libs/notifee.js.map +0 -1
- package/dist/module/utils/push/libs/firebaseMessaging.js.map +0 -1
- package/dist/module/utils/push/libs/notifee.js.map +0 -1
- package/dist/typescript/utils/push/libs/firebaseMessaging.d.ts.map +0 -1
- package/dist/typescript/utils/push/libs/notifee.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.4.19](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.4.18...@stream-io/video-react-native-sdk-1.4.19) (2024-12-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **rn:** break cyclic dependencies issue ([#1626](https://github.com/GetStream/stream-video-js/issues/1626)) ([ef30579](https://github.com/GetStream/stream-video-js/commit/ef3057949648581a5e17775661c859f693191f92))
|
|
11
|
+
|
|
12
|
+
## [1.4.18](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.4.17...@stream-io/video-react-native-sdk-1.4.18) (2024-12-16)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* metro commonjs issues with optional libs ([#1625](https://github.com/GetStream/stream-video-js/issues/1625)) ([78b5f05](https://github.com/GetStream/stream-video-js/commit/78b5f050c20c67f77c154a8fd5d1c4e59b72989f)), closes [#1620](https://github.com/GetStream/stream-video-js/issues/1620)
|
|
18
|
+
|
|
5
19
|
## [1.4.17](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.4.16...@stream-io/video-react-native-sdk-1.4.17) (2024-12-13)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.SpeechIndicator = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var
|
|
9
|
+
var _contexts = require("../../../contexts");
|
|
10
10
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
11
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
12
|
/**
|
|
@@ -58,7 +58,7 @@ exports.SpeechIndicator = SpeechIndicator;
|
|
|
58
58
|
const useStyles = () => {
|
|
59
59
|
const {
|
|
60
60
|
theme
|
|
61
|
-
} = (0,
|
|
61
|
+
} = (0, _contexts.useTheme)();
|
|
62
62
|
return (0, _react.useMemo)(() => _reactNative.StyleSheet.create({
|
|
63
63
|
container: {
|
|
64
64
|
flexDirection: 'row',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_contexts","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SpeechIndicator","isSpeaking","styles","useStyles","animationValues","useState","Animated","Value","useEffect","forEach","animatedValue","index","loop","sequence","timing","toValue","duration","useNativeDriver","start","setValue","barStyle","transform","scaleY","createElement","View","style","container","map","key","bar","smallBar","exports","theme","useTheme","useMemo","StyleSheet","create","flexDirection","justifyContent","alignItems","height","variants","roundButtonSizes","sm","width","borderRadius","gap","backgroundColor","colors","sheetOverlay","padding","iconSecondary","_default"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/SpeechIndicator.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAA6C,SAAAG,yBAAAC,C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OAAA,CAAA7C,OAAA,GAEac,eAAe","ignoreList":[]}
|
|
@@ -11,7 +11,6 @@ var _rxSubjects = require("./internal/rxSubjects");
|
|
|
11
11
|
var _libs = require("./libs");
|
|
12
12
|
var _videoClient = require("@stream-io/video-client");
|
|
13
13
|
var _pushLogoutCallback = require("../internal/pushLogoutCallback");
|
|
14
|
-
var _reactNative2 = require("@notifee/react-native");
|
|
15
14
|
var _StreamVideoRN = require("../StreamVideoRN");
|
|
16
15
|
let lastApnToken = {
|
|
17
16
|
token: '',
|
|
@@ -50,7 +49,8 @@ const oniOSNotifeeEvent = ({
|
|
|
50
49
|
type,
|
|
51
50
|
detail
|
|
52
51
|
} = event;
|
|
53
|
-
|
|
52
|
+
const notifeeLib = (0, _libs.getNotifeeLibThrowIfNotInstalledForPush)();
|
|
53
|
+
if (pushConfig && type === notifeeLib.EventType.PRESS) {
|
|
54
54
|
const streamPayload = detail.notification?.data?.stream;
|
|
55
55
|
const result = processNonRingingNotificationStreamPayload(streamPayload);
|
|
56
56
|
if (result) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_rxSubjects","_libs","_videoClient","_pushLogoutCallback","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_rxSubjects","_libs","_videoClient","_pushLogoutCallback","_StreamVideoRN","lastApnToken","token","userId","processNonRingingNotificationStreamPayload","streamPayload","sender","type","cid","call_cid","pushNonRingingCallData$","next","oniOSExpoNotificationEvent","event","pushConfig","StreamVideoRN","getConfig","push","request","trigger","payload","stream","exports","oniOSNotifeeEvent","Platform","OS","detail","notifeeLib","getNotifeeLibThrowIfNotInstalledForPush","EventType","PRESS","notification","data","result","onTapNonRingingCallNotification","onPushNotificationiOSStreamVideoEvent","pushNotificationIosLib","getPushNotificationIosLib","getData","isClicked","userInteraction","finish","FetchResult","NoData","initIosNonVoipToken","client","setUnsubscribeListener","ios","pushProviderName","setDeviceToken","streamClient","_user","id","setPushLogoutCallback","removeDevice","err","logger","getLogger","push_provider_name","addDevice","isExpo","expoNotificationsLib","getExpoNotificationsLib","getDevicePushTokenAsync","then","devicePushToken","subscription","addPushTokenListener","remove","addEventListener","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/ios.ts"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAOA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAEA,IAAAK,cAAA,GAAAL,OAAA;AAKA,IAAIM,YAAY,GAAG;EAAEC,KAAK,EAAE,EAAE;EAAEC,MAAM,EAAE;AAAG,CAAC;AAE5C,SAASC,0CAA0CA,CACjDC,aAAgC,EAChC;EACA,IACEA,aAAa,EAAEC,MAAM,KAAK,cAAc,IACxCD,aAAa,EAAEE,IAAI,KAAK,WAAW,EACnC;IACA,MAAMC,GAAG,GAAGH,aAAa,CAACI,QAAQ;IAClC,MAAMF,IAAI,GAAGF,aAAa,CAACE,IAAI;IAC/BG,mCAAuB,CAACC,IAAI,CAAC;MAAEH,GAAG;MAAED;IAAK,CAAC,CAAC;IAC3C,OAAO;MAAEC,GAAG;MAAED;IAAK,CAAC;EACtB;AACF;AAEO,MAAMK,0BAA0B,GAAIC,KAAuB,IAAK;EACrE,MAAMC,UAAU,GAAGC,4BAAa,CAACC,SAAS,CAAC,CAAC,CAACC,IAAI;EACjD,IAAIH,UAAU,EAAE;IACd,IAAID,KAAK,CAACK,OAAO,CAACC,OAAO,CAACZ,IAAI,KAAK,MAAM,EAAE;MACzC,MAAMF,aAAa,GAAGQ,KAAK,CAACK,OAAO,CAACC,OAAO,CAACC,OAAO,EAC/CC,MAA2B;MAC/BjB,0CAA0C,CAACC,aAAa,CAAC;IAC3D;EACF;AACF,CAAC;AAACiB,OAAA,CAAAV,0BAAA,GAAAA,0BAAA;AAEK,MAAMW,iBAAiB,GAAGA,CAAC;EAChCV;AAIF,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AAG,IAAAC,6BAAuB,EAAC,CAAC;IACtDD,oBAAoB,CAACE,uBAAuB,CAAC,CAAC,CAACC,IAAI,CAAEC,eAAe,IAAK;MACvEhB,cAAc,CAACgB,eAAe,CAACjC,IAAI,CAAC;IACtC,CAAC,CAAC;IACF,MAAMkC,YAAY,GAAGL,oBAAoB,CAACM,oBAAoB,CAC3DF,eAAe,IAAK;MACnBhB,cAAc,CAACgB,eAAe,CAACjC,IAAI,CAAC;IACtC,CACF,CAAC;IACDc,sBAAsB,CAAC,MAAM;MAC3BoB,YAAY,CAACE,MAAM,CAAC,CAAC;IACvB,CAAC,CAAC;EACJ,CAAC,MAAM;IACL,MAAMhC,sBAAsB,GAAG,IAAAC,+BAAyB,EAAC,CAAC;IAC1DD,sBAAsB,CAACiC,gBAAgB,CAAC,UAAU,EAAGnE,KAAK,IAAK;MAC7D+C,cAAc,CAAC/C,KAAK,CAAC;IACvB,CAAC,CAAC;IACF4C,sBAAsB,CAAC,MAAM;MAC3BV,sBAAsB,CAACkC,mBAAmB,CAAC,UAAU,CAAC;IACxD,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
|
|
@@ -6,22 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getFirebaseMessagingLib = getFirebaseMessagingLib;
|
|
7
7
|
exports.getFirebaseMessagingLibNoThrow = getFirebaseMessagingLibNoThrow;
|
|
8
8
|
var _videoClient = require("@stream-io/video-client");
|
|
9
|
-
|
|
10
|
-
try {
|
|
11
|
-
messaging = require('@react-native-firebase/messaging').default;
|
|
12
|
-
} catch (_e) {}
|
|
9
|
+
var _lib = require("./lib");
|
|
13
10
|
const INSTALLATION_INSTRUCTION = 'Please see https://rnfirebase.io/messaging/usage#installation for installation instructions';
|
|
14
11
|
function getFirebaseMessagingLib() {
|
|
15
|
-
if (!
|
|
12
|
+
if (!_lib.lib) {
|
|
16
13
|
throw Error('@react-native-firebase/messaging is not installed. ' + INSTALLATION_INSTRUCTION);
|
|
17
14
|
}
|
|
18
|
-
return
|
|
15
|
+
return _lib.lib;
|
|
19
16
|
}
|
|
20
17
|
function getFirebaseMessagingLibNoThrow(isExpo) {
|
|
21
|
-
if (!
|
|
18
|
+
if (!_lib.lib) {
|
|
22
19
|
const logger = (0, _videoClient.getLogger)(['getFirebaseMessagingLibNoThrow']);
|
|
23
20
|
logger('warn', `${isExpo ? 'In Expo, @react-native-firebase/messaging library is required to receive ringing notifications in app killed state for Android.' : ''}${INSTALLATION_INSTRUCTION}`);
|
|
24
21
|
}
|
|
25
|
-
return
|
|
22
|
+
return _lib.lib;
|
|
26
23
|
}
|
|
27
|
-
//# sourceMappingURL=
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_videoClient","require","_lib","INSTALLATION_INSTRUCTION","getFirebaseMessagingLib","lib","Error","getFirebaseMessagingLibNoThrow","isExpo","logger","getLogger"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/firebaseMessaging/index.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AAKA,MAAME,wBAAwB,GAC5B,6FAA6F;AAExF,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACC,QAAG,EAAE;IACR,MAAMC,KAAK,CACT,qDAAqD,GACnDH,wBACJ,CAAC;EACH;EACA,OAAOE,QAAG;AACZ;AAEO,SAASE,8BAA8BA,CAACC,MAAe,EAAE;EAC9D,IAAI,CAACH,QAAG,EAAE;IACR,MAAMI,MAAM,GAAG,IAAAC,sBAAS,EAAC,CAAC,gCAAgC,CAAC,CAAC;IAC5DD,MAAM,CACJ,MAAM,EACN,GACED,MAAM,GACF,iIAAiI,GACjI,EAAE,GACLL,wBAAwB,EAC7B,CAAC;EACH;EACA,OAAOE,QAAG;AACZ","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.lib = void 0;
|
|
7
|
+
let lib = exports.lib = void 0;
|
|
8
|
+
try {
|
|
9
|
+
exports.lib = lib = require('@react-native-firebase/messaging').default;
|
|
10
|
+
} catch (_e) {}
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
IMPORTANT: must keep a failing import in a different file
|
|
14
|
+
Else on commonjs, metro doesnt resolve any other modules properly in a file, if one of the module is not installed
|
|
15
|
+
*/
|
|
16
|
+
//# sourceMappingURL=lib.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["lib","exports","require","default","_e"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/firebaseMessaging/lib.ts"],"mappings":";;;;;;AAEA,IAAIA,GAAqB,GAAAC,OAAA,CAAAD,GAAA;AAEzB,IAAI;EACFC,OAAA,CAAAD,GAAA,GAAAA,GAAG,GAAGE,OAAO,CAAC,kCAAkC,CAAC,CAACC,OAAO;AAC3D,CAAC,CAAC,OAAOC,EAAE,EAAE,CAAC;;AAId;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -9,6 +9,7 @@ exports.getNotifeeLibNoThrowForKeepCallAlive = getNotifeeLibNoThrowForKeepCallAl
|
|
|
9
9
|
exports.getNotifeeLibThrowIfNotInstalledForPush = getNotifeeLibThrowIfNotInstalledForPush;
|
|
10
10
|
var _videoClient = require("@stream-io/video-client");
|
|
11
11
|
var _reactNative = require("react-native");
|
|
12
|
+
var _lib = require("./lib");
|
|
12
13
|
var AndroidForegroundServiceType = /*#__PURE__*/function (AndroidForegroundServiceType) {
|
|
13
14
|
AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_CAMERA"] = 64] = "FOREGROUND_SERVICE_TYPE_CAMERA";
|
|
14
15
|
AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE"] = 16] = "FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE";
|
|
@@ -27,23 +28,19 @@ var AndroidForegroundServiceType = /*#__PURE__*/function (AndroidForegroundServi
|
|
|
27
28
|
AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_MANIFEST"] = -1] = "FOREGROUND_SERVICE_TYPE_MANIFEST";
|
|
28
29
|
return AndroidForegroundServiceType;
|
|
29
30
|
}(AndroidForegroundServiceType || {});
|
|
30
|
-
let notifeeLib;
|
|
31
|
-
try {
|
|
32
|
-
notifeeLib = require('@notifee/react-native');
|
|
33
|
-
} catch (_e) {}
|
|
34
31
|
const INSTALLATION_INSTRUCTION = 'Please see https://notifee.app/react-native/docs/installation for installation instructions';
|
|
35
32
|
function getNotifeeLibThrowIfNotInstalledForPush() {
|
|
36
|
-
if (!
|
|
33
|
+
if (!_lib.lib) {
|
|
37
34
|
throw Error('@notifee/react-native is not installed. It is required for implementing push notifications. ' + INSTALLATION_INSTRUCTION);
|
|
38
35
|
}
|
|
39
|
-
return
|
|
36
|
+
return _lib.lib;
|
|
40
37
|
}
|
|
41
38
|
function getNotifeeLibNoThrowForKeepCallAlive() {
|
|
42
|
-
if (!
|
|
39
|
+
if (!_lib.lib) {
|
|
43
40
|
const logger = (0, _videoClient.getLogger)(['getNotifeeLibNoThrow']);
|
|
44
41
|
logger('info', `${'@notifee/react-native library not installed. It is required to keep call alive in the background for Android. '}${INSTALLATION_INSTRUCTION}`);
|
|
45
42
|
}
|
|
46
|
-
return
|
|
43
|
+
return _lib.lib;
|
|
47
44
|
}
|
|
48
45
|
async function getKeepCallAliveForegroundServiceTypes() {
|
|
49
46
|
const types = [];
|
|
@@ -68,4 +65,4 @@ function getIncomingCallForegroundServiceTypes() {
|
|
|
68
65
|
const types = [AndroidForegroundServiceType.FOREGROUND_SERVICE_TYPE_SHORT_SERVICE];
|
|
69
66
|
return types;
|
|
70
67
|
}
|
|
71
|
-
//# sourceMappingURL=
|
|
68
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_videoClient","require","_reactNative","_lib","AndroidForegroundServiceType","INSTALLATION_INSTRUCTION","getNotifeeLibThrowIfNotInstalledForPush","lib","Error","getNotifeeLibNoThrowForKeepCallAlive","logger","getLogger","getKeepCallAliveForegroundServiceTypes","types","hasCameraPermission","PermissionsAndroid","check","PERMISSIONS","CAMERA","push","FOREGROUND_SERVICE_TYPE_CAMERA","hasMicrophonePermission","RECORD_AUDIO","FOREGROUND_SERVICE_TYPE_MICROPHONE","hasConnectionPermission","BLUETOOTH_CONNECT","FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE","length","FOREGROUND_SERVICE_TYPE_DATA_SYNC","getIncomingCallForegroundServiceTypes","FOREGROUND_SERVICE_TYPE_SHORT_SERVICE"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/notifee/index.ts"],"mappings":";;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,IAAA,GAAAF,OAAA;AAAkC,IAI7BG,4BAA4B,0BAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B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AC;EAC5E;EACA,OAAOf,KAAK;AACd;AAEO,SAASgB,qCAAqCA,CAAA,EAAG;EACtD,MAAMhB,KAAqC,GAAG,CAC5CT,4BAA4B,CAAC0B,qCAAqC,CACnE;EACD,OAAOjB,KAAK;AACd","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.lib = void 0;
|
|
7
|
+
let lib = exports.lib = void 0;
|
|
8
|
+
try {
|
|
9
|
+
exports.lib = lib = require('@notifee/react-native');
|
|
10
|
+
} catch (_e) {}
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
IMPORTANT: must keep a failing import in a different file
|
|
14
|
+
Else on commonjs, metro doesnt resolve any other modules properly in a file, if one of the module is not installed
|
|
15
|
+
*/
|
|
16
|
+
//# sourceMappingURL=lib.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["lib","exports","require","_e"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/notifee/lib.ts"],"mappings":";;;;;;AAEA,IAAIA,GAAqB,GAAAC,OAAA,CAAAD,GAAA;AAEzB,IAAI;EACFC,OAAA,CAAAD,GAAA,GAAAA,GAAG,GAAGE,OAAO,CAAC,uBAAuB,CAAC;AACxC,CAAC,CAAC,OAAOC,EAAE,EAAE,CAAC;;AAId;AACA;AACA;AACA","ignoreList":[]}
|
package/dist/commonjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useMemo","useState","View","Animated","StyleSheet","useTheme","SpeechIndicator","isSpeaking","styles","useStyles","animationValues","Value","forEach","animatedValue","index","loop","sequence","timing","toValue","duration","useNativeDriver","start","setValue","barStyle","transform","scaleY","createElement","style","container","map","key","bar","smallBar","theme","create","flexDirection","justifyContent","alignItems","height","variants","roundButtonSizes","sm","width","borderRadius","gap","backgroundColor","colors","sheetOverlay","padding","iconSecondary"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/SpeechIndicator.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC3D,SAASC,IAAI,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AACzD,SAASC,QAAQ,QAAQ,
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","useState","View","Animated","StyleSheet","useTheme","SpeechIndicator","isSpeaking","styles","useStyles","animationValues","Value","forEach","animatedValue","index","loop","sequence","timing","toValue","duration","useNativeDriver","start","setValue","barStyle","transform","scaleY","createElement","style","container","map","key","bar","smallBar","theme","create","flexDirection","justifyContent","alignItems","height","variants","roundButtonSizes","sm","width","borderRadius","gap","backgroundColor","colors","sheetOverlay","padding","iconSecondary"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/SpeechIndicator.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC3D,SAASC,IAAI,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AACzD,SAASC,QAAQ,QAAQ,mBAAmB;;AAE5C;AACA;AACA;;AASA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAAEC;AAAiC,CAAC,KAAK;EACvE,MAAMC,MAAM,GAAGC,SAAS,CAAC,CAAC;EAE1B,MAAM,CAACC,eAAe,CAAC,GAAGT,QAAQ,CAAC,MAAM,CACvC,IAAIE,QAAQ,CAACQ,KAAK,CAAC,GAAG,CAAC,EACvB,IAAIR,QAAQ,CAACQ,KAAK,CAAC,GAAG,CAAC,EACvB,IAAIR,QAAQ,CAACQ,KAAK,CAAC,GAAG,CAAC,CACxB,CAAC;EAEFZ,SAAS,CAAC,MAAM;IACd,IAAIQ,UAAU,EAAE;MACdG,eAAe,CAACE,OAAO,CAAC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ACH,CACF,CACG,CAAC;AAEX,CAAC;AAED,MAAMvB,SAAS,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEwB;EAAM,CAAC,GAAG5B,QAAQ,CAAC,CAAC;EAC5B,OAAOL,OAAO,CACZ,MACEI,UAAU,CAAC8B,MAAM,CAAC;IAChBN,SAAS,EAAE;MACTO,aAAa,EAAE,KAAK;MACpBC,cAAc,EAAE,eAAe;MAC/BC,UAAU,EAAE,QAAQ;MACpBC,MAAM,EAAEL,KAAK,CAACM,QAAQ,CAACC,gBAAgB,CAACC,EAAE;MAC1CC,KAAK,EAAET,KAAK,CAACM,QAAQ,CAACC,gBAAgB,CAACC,EAAE;MACzCE,YAAY,EAAE,CAAC;MACfC,GAAG,EAAE,CAAC;MACNC,eAAe,EAAEZ,KAAK,CAACa,MAAM,CAACC,YAAY;MAC1CC,OAAO,EAAE;IACX,CAAC;IACDhB,QAAQ,EAAE;MACRM,MAAM,EAAE,KAAK,CAAE;IACjB,CAAC;IACDP,GAAG,EAAE;MACHW,KAAK,EAAE,CAAC;MACRJ,MAAM,EAAE,MAAM;MACdO,eAAe,EAAEZ,KAAK,CAACa,MAAM,CAACG,aAAa;MAC3CN,YAAY,EAAE;IAChB;EACF,CAAC,CAAC,EACJ,CAACV,KAAK,CACR,CAAC;AACH,CAAC;AAED,eAAe3B,eAAe","ignoreList":[]}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Platform } from 'react-native';
|
|
2
2
|
import { pushNonRingingCallData$ } from './internal/rxSubjects';
|
|
3
|
-
import { getExpoNotificationsLib, getPushNotificationIosLib } from './libs';
|
|
3
|
+
import { getExpoNotificationsLib, getNotifeeLibThrowIfNotInstalledForPush, getPushNotificationIosLib } from './libs';
|
|
4
4
|
import { getLogger } from '@stream-io/video-client';
|
|
5
5
|
import { setPushLogoutCallback } from '../internal/pushLogoutCallback';
|
|
6
|
-
import { EventType } from '@notifee/react-native';
|
|
7
6
|
import { StreamVideoRN } from '../StreamVideoRN';
|
|
8
7
|
let lastApnToken = {
|
|
9
8
|
token: '',
|
|
@@ -41,7 +40,8 @@ export const oniOSNotifeeEvent = ({
|
|
|
41
40
|
type,
|
|
42
41
|
detail
|
|
43
42
|
} = event;
|
|
44
|
-
|
|
43
|
+
const notifeeLib = getNotifeeLibThrowIfNotInstalledForPush();
|
|
44
|
+
if (pushConfig && type === notifeeLib.EventType.PRESS) {
|
|
45
45
|
const streamPayload = detail.notification?.data?.stream;
|
|
46
46
|
const result = processNonRingingNotificationStreamPayload(streamPayload);
|
|
47
47
|
if (result) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","pushNonRingingCallData$","getExpoNotificationsLib","getPushNotificationIosLib","getLogger","setPushLogoutCallback","
|
|
1
|
+
{"version":3,"names":["Platform","pushNonRingingCallData$","getExpoNotificationsLib","getNotifeeLibThrowIfNotInstalledForPush","getPushNotificationIosLib","getLogger","setPushLogoutCallback","StreamVideoRN","lastApnToken","token","userId","processNonRingingNotificationStreamPayload","streamPayload","sender","type","cid","call_cid","next","oniOSExpoNotificationEvent","event","pushConfig","getConfig","push","request","trigger","payload","stream","oniOSNotifeeEvent","OS","detail","notifeeLib","EventType","PRESS","notification","data","result","onTapNonRingingCallNotification","onPushNotificationiOSStreamVideoEvent","pushNotificationIosLib","getData","isClicked","userInteraction","finish","FetchResult","NoData","initIosNonVoipToken","client","setUnsubscribeListener","ios","pushProviderName","setDeviceToken","streamClient","_user","id","removeDevice","err","logger","push_provider_name","addDevice","isExpo","expoNotificationsLib","getDevicePushTokenAsync","then","devicePushToken","subscription","addPushTokenListener","remove","addEventListener","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/ios.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,SAASC,uBAAuB,QAAQ,uBAAuB;AAC/D,SAEEC,uBAAuB,EACvBC,uCAAuC,EACvCC,yBAAyB,QAEpB,QAAQ;AACf,SAA4BC,SAAS,QAAQ,yBAAyB;AAC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AAC,CAAC;EACJ,CAAC,MAAM;IACL,MAAM5B,sBAAsB,GAAGlC,yBAAyB,CAAC,CAAC;IAC1DkC,sBAAsB,CAAC6B,gBAAgB,CAAC,UAAU,EAAG1D,KAAK,IAAK;MAC7DyC,cAAc,CAACzC,KAAK,CAAC;IACvB,CAAC,CAAC;IACFsC,sBAAsB,CAAC,MAAM;MAC3BT,sBAAsB,CAAC8B,mBAAmB,CAAC,UAAU,CAAC;IACxD,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { getLogger } from '@stream-io/video-client';
|
|
2
|
-
|
|
3
|
-
try {
|
|
4
|
-
messaging = require('@react-native-firebase/messaging').default;
|
|
5
|
-
} catch (_e) {}
|
|
2
|
+
import { lib } from './lib';
|
|
6
3
|
const INSTALLATION_INSTRUCTION = 'Please see https://rnfirebase.io/messaging/usage#installation for installation instructions';
|
|
7
4
|
export function getFirebaseMessagingLib() {
|
|
8
|
-
if (!
|
|
5
|
+
if (!lib) {
|
|
9
6
|
throw Error('@react-native-firebase/messaging is not installed. ' + INSTALLATION_INSTRUCTION);
|
|
10
7
|
}
|
|
11
|
-
return
|
|
8
|
+
return lib;
|
|
12
9
|
}
|
|
13
10
|
export function getFirebaseMessagingLibNoThrow(isExpo) {
|
|
14
|
-
if (!
|
|
11
|
+
if (!lib) {
|
|
15
12
|
const logger = getLogger(['getFirebaseMessagingLibNoThrow']);
|
|
16
13
|
logger('warn', `${isExpo ? 'In Expo, @react-native-firebase/messaging library is required to receive ringing notifications in app killed state for Android.' : ''}${INSTALLATION_INSTRUCTION}`);
|
|
17
14
|
}
|
|
18
|
-
return
|
|
15
|
+
return lib;
|
|
19
16
|
}
|
|
20
|
-
//# sourceMappingURL=
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getLogger","lib","INSTALLATION_INSTRUCTION","getFirebaseMessagingLib","Error","getFirebaseMessagingLibNoThrow","isExpo","logger"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/firebaseMessaging/index.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,yBAAyB;AACnD,SAAeC,GAAG,QAAQ,OAAO;AAKjC,MAAMC,wBAAwB,GAC5B,6FAA6F;AAE/F,OAAO,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACF,GAAG,EAAE;IACR,MAAMG,KAAK,CACT,qDAAqD,GACnDF,wBACJ,CAAC;EACH;EACA,OAAOD,GAAG;AACZ;AAEA,OAAO,SAASI,8BAA8BA,CAACC,MAAe,EAAE;EAC9D,IAAI,CAACL,GAAG,EAAE;IACR,MAAMM,MAAM,GAAGP,SAAS,CAAC,CAAC,gCAAgC,CAAC,CAAC;IAC5DO,MAAM,CACJ,MAAM,EACN,GACED,MAAM,GACF,iIAAiI,GACjI,EAAE,GACLJ,wBAAwB,EAC7B,CAAC;EACH;EACA,OAAOD,GAAG;AACZ","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
let lib;
|
|
2
|
+
try {
|
|
3
|
+
lib = require('@react-native-firebase/messaging').default;
|
|
4
|
+
} catch (_e) {}
|
|
5
|
+
export { lib };
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
IMPORTANT: must keep a failing import in a different file
|
|
9
|
+
Else on commonjs, metro doesnt resolve any other modules properly in a file, if one of the module is not installed
|
|
10
|
+
*/
|
|
11
|
+
//# sourceMappingURL=lib.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["lib","require","default","_e"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/firebaseMessaging/lib.ts"],"mappings":"AAEA,IAAIA,GAAqB;AAEzB,IAAI;EACFA,GAAG,GAAGC,OAAO,CAAC,kCAAkC,CAAC,CAACC,OAAO;AAC3D,CAAC,CAAC,OAAOC,EAAE,EAAE,CAAC;AAEd,SAASH,GAAG;;AAEZ;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ export * from './callkeep';
|
|
|
6
6
|
export * from './notifee';
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
NOTE: must keep each libs in different files
|
|
10
|
-
Else on commonjs, metro doesnt resolve modules properly if one of the module is not installed
|
|
9
|
+
NOTE: must keep each libs in different files
|
|
10
|
+
Else on commonjs, metro doesnt resolve modules properly if one of the module is not installed
|
|
11
11
|
*/
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getLogger } from '@stream-io/video-client';
|
|
2
2
|
import { PermissionsAndroid } from 'react-native';
|
|
3
|
+
import { lib } from './lib';
|
|
3
4
|
var AndroidForegroundServiceType = /*#__PURE__*/function (AndroidForegroundServiceType) {
|
|
4
5
|
AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_CAMERA"] = 64] = "FOREGROUND_SERVICE_TYPE_CAMERA";
|
|
5
6
|
AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE"] = 16] = "FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE";
|
|
@@ -18,23 +19,19 @@ var AndroidForegroundServiceType = /*#__PURE__*/function (AndroidForegroundServi
|
|
|
18
19
|
AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_MANIFEST"] = -1] = "FOREGROUND_SERVICE_TYPE_MANIFEST";
|
|
19
20
|
return AndroidForegroundServiceType;
|
|
20
21
|
}(AndroidForegroundServiceType || {});
|
|
21
|
-
let notifeeLib;
|
|
22
|
-
try {
|
|
23
|
-
notifeeLib = require('@notifee/react-native');
|
|
24
|
-
} catch (_e) {}
|
|
25
22
|
const INSTALLATION_INSTRUCTION = 'Please see https://notifee.app/react-native/docs/installation for installation instructions';
|
|
26
23
|
export function getNotifeeLibThrowIfNotInstalledForPush() {
|
|
27
|
-
if (!
|
|
24
|
+
if (!lib) {
|
|
28
25
|
throw Error('@notifee/react-native is not installed. It is required for implementing push notifications. ' + INSTALLATION_INSTRUCTION);
|
|
29
26
|
}
|
|
30
|
-
return
|
|
27
|
+
return lib;
|
|
31
28
|
}
|
|
32
29
|
export function getNotifeeLibNoThrowForKeepCallAlive() {
|
|
33
|
-
if (!
|
|
30
|
+
if (!lib) {
|
|
34
31
|
const logger = getLogger(['getNotifeeLibNoThrow']);
|
|
35
32
|
logger('info', `${'@notifee/react-native library not installed. It is required to keep call alive in the background for Android. '}${INSTALLATION_INSTRUCTION}`);
|
|
36
33
|
}
|
|
37
|
-
return
|
|
34
|
+
return lib;
|
|
38
35
|
}
|
|
39
36
|
export async function getKeepCallAliveForegroundServiceTypes() {
|
|
40
37
|
const types = [];
|
|
@@ -59,4 +56,4 @@ export function getIncomingCallForegroundServiceTypes() {
|
|
|
59
56
|
const types = [AndroidForegroundServiceType.FOREGROUND_SERVICE_TYPE_SHORT_SERVICE];
|
|
60
57
|
return types;
|
|
61
58
|
}
|
|
62
|
-
//# sourceMappingURL=
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getLogger","PermissionsAndroid","lib","AndroidForegroundServiceType","INSTALLATION_INSTRUCTION","getNotifeeLibThrowIfNotInstalledForPush","Error","getNotifeeLibNoThrowForKeepCallAlive","logger","getKeepCallAliveForegroundServiceTypes","types","hasCameraPermission","check","PERMISSIONS","CAMERA","push","FOREGROUND_SERVICE_TYPE_CAMERA","hasMicrophonePermission","RECORD_AUDIO","FOREGROUND_SERVICE_TYPE_MICROPHONE","hasConnectionPermission","BLUETOOTH_CONNECT","FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE","length","FOREGROUND_SERVICE_TYPE_DATA_SYNC","getIncomingCallForegroundServiceTypes","FOREGROUND_SERVICE_TYPE_SHORT_SERVICE"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/notifee/index.ts"],"mappings":"AAAA,SAASA,S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,KAAK,CACxDX,kBAAkB,CAACY,WAAW,CAACC,MACjC,CAAC;EACD,IAAIH,mBAAmB,EAAE;IACvBD,KAAK,CAACK,IAAI,CAACZ,4BAA4B,CAACa,8BAA8B,CAAC;EACzE;EACA,MAAMC,uBAAuB,GAAG,MAAMhB,kBAAkB,CAACW,KAAK,CAC5DX,kBAAkB,CAACY,WAAW,CAACK,YACjC,CAAC;EACD,IAAID,uBAAuB,EAAE;IAC3BP,KAAK,CAACK,IAAI,CAACZ,4BAA4B,CAACgB,kCAAkC,CAAC;EAC7E;EACA,MAAMC,uBAAuB,GAAG,MAAMnB,kBAAkB,CAACW,KAAK,CAC5DX,kBAAkB,CAACY,WAAW,CAACQ,iBACjC,CAAC;EACD,IAAID,uBAAuB,EAAE;IAC3BV,KAAK,CAACK,IAAI,CACRZ,4BAA4B,CAACmB,wCAC/B,CAAC;EACH;EACA,IAAIZ,KAAK,CAACa,MAAM,KAAK,CAAC,EAAE;IACtBb,KAAK,CAACK,IAAI,CAACZ,4BAA4B,CAACqB,iCAAiC,CAAC;EAC5E;EACA,OAAOd,KAAK;AACd;AAEA,OAAO,SAASe,qCAAqCA,CAAA,EAAG;EACtD,MAAMf,KAAqC,GAAG,CAC5CP,4BAA4B,CAACuB,qCAAqC,CACnE;EACD,OAAOhB,KAAK;AACd","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
let lib;
|
|
2
|
+
try {
|
|
3
|
+
lib = require('@notifee/react-native');
|
|
4
|
+
} catch (_e) {}
|
|
5
|
+
export { lib };
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
IMPORTANT: must keep a failing import in a different file
|
|
9
|
+
Else on commonjs, metro doesnt resolve any other modules properly in a file, if one of the module is not installed
|
|
10
|
+
*/
|
|
11
|
+
//# sourceMappingURL=lib.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["lib","require","_e"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/notifee/lib.ts"],"mappings":"AAEA,IAAIA,GAAqB;AAEzB,IAAI;EACFA,GAAG,GAAGC,OAAO,CAAC,uBAAuB,CAAC;AACxC,CAAC,CAAC,OAAOC,EAAE,EAAE,CAAC;AAEd,SAASF,GAAG;;AAEZ;AACA;AACA;AACA","ignoreList":[]}
|
package/dist/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '1.4.
|
|
1
|
+
export const version = '1.4.19';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StreamVideoConfig } from '../StreamVideoRN/types';
|
|
2
2
|
import { ExpoNotification, PushNotificationiOSType } from './libs';
|
|
3
3
|
import { StreamVideoClient } from '@stream-io/video-client';
|
|
4
|
-
import { Event } from '@notifee/react-native';
|
|
4
|
+
import type { Event } from '@notifee/react-native';
|
|
5
5
|
type PushConfig = NonNullable<StreamVideoConfig['push']>;
|
|
6
6
|
export declare const oniOSExpoNotificationEvent: (event: ExpoNotification) => void;
|
|
7
7
|
export declare const oniOSNotifeeEvent: ({ event, }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/ios.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EACL,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/ios.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EACL,gBAAgB,EAIhB,uBAAuB,EACxB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,iBAAiB,EAAa,MAAM,yBAAyB,CAAC;AAEvE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAkBzD,eAAO,MAAM,0BAA0B,UAAW,gBAAgB,SASjE,CAAC;AAEF,eAAO,MAAM,iBAAiB,eAE3B;IACD,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;CACvB,SAcA,CAAC;AAEF,wBAAgB,qCAAqC,CACnD,YAAY,EAAE,uBAAuB,QAiBtC;AAED,2BAA2B;AAC3B,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBAiD1D"}
|
package/dist/typescript/utils/push/libs/{firebaseMessaging.d.ts → firebaseMessaging/index.d.ts}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Type } from './lib';
|
|
1
2
|
export type { FirebaseMessagingTypes } from '@react-native-firebase/messaging';
|
|
2
|
-
export type FirebaseMessagingType =
|
|
3
|
+
export type FirebaseMessagingType = Type;
|
|
3
4
|
export declare function getFirebaseMessagingLib(): import("@react-native-firebase/app").ReactNativeFirebase.FirebaseModuleWithStatics<import("@react-native-firebase/messaging").FirebaseMessagingTypes.Module, import("@react-native-firebase/messaging").FirebaseMessagingTypes.Statics>;
|
|
4
5
|
export declare function getFirebaseMessagingLibNoThrow(isExpo: boolean): import("@react-native-firebase/app").ReactNativeFirebase.FirebaseModuleWithStatics<import("@react-native-firebase/messaging").FirebaseMessagingTypes.Module, import("@react-native-firebase/messaging").FirebaseMessagingTypes.Statics> | undefined;
|
|
5
|
-
//# sourceMappingURL=
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/firebaseMessaging/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAO,MAAM,OAAO,CAAC;AAElC,YAAY,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAKzC,wBAAgB,uBAAuB,4OAQtC;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,OAAO,uPAa7D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/firebaseMessaging/lib.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,cAAc,kCAAkC,EAAE,OAAO,CAAC;AAE7E,QAAA,IAAI,GAAG,EAAE,IAAI,GAAG,SAAS,CAAC;AAM1B,OAAO,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { Type } from './lib';
|
|
2
|
+
export type NotifeeLib = Type;
|
|
2
3
|
declare enum AndroidForegroundServiceType {
|
|
3
4
|
FOREGROUND_SERVICE_TYPE_CAMERA = 64,
|
|
4
5
|
FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE = 16,
|
|
@@ -21,4 +22,4 @@ export declare function getNotifeeLibNoThrowForKeepCallAlive(): typeof import("@
|
|
|
21
22
|
export declare function getKeepCallAliveForegroundServiceTypes(): Promise<AndroidForegroundServiceType[]>;
|
|
22
23
|
export declare function getIncomingCallForegroundServiceTypes(): AndroidForegroundServiceType[];
|
|
23
24
|
export {};
|
|
24
|
-
//# sourceMappingURL=
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/notifee/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAO,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC;AAE9B,aAAK,4BAA4B;IAC/B,8BAA8B,KAAK;IACnC,wCAAwC,KAAK;IAC7C,iCAAiC,IAAI;IACrC,8BAA8B,MAAM;IACpC,gCAAgC,IAAI;IACpC,sCAAsC,IAAI;IAC1C,wCAAwC,KAAK;IAC7C,wCAAwC,OAAO;IAC/C,kCAAkC,MAAM;IACxC,kCAAkC,IAAI;IACtC,wCAAwC,MAAM;IAC9C,qCAAqC,OAAO;IAC5C,mCAAmC,aAAa;IAChD,uCAAuC,OAAO;IAC9C,gCAAgC,KAAK;CACtC;AAKD,wBAAgB,uCAAuC,2CAQtD;AAED,wBAAgB,oCAAoC,uDASnD;AAED,wBAAsB,sCAAsC,4CA0B3D;AAED,wBAAgB,qCAAqC,mCAKpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/notifee/lib.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,cAAc,uBAAuB,CAAC,CAAC;AAE1D,QAAA,IAAI,GAAG,EAAE,IAAI,GAAG,SAAS,CAAC;AAM1B,OAAO,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Event } from '@notifee/react-native';
|
|
1
|
+
import type { Event } from '@notifee/react-native';
|
|
2
2
|
import { FirebaseMessagingTypes } from './libs/firebaseMessaging';
|
|
3
3
|
import { ExpoNotification } from './libs/expoNotifications';
|
|
4
4
|
import { NonRingingPushEvent } from '../StreamVideoRN/types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,MAAM,iBAAiB,GACzB;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,WAAW,GAAG,mBAAmB,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;CAChB,GACD,SAAS,CAAC;AAEd,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,sBAAsB,CAAC,aAAa,WAG9C;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,KAAK,WAIrD;AAED,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,gBAAgB,uBAYzE;AAED,wBAAgB,qCAAqC,CACnD,YAAY,EAAE,uBAAuB,WAKtC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.4.
|
|
1
|
+
export declare const version = "1.4.19";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
package/src/utils/push/ios.ts
CHANGED
|
@@ -4,12 +4,13 @@ import { pushNonRingingCallData$ } from './internal/rxSubjects';
|
|
|
4
4
|
import {
|
|
5
5
|
ExpoNotification,
|
|
6
6
|
getExpoNotificationsLib,
|
|
7
|
+
getNotifeeLibThrowIfNotInstalledForPush,
|
|
7
8
|
getPushNotificationIosLib,
|
|
8
9
|
PushNotificationiOSType,
|
|
9
10
|
} from './libs';
|
|
10
11
|
import { StreamVideoClient, getLogger } from '@stream-io/video-client';
|
|
11
12
|
import { setPushLogoutCallback } from '../internal/pushLogoutCallback';
|
|
12
|
-
import {
|
|
13
|
+
import type { Event } from '@notifee/react-native';
|
|
13
14
|
import { StreamVideoRN } from '../StreamVideoRN';
|
|
14
15
|
import { StreamPushPayload } from './utils';
|
|
15
16
|
|
|
@@ -51,7 +52,8 @@ export const oniOSNotifeeEvent = ({
|
|
|
51
52
|
if (Platform.OS !== 'ios') return;
|
|
52
53
|
const pushConfig = StreamVideoRN.getConfig().push;
|
|
53
54
|
const { type, detail } = event;
|
|
54
|
-
|
|
55
|
+
const notifeeLib = getNotifeeLibThrowIfNotInstalledForPush();
|
|
56
|
+
if (pushConfig && type === notifeeLib.EventType.PRESS) {
|
|
55
57
|
const streamPayload = detail.notification?.data?.stream as
|
|
56
58
|
| StreamPushPayload
|
|
57
59
|
| undefined;
|
|
@@ -1,29 +1,24 @@
|
|
|
1
1
|
import { getLogger } from '@stream-io/video-client';
|
|
2
|
+
import { Type, lib } from './lib';
|
|
2
3
|
|
|
3
4
|
export type { FirebaseMessagingTypes } from '@react-native-firebase/messaging';
|
|
4
|
-
export type FirebaseMessagingType =
|
|
5
|
-
typeof import('@react-native-firebase/messaging').default;
|
|
6
|
-
|
|
7
|
-
let messaging: FirebaseMessagingType | undefined;
|
|
8
|
-
|
|
9
|
-
try {
|
|
10
|
-
messaging = require('@react-native-firebase/messaging').default;
|
|
11
|
-
} catch (_e) {}
|
|
5
|
+
export type FirebaseMessagingType = Type;
|
|
12
6
|
|
|
13
7
|
const INSTALLATION_INSTRUCTION =
|
|
14
8
|
'Please see https://rnfirebase.io/messaging/usage#installation for installation instructions';
|
|
9
|
+
|
|
15
10
|
export function getFirebaseMessagingLib() {
|
|
16
|
-
if (!
|
|
11
|
+
if (!lib) {
|
|
17
12
|
throw Error(
|
|
18
13
|
'@react-native-firebase/messaging is not installed. ' +
|
|
19
14
|
INSTALLATION_INSTRUCTION
|
|
20
15
|
);
|
|
21
16
|
}
|
|
22
|
-
return
|
|
17
|
+
return lib;
|
|
23
18
|
}
|
|
24
19
|
|
|
25
20
|
export function getFirebaseMessagingLibNoThrow(isExpo: boolean) {
|
|
26
|
-
if (!
|
|
21
|
+
if (!lib) {
|
|
27
22
|
const logger = getLogger(['getFirebaseMessagingLibNoThrow']);
|
|
28
23
|
logger(
|
|
29
24
|
'warn',
|
|
@@ -34,5 +29,5 @@ export function getFirebaseMessagingLibNoThrow(isExpo: boolean) {
|
|
|
34
29
|
}${INSTALLATION_INSTRUCTION}`
|
|
35
30
|
);
|
|
36
31
|
}
|
|
37
|
-
return
|
|
32
|
+
return lib;
|
|
38
33
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type Type = typeof import('@react-native-firebase/messaging').default;
|
|
2
|
+
|
|
3
|
+
let lib: Type | undefined;
|
|
4
|
+
|
|
5
|
+
try {
|
|
6
|
+
lib = require('@react-native-firebase/messaging').default;
|
|
7
|
+
} catch (_e) {}
|
|
8
|
+
|
|
9
|
+
export { lib };
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
IMPORTANT: must keep a failing import in a different file
|
|
13
|
+
Else on commonjs, metro doesnt resolve any other modules properly in a file, if one of the module is not installed
|
|
14
|
+
*/
|
|
@@ -6,6 +6,6 @@ export * from './callkeep';
|
|
|
6
6
|
export * from './notifee';
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
NOTE: must keep each libs in different files
|
|
10
|
-
Else on commonjs, metro doesnt resolve modules properly if one of the module is not installed
|
|
9
|
+
NOTE: must keep each libs in different files
|
|
10
|
+
Else on commonjs, metro doesnt resolve modules properly if one of the module is not installed
|
|
11
11
|
*/
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { getLogger } from '@stream-io/video-client';
|
|
2
2
|
import { PermissionsAndroid } from 'react-native';
|
|
3
|
+
import { Type, lib } from './lib';
|
|
3
4
|
|
|
4
|
-
export type NotifeeLib =
|
|
5
|
+
export type NotifeeLib = Type;
|
|
5
6
|
|
|
6
7
|
enum AndroidForegroundServiceType {
|
|
7
8
|
FOREGROUND_SERVICE_TYPE_CAMERA = 64,
|
|
@@ -21,34 +22,28 @@ enum AndroidForegroundServiceType {
|
|
|
21
22
|
FOREGROUND_SERVICE_TYPE_MANIFEST = -1,
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
let notifeeLib: NotifeeLib | undefined;
|
|
25
|
-
|
|
26
|
-
try {
|
|
27
|
-
notifeeLib = require('@notifee/react-native');
|
|
28
|
-
} catch (_e) {}
|
|
29
|
-
|
|
30
25
|
const INSTALLATION_INSTRUCTION =
|
|
31
26
|
'Please see https://notifee.app/react-native/docs/installation for installation instructions';
|
|
32
27
|
|
|
33
28
|
export function getNotifeeLibThrowIfNotInstalledForPush() {
|
|
34
|
-
if (!
|
|
29
|
+
if (!lib) {
|
|
35
30
|
throw Error(
|
|
36
31
|
'@notifee/react-native is not installed. It is required for implementing push notifications. ' +
|
|
37
32
|
INSTALLATION_INSTRUCTION
|
|
38
33
|
);
|
|
39
34
|
}
|
|
40
|
-
return
|
|
35
|
+
return lib;
|
|
41
36
|
}
|
|
42
37
|
|
|
43
38
|
export function getNotifeeLibNoThrowForKeepCallAlive() {
|
|
44
|
-
if (!
|
|
39
|
+
if (!lib) {
|
|
45
40
|
const logger = getLogger(['getNotifeeLibNoThrow']);
|
|
46
41
|
logger(
|
|
47
42
|
'info',
|
|
48
43
|
`${'@notifee/react-native library not installed. It is required to keep call alive in the background for Android. '}${INSTALLATION_INSTRUCTION}`
|
|
49
44
|
);
|
|
50
45
|
}
|
|
51
|
-
return
|
|
46
|
+
return lib;
|
|
52
47
|
}
|
|
53
48
|
|
|
54
49
|
export async function getKeepCallAliveForegroundServiceTypes() {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type Type = typeof import('@notifee/react-native');
|
|
2
|
+
|
|
3
|
+
let lib: Type | undefined;
|
|
4
|
+
|
|
5
|
+
try {
|
|
6
|
+
lib = require('@notifee/react-native');
|
|
7
|
+
} catch (_e) {}
|
|
8
|
+
|
|
9
|
+
export { lib };
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
IMPORTANT: must keep a failing import in a different file
|
|
13
|
+
Else on commonjs, metro doesnt resolve any other modules properly in a file, if one of the module is not installed
|
|
14
|
+
*/
|
package/src/utils/push/utils.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Event } from '@notifee/react-native';
|
|
1
|
+
import type { Event } from '@notifee/react-native';
|
|
2
2
|
import { FirebaseMessagingTypes } from './libs/firebaseMessaging';
|
|
3
3
|
import { ExpoNotification } from './libs/expoNotifications';
|
|
4
4
|
import { NonRingingPushEvent } from '../StreamVideoRN/types';
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.4.
|
|
1
|
+
export const version = '1.4.19';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_videoClient","require","messaging","default","_e","INSTALLATION_INSTRUCTION","getFirebaseMessagingLib","Error","getFirebaseMessagingLibNoThrow","isExpo","logger","getLogger"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/firebaseMessaging.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA,IAAIC,SAA4C;AAEhD,IAAI;EACFA,SAAS,GAAGD,OAAO,CAAC,kCAAkC,CAAC,CAACE,OAAO;AACjE,CAAC,CAAC,OAAOC,EAAE,EAAE,CAAC;AAEd,MAAMC,wBAAwB,GAC5B,6FAA6F;AACxF,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACJ,SAAS,EAAE;IACd,MAAMK,KAAK,CACT,qDAAqD,GACnDF,wBACJ,CAAC;EACH;EACA,OAAOH,SAAS;AAClB;AAEO,SAASM,8BAA8BA,CAACC,MAAe,EAAE;EAC9D,IAAI,CAACP,SAAS,EAAE;IACd,MAAMQ,MAAM,GAAG,IAAAC,sBAAS,EAAC,CAAC,gCAAgC,CAAC,CAAC;IAC5DD,MAAM,CACJ,MAAM,EACN,GACED,MAAM,GACF,iIAAiI,GACjI,EAAE,GACLJ,wBAAwB,EAC7B,CAAC;EACH;EACA,OAAOH,SAAS;AAClB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_videoClient","require","_reactNative","AndroidForegroundServiceType","notifeeLib","_e","INSTALLATION_INSTRUCTION","getNotifeeLibThrowIfNotInstalledForPush","Error","getNotifeeLibNoThrowForKeepCallAlive","logger","getLogger","getKeepCallAliveForegroundServiceTypes","types","hasCameraPermission","PermissionsAndroid","check","PERMISSIONS","CAMERA","push","FOREGROUND_SERVICE_TYPE_CAMERA","hasMicrophonePermission","RECORD_AUDIO","FOREGROUND_SERVICE_TYPE_MICROPHONE","hasConnectionPermission","BLUETOOTH_CONNECT","FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE","length","FOREGROUND_SERVICE_TYPE_DATA_SYNC","getIncomingCallForegroundServiceTypes","FOREGROUND_SERVICE_TYPE_SHORT_SERVICE"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/notifee.ts"],"mappings":";;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAkD,IAI7CE,4BAA4B,0BAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAAA,OAA5BA,4BAA4B;AAAA,EAA5BA,4BAA4B;AAkBjC,IAAIC,UAAkC;AAEtC,IAAI;EACFA,UAAU,GAAGH,OAAO,CAAC,uBAAuB,CAAC;AAC/C,CAAC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;EACA,OAAOf,KAAK;AACd;AAEO,SAASgB,qCAAqCA,CAAA,EAAG;EACtD,MAAMhB,KAAqC,GAAG,CAC5CV,4BAA4B,CAAC2B,qCAAqC,CACnE;EACD,OAAOjB,KAAK;AACd","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["getLogger","messaging","require","default","_e","INSTALLATION_INSTRUCTION","getFirebaseMessagingLib","Error","getFirebaseMessagingLibNoThrow","isExpo","logger"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/firebaseMessaging.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,yBAAyB;AAMnD,IAAIC,SAA4C;AAEhD,IAAI;EACFA,SAAS,GAAGC,OAAO,CAAC,kCAAkC,CAAC,CAACC,OAAO;AACjE,CAAC,CAAC,OAAOC,EAAE,EAAE,CAAC;AAEd,MAAMC,wBAAwB,GAC5B,6FAA6F;AAC/F,OAAO,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACL,SAAS,EAAE;IACd,MAAMM,KAAK,CACT,qDAAqD,GACnDF,wBACJ,CAAC;EACH;EACA,OAAOJ,SAAS;AAClB;AAEA,OAAO,SAASO,8BAA8BA,CAACC,MAAe,EAAE;EAC9D,IAAI,CAACR,SAAS,EAAE;IACd,MAAMS,MAAM,GAAGV,SAAS,CAAC,CAAC,gCAAgC,CAAC,CAAC;IAC5DU,MAAM,CACJ,MAAM,EACN,GACED,MAAM,GACF,iIAAiI,GACjI,EAAE,GACLJ,wBAAwB,EAC7B,CAAC;EACH;EACA,OAAOJ,SAAS;AAClB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["getLogger","PermissionsAndroid","AndroidForegroundServiceType","notifeeLib","require","_e","INSTALLATION_INSTRUCTION","getNotifeeLibThrowIfNotInstalledForPush","Error","getNotifeeLibNoThrowForKeepCallAlive","logger","getKeepCallAliveForegroundServiceTypes","types","hasCameraPermission","check","PERMISSIONS","CAMERA","push","FOREGROUND_SERVICE_TYPE_CAMERA","hasMicrophonePermission","RECORD_AUDIO","FOREGROUND_SERVICE_TYPE_MICROPHONE","hasConnectionPermission","BLUETOOTH_CONNECT","FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE","length","FOREGROUND_SERVICE_TYPE_DATA_SYNC","getIncomingCallForegroundServiceTypes","FOREGROUND_SERVICE_TYPE_SHORT_SERVICE"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/notifee.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,yBAAyB;AACnD,SAASC,kBAAkB,QAAQ,cAAc;AAAC,IAI7CC,4BAA4B,0BAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAAA,OAA5BA,4BAA4B;AAAA,EAA5BA,4BAA4B;AAkBjC,IAAIC,UAAkC;AAEtC,IAAI;EACFA,UAAU,GAAGC,OAAO,CAAC,uBAAuB,CAAC;AAC/C,CAAC,CAAC,OAAOC,EAAE,EAAE,CAAC;AAEd,MAAMC,wBAAwB,GAC5B,6FAA6F;AAE/F,OAAO,SAASC,uCAAuCA,CAAA,EAAG;EACxD,IAAI,CAACJ,UAAU,EAAE;IACf,MAAMK,KAAK,CACT,8FAA8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List":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"firebaseMessaging.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/libs/firebaseMessaging.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,MAAM,MAAM,qBAAqB,GAC/B,cAAc,kCAAkC,EAAE,OAAO,CAAC;AAU5D,wBAAgB,uBAAuB,4OAQtC;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,OAAO,uPAa7D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifee.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/libs/notifee.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG,cAAc,uBAAuB,CAAC,CAAC;AAEhE,aAAK,4BAA4B;IAC/B,8BAA8B,KAAK;IACnC,wCAAwC,KAAK;IAC7C,iCAAiC,IAAI;IACrC,8BAA8B,MAAM;IACpC,gCAAgC,IAAI;IACpC,sCAAsC,IAAI;IAC1C,wCAAwC,KAAK;IAC7C,wCAAwC,OAAO;IAC/C,kCAAkC,MAAM;IACxC,kCAAkC,IAAI;IACtC,wCAAwC,MAAM;IAC9C,qCAAqC,OAAO;IAC5C,mCAAmC,aAAa;IAChD,uCAAuC,OAAO;IAC9C,gCAAgC,KAAK;CACtC;AAWD,wBAAgB,uCAAuC,2CAQtD;AAED,wBAAgB,oCAAoC,uDASnD;AAED,wBAAsB,sCAAsC,4CA0B3D;AAED,wBAAgB,qCAAqC,mCAKpD"}
|