@stream-io/video-react-native-sdk 1.4.17 → 1.4.18

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 (52) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/commonjs/utils/push/ios.js +2 -2
  3. package/dist/commonjs/utils/push/ios.js.map +1 -1
  4. package/dist/commonjs/utils/push/libs/{firebaseMessaging.js → firebaseMessaging/index.js} +6 -9
  5. package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js.map +1 -0
  6. package/dist/commonjs/utils/push/libs/firebaseMessaging/lib.js +16 -0
  7. package/dist/commonjs/utils/push/libs/firebaseMessaging/lib.js.map +1 -0
  8. package/dist/commonjs/utils/push/libs/{notifee.js → notifee/index.js} +6 -9
  9. package/dist/commonjs/utils/push/libs/notifee/index.js.map +1 -0
  10. package/dist/commonjs/utils/push/libs/notifee/lib.js +16 -0
  11. package/dist/commonjs/utils/push/libs/notifee/lib.js.map +1 -0
  12. package/dist/commonjs/version.js +1 -1
  13. package/dist/module/utils/push/ios.js +3 -3
  14. package/dist/module/utils/push/ios.js.map +1 -1
  15. package/dist/module/utils/push/libs/{firebaseMessaging.js → firebaseMessaging/index.js} +6 -9
  16. package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -0
  17. package/dist/module/utils/push/libs/firebaseMessaging/lib.js +11 -0
  18. package/dist/module/utils/push/libs/firebaseMessaging/lib.js.map +1 -0
  19. package/dist/module/utils/push/libs/index.js +2 -2
  20. package/dist/module/utils/push/libs/{notifee.js → notifee/index.js} +6 -9
  21. package/dist/module/utils/push/libs/notifee/index.js.map +1 -0
  22. package/dist/module/utils/push/libs/notifee/lib.js +11 -0
  23. package/dist/module/utils/push/libs/notifee/lib.js.map +1 -0
  24. package/dist/module/version.js +1 -1
  25. package/dist/typescript/utils/push/ios.d.ts +1 -1
  26. package/dist/typescript/utils/push/ios.d.ts.map +1 -1
  27. package/dist/typescript/utils/push/libs/{firebaseMessaging.d.ts → firebaseMessaging/index.d.ts} +3 -2
  28. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -0
  29. package/dist/typescript/utils/push/libs/firebaseMessaging/lib.d.ts +4 -0
  30. package/dist/typescript/utils/push/libs/firebaseMessaging/lib.d.ts.map +1 -0
  31. package/dist/typescript/utils/push/libs/{notifee.d.ts → notifee/index.d.ts} +3 -2
  32. package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -0
  33. package/dist/typescript/utils/push/libs/notifee/lib.d.ts +4 -0
  34. package/dist/typescript/utils/push/libs/notifee/lib.d.ts.map +1 -0
  35. package/dist/typescript/utils/push/utils.d.ts +1 -1
  36. package/dist/typescript/utils/push/utils.d.ts.map +1 -1
  37. package/dist/typescript/version.d.ts +1 -1
  38. package/package.json +1 -1
  39. package/src/utils/push/ios.ts +4 -2
  40. package/src/utils/push/libs/{firebaseMessaging.ts → firebaseMessaging/index.ts} +7 -12
  41. package/src/utils/push/libs/firebaseMessaging/lib.ts +14 -0
  42. package/src/utils/push/libs/index.ts +2 -2
  43. package/src/utils/push/libs/{notifee.ts → notifee/index.ts} +6 -11
  44. package/src/utils/push/libs/notifee/lib.ts +14 -0
  45. package/src/utils/push/utils.ts +1 -1
  46. package/src/version.ts +1 -1
  47. package/dist/commonjs/utils/push/libs/firebaseMessaging.js.map +0 -1
  48. package/dist/commonjs/utils/push/libs/notifee.js.map +0 -1
  49. package/dist/module/utils/push/libs/firebaseMessaging.js.map +0 -1
  50. package/dist/module/utils/push/libs/notifee.js.map +0 -1
  51. package/dist/typescript/utils/push/libs/firebaseMessaging.d.ts.map +0 -1
  52. package/dist/typescript/utils/push/libs/notifee.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [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)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 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)
11
+
5
12
  ## [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
13
 
7
14
 
@@ -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
- if (pushConfig && type === _reactNative2.EventType.PRESS) {
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","_reactNative2","_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","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;AAMA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAKA,IAAIO,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,0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C1D,CAAC;EACD,IAAI1C,UAAU,CAAC4C,MAAM,EAAE;IACrB,MAAMC,oBAAoB,GAAG,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,EAAGjE,KAAK,IAAK;MAC7D6C,cAAc,CAAC7C,KAAK,CAAC;IACvB,CAAC,CAAC;IACF0C,sBAAsB,CAAC,MAAM;MAC3BV,sBAAsB,CAACkC,mBAAmB,CAAC,UAAU,CAAC;IACxD,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
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,iBA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M,EAAE;IACrB,MAAMC,oBAAoB,GAAG,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
- let messaging;
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 (!messaging) {
12
+ if (!_lib.lib) {
16
13
  throw Error('@react-native-firebase/messaging is not installed. ' + INSTALLATION_INSTRUCTION);
17
14
  }
18
- return messaging;
15
+ return _lib.lib;
19
16
  }
20
17
  function getFirebaseMessagingLibNoThrow(isExpo) {
21
- if (!messaging) {
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 messaging;
22
+ return _lib.lib;
26
23
  }
27
- //# sourceMappingURL=firebaseMessaging.js.map
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 (!notifeeLib) {
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 notifeeLib;
36
+ return _lib.lib;
40
37
  }
41
38
  function getNotifeeLibNoThrowForKeepCallAlive() {
42
- if (!notifeeLib) {
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 notifeeLib;
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=notifee.js.map
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":"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EAChD,MAAMC,mBAAmB,GAAG,MAAMC,+BAAkB,CAACC,KAAK,CACxDD,+BAAkB,CAACE,WAAW,CAACC,MACjC,CAAC;EACD,IAAIJ,mBAAmB,EAAE;IACvBD,KAAK,CAACM,IAAI,CAACf,4BAA4B,CAACgB,8BAA8B,CAAC;EACzE;EACA,MAAMC,uBAAuB,GAAG,MAAMN,+BAAkB,CAACC,KAAK,CAC5DD,+BAAkB,CAACE,WAAW,CAACK,YACjC,CAAC;EACD,IAAID,uBAAuB,EAAE;IAC3BR,KAAK,CAACM,IAAI,CAACf,4BAA4B,CAACmB,kCAAkC,CAAC;EAC7E;EACA,MAAMC,uBAAuB,GAAG,MAAMT,+BAAkB,CAACC,KAAK,CAC5DD,+BAAkB,CAACE,WAAW,CAACQ,iBACjC,CAAC;EACD,IAAID,uBAAuB,EAAE;IAC3BX,KAAK,CAACM,IAAI,CACRf,4BAA4B,CAACsB,wCAC/B,CAAC;EACH;EACA,IAAIb,KAAK,CAACc,MAAM,KAAK,CAAC,EAAE;IACtBd,KAAK,CAACM,IAAI,CAACf,4BAA4B,CAACwB,iCAAiC,CAAC;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":[]}
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = void 0;
7
- const version = exports.version = '1.4.17';
7
+ const version = exports.version = '1.4.18';
8
8
  //# sourceMappingURL=version.js.map
@@ -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
- if (pushConfig && type === EventType.PRESS) {
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","EventType","StreamVideoRN","lastApnToken","token","userId","processNonRingingNotificationStreamPayload","streamPayload","sender","type","cid","call_cid","next","oniOSExpoNotificationEvent","event","pushConfig","getConfig","push","request","trigger","payload","stream","oniOSNotifeeEvent","OS","detail","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,yBAAyB,QAEpB,QAAQ;AACf,SAA4BC,SAAS,QAAQ,yBAAyB;AACtE,SAASC,qBAAqB,QAAQ,gCAAgC;AACtE,SAASC,SAAS,QAAe,uBAAuB;AACxD,SAASC,aAAa,QAAQ,kBAAkB;AAKhD,IAAIC,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/Bb,uBAAuB,CAACgB,IAAI,CAAC;MAAEF,GAAG;MAAED;IAAK,CAAC,CAAC;IAC3C,OAAO;MAAEC,GAAG;MAAED;IAAK,CAAC;EACtB;AACF;AAEA,OAAO,MAAMI,0BAA0B,GAAIC,KAAuB,IAAK;EACrE,MAAMC,UAAU,GAAGb,aAAa,CAACc,SAAS,CAAC,CAAC,CAACC,IAAI;EACjD,IAAIF,UAAU,EAAE;IACd,IAAID,KAAK,CAACI,OAAO,CAACC,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,KAAK,EAAE,KAAK,EAAE8C,kBAAkB,CAAC;EAC1D,CAAC;EACD,IAAInC,UAAU,CAACqC,MAAM,EAAE;IACrB,MAAMC,oBAAoB,GAAGxD,uBAAuB,CAAC,CAAC;IACtDwD,oBAAoB,CAACC,uBAAuB,CAAC,CAAC,CAACC,IAAI,CAAEC,eAAe,IAAK;MACvEb,cAAc,CAACa,eAAe,CAAC7B,IAAI,CAAC;IACtC,CAAC,CAAC;IACF,MAAM8B,YAAY,GAAGJ,oBAAoB,CAACK,oBAAoB,CAC3DF,eAAe,IAAK;MACnBb,cAAc,CAACa,eAAe,CAAC7B,IAAI,CAAC;IACtC,CACF,CAAC;IACDa,sBAAsB,CAAC,MAAM;MAC3BiB,YAAY,CAACE,MAAM,CAAC,CAAC;IACvB,CAAC,CAAC;EACJ,CAAC,MAAM;IACL,MAAM5B,sBAAsB,GAAGjC,yBAAyB,CAAC,CAAC;IAC1DiC,sBAAsB,CAAC6B,gBAAgB,CAAC,UAAU,EAAGxD,KAAK,IAAK;MAC7DuC,cAAc,CAACvC,KAAK,CAAC;IACvB,CAAC,CAAC;IACFoC,sBAAsB,CAAC,MAAM;MAC3BT,sBAAsB,CAAC8B,mBAAmB,CAAC,UAAU,CAAC;IACxD,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
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;AACtE,SAASC,qBAAqB,QAAQ,gCAAgC;AAEtE,SAASC,aAAa,QAAQ,kBAAkB;AAKhD,IAAIC,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/Bb,uBAAuB,CAACgB,IAAI,CAAC;MAAEF,GAAG;MAAED;IAAK,CAAC,CAAC;IAC3C,OAAO;MAAEC,GAAG;MAAED;IAAK,CAAC;EACtB;AACF;AAEA,OAAO,MAAMI,0BAA0B,GAAIC,KAAuB,IAAK;EACrE,MAAMC,UAAU,GAAGb,aAAa,CAACc,SAAS,CAAC,CAAC,CAACC,IAAI;EACjD,IAAIF,UAAU,EAAE;IACd,IAAID,KAAK,CAACI,OAAO,CAACC,OAAO,CAACV,IAAI,KAAK,MAAM,EAAE;MACzC,MAAMF,aAAa,GAAGO,KAAK,CAACI,OAAO,CAACC,OAAO,CAACC,OAAO,EAC/CC,MAA2B;MAC/Bf,0CAA0C,CAACC,aAAa,CAAC;IAC3D;EACF;AACF,CAAC;AAED,OAAO,MAAMe,iBAAiB,GAAGA,CAA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,oBAAoB,CAACC,uBAAuB,CAAC,CAAC,CAACC,IAAI,CAAEC,eAAe,IAAK;MACvEb,cAAc,CAACa,eAAe,CAAC7B,IAAI,CAAC;IACtC,CAAC,CAAC;IACF,MAAM8B,YAAY,GAAGJ,oBAAoB,CAACK,oBAAoB,CAC3DF,eAAe,IAAK;MACnBb,cAAc,CAACa,eAAe,CAAC7B,IAAI,CAAC;IACtC,CACF,CAAC;IACDa,sBAAsB,CAAC,MAAM;MAC3BiB,YAAY,CAACE,MAAM,CAAC,CAAC;IACvB,CAAC,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
- let messaging;
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 (!messaging) {
5
+ if (!lib) {
9
6
  throw Error('@react-native-firebase/messaging is not installed. ' + INSTALLATION_INSTRUCTION);
10
7
  }
11
- return messaging;
8
+ return lib;
12
9
  }
13
10
  export function getFirebaseMessagingLibNoThrow(isExpo) {
14
- if (!messaging) {
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 messaging;
15
+ return lib;
19
16
  }
20
- //# sourceMappingURL=firebaseMessaging.js.map
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 (!notifeeLib) {
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 notifeeLib;
27
+ return lib;
31
28
  }
32
29
  export function getNotifeeLibNoThrowForKeepCallAlive() {
33
- if (!notifeeLib) {
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 notifeeLib;
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=notifee.js.map
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,SAAS,QAAQ,yBAAyB;AACnD,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SAAeC,GAAG,QAAQ,OAAO;AAAC,IAI7BC,4BAA4B,0BAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,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AC;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":[]}
@@ -1,2 +1,2 @@
1
- export const version = '1.4.17';
1
+ export const version = '1.4.18';
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,EAGhB,uBAAuB,EACxB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,iBAAiB,EAAa,MAAM,yBAAyB,CAAC;AAEvE,OAAO,EAAa,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAIzD,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,SAaA,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"}
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"}
@@ -1,5 +1,6 @@
1
+ import { Type } from './lib';
1
2
  export type { FirebaseMessagingTypes } from '@react-native-firebase/messaging';
2
- export type FirebaseMessagingType = typeof import('@react-native-firebase/messaging').default;
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=firebaseMessaging.d.ts.map
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,4 @@
1
+ export type Type = typeof import('@react-native-firebase/messaging').default;
2
+ declare let lib: Type | undefined;
3
+ export { lib };
4
+ //# sourceMappingURL=lib.d.ts.map
@@ -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
- export type NotifeeLib = typeof import('@notifee/react-native');
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=notifee.d.ts.map
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,4 @@
1
+ export type Type = typeof import('@notifee/react-native');
2
+ declare let lib: Type | undefined;
3
+ export { lib };
4
+ //# sourceMappingURL=lib.d.ts.map
@@ -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;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO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E;AAED,wBAAgB,qCAAqC,CACnD,YAAY,EAAE,uBAAuB,WAKtC"}
@@ -1,2 +1,2 @@
1
- export declare const version = "1.4.17";
1
+ export declare const version = "1.4.18";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-react-native-sdk",
3
- "version": "1.4.17",
3
+ "version": "1.4.18",
4
4
  "packageManager": "yarn@3.2.4",
5
5
  "main": "dist/commonjs/index.js",
6
6
  "module": "dist/module/index.js",
@@ -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 { EventType, Event } from '@notifee/react-native';
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
- if (pushConfig && type === EventType.PRESS) {
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 (!messaging) {
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 messaging;
17
+ return lib;
23
18
  }
24
19
 
25
20
  export function getFirebaseMessagingLibNoThrow(isExpo: boolean) {
26
- if (!messaging) {
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 messaging;
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 = typeof import('@notifee/react-native');
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 (!notifeeLib) {
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 notifeeLib;
35
+ return lib;
41
36
  }
42
37
 
43
38
  export function getNotifeeLibNoThrowForKeepCallAlive() {
44
- if (!notifeeLib) {
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 notifeeLib;
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
+ */
@@ -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.17';
1
+ export const version = '1.4.18';
@@ -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,CAAC,OAAOI,EAAE,EAAE,CAAC;AAEd,MAAMC,wBAAwB,GAC5B,6FAA6F;AAExF,SAASC,uCAAuCA,CAAA,EAAG;EACxD,IAAI,CAACH,UAAU,EAAE;IACf,MAAMI,KAAK,CACT,8FAA8F,GAC5FF,wBACJ,CAAC;EACH;EACA,OAAOF,UAAU;AACnB;AAEO,SAASK,oCAAoCA,CAAA,EAAG;EACrD,IAAI,CAACL,UAAU,EAAE;IACf,MAAMM,MAAM,GAAG,IAAAC,sBAAS,EAAC,CAAC,sBAAsB,CAAC,CAAC;IAClDD,MAAM,CACJ,MAAM,EACN,GAAG,gHAAgH,GAAGJ,wBAAwB,EAChJ,CAAC;EACH;EACA,OAAOF,UAAU;AACnB;AAEO,eAAeQ,sCAAsCA,CAAA,EAAG;EAC7D,MAAMC,KAAqC,GAAG,EAAE;EAChD,MAAMC,mBAAmB,GAAG,MAAMC,+BAAkB,CAACC,KAAK,CACxDD,+BAAkB,CAACE,WAAW,CAACC,MACjC,CAAC;EACD,IAAIJ,mBAAmB,EAAE;IACvBD,KAAK,CAACM,IAAI,CAAChB,4BAA4B,CAACiB,8BAA8B,CAAC;EACzE;EACA,MAAMC,uBAAuB,GAAG,MAAMN,+BAAkB,CAACC,KAAK,CAC5DD,+BAAkB,CAACE,WAAW,CAACK,YACjC,CAAC;EACD,IAAID,uBAAuB,EAAE;IAC3BR,KAAK,CAACM,IAAI,CAAChB,4BAA4B,CAACoB,kCAAkC,CAAC;EAC7E;EACA,MAAMC,uBAAuB,GAAG,MAAMT,+BAAkB,CAACC,KAAK,CAC5DD,+BAAkB,CAACE,WAAW,CAACQ,iBACjC,CAAC;EACD,IAAID,uBAAuB,EAAE;IAC3BX,KAAK,CAACM,IAAI,CACRhB,4BAA4B,CAACuB,wCAC/B,CAAC;EACH;EACA,IAAIb,KAAK,CAACc,MAAM,KAAK,CAAC,EAAE;IACtBd,KAAK,CAACM,IAAI,CAAChB,4BAA4B,CAACyB,iCAAiC,CAAC;EAC5E;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_SERV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,CAAC;EACH;EACA,OAAOH,UAAU;AACnB;AAEA,OAAO,eAAeQ,sCAAsCA,CAAA,EAAG;EAC7D,MAAMC,KAAqC,GAAG,EAAE;EAChD,MAAMC,mBAAmB,GAAG,MAAMZ,kBAAkB,CAACa,KAAK,CACxDb,kBAAkB,CAACc,WAAW,CAACC,MACjC,CAAC;EACD,IAAIH,mBAAmB,EAAE;IACvBD,KAAK,CAACK,IAAI,CAACf,4BAA4B,CAACgB,8BAA8B,CAAC;EACzE;EACA,MAAMC,uBAAuB,GAAG,MAAMlB,kBAAkB,CAACa,KAAK,CAC5Db,kBAAkB,CAACc,WAAW,CAACK,YACjC,CAAC;EACD,IAAID,uBAAuB,EAAE;IAC3BP,KAAK,CAACK,IAAI,CAACf,4BAA4B,CAACmB,kCAAkC,CAAC;EAC7E;EACA,MAAMC,uBAAuB,GAAG,MAAMrB,kBAAkB,CAACa,KAAK,CAC5Db,kBAAkB,CAACc,WAAW,CAACQ,iBACjC,CAAC;EACD,IAAID,uBAAuB,EAAE;IAC3BV,KAAK,CAACK,IAAI,CACRf,4BAA4B,CAACsB,wCAC/B,CAAC;EACH;EACA,IAAIZ,KAAK,CAACa,MAAM,KAAK,CAAC,EAAE;IACtBb,KAAK,CAACK,IAAI,CAACf,4BAA4B,CAACwB,iCAAiC,CAAC;EAC5E;EACA,OAAOd,KAAK;AACd;AAEA,OAAO,SAASe,qCAAqCA,CAAA,EAAG;EACtD,MAAMf,KAAqC,GAAG,CAC5CV,4BAA4B,CAAC0B,qCAAqC,CACnE;EACD,OAAOhB,KAAK;AACd","ignoreList":[]}
@@ -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"}