@qusaieilouti99/call-manager 0.1.25 → 0.1.26
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/lib/module/NativeCallManager.js +3 -1
- package/lib/module/NativeCallManager.js.map +1 -1
- package/lib/module/index.js +10 -11
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/NativeCallManager.d.ts +3 -1
- package/lib/typescript/src/NativeCallManager.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/NativeCallManager.ts +4 -1
- package/src/index.tsx +10 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"..\\..\\src","sources":["NativeCallManager.ts"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"..\\..\\src","sources":["NativeCallManager.ts"],"mappings":";;AAAA;AACA,SAA2BA,mBAAmB,QAAQ,cAAc;AAgBpE,eAAeA,mBAAmB,CAACC,YAAY,CAAO,aAAa,CAAC","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
13
|
-
export const keepScreenAwake = NativeCallManager.keepScreenAwake;
|
|
3
|
+
import CallManager from "./NativeCallManager.js";
|
|
4
|
+
export const reportIncomingCall = CallManager.reportIncomingCall;
|
|
5
|
+
export const endCall = CallManager.endCall;
|
|
6
|
+
export const answerCall = CallManager.answerCall;
|
|
7
|
+
export const silenceRingtone = CallManager.silenceRingtone;
|
|
8
|
+
export const rejectCurrentAndAnswerNew = CallManager.rejectCurrentAndAnswerNew;
|
|
9
|
+
export const setEventHandler = CallManager.setEventHandler;
|
|
10
|
+
export const getAudioDevices = CallManager.getAudioDevices;
|
|
11
|
+
export const setAudioRoute = CallManager.setAudioRoute;
|
|
12
|
+
export const keepScreenAwake = CallManager.keepScreenAwake;
|
|
14
13
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["CallManager","reportIncomingCall","endCall","answerCall","silenceRingtone","rejectCurrentAndAnswerNew","setEventHandler","getAudioDevices","setAudioRoute","keepScreenAwake"],"sourceRoot":"..\\..\\src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,WAAW,MAAM,wBAAqB;AAG7C,OAAO,MAAMC,kBAAkB,GAAGD,WAAW,CAACC,kBAAkB;AAChE,OAAO,MAAMC,OAAO,GAAGF,WAAW,CAACE,OAAO;AAC1C,OAAO,MAAMC,UAAU,GAAGH,WAAW,CAACG,UAAU;AAChD,OAAO,MAAMC,eAAe,GAAGJ,WAAW,CAACI,eAAe;AAC1D,OAAO,MAAMC,yBAAyB,GAAGL,WAAW,CAACK,yBAAyB;AAC9E,OAAO,MAAMC,eAAe,GAAGN,WAAW,CAACM,eAAe;AAE1D,OAAO,MAAMC,eAAe,GAAGP,WAAW,CAACO,eAAe;AAC1D,OAAO,MAAMC,aAAa,GAAGR,WAAW,CAACQ,aAAa;AACtD,OAAO,MAAMC,eAAe,GAAGT,WAAW,CAACS,eAAe","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type TurboModule } from 'react-native';
|
|
2
2
|
export interface Spec extends TurboModule {
|
|
3
3
|
reportIncomingCall(callId: string, callData: string): void;
|
|
4
4
|
endCall(callId: string): void;
|
|
@@ -10,4 +10,6 @@ export interface Spec extends TurboModule {
|
|
|
10
10
|
setAudioRoute(route: string): void;
|
|
11
11
|
keepScreenAwake(keepAwake: boolean): void;
|
|
12
12
|
}
|
|
13
|
+
declare const _default: Spec;
|
|
14
|
+
export default _default;
|
|
13
15
|
//# sourceMappingURL=NativeCallManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeCallManager.d.ts","sourceRoot":"","sources":["../../../src/NativeCallManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NativeCallManager.d.ts","sourceRoot":"","sources":["../../../src/NativeCallManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAuB,MAAM,cAAc,CAAC;AAErE,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3D,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,eAAe,IAAI,IAAI,CAAC;IACxB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAClE,eAAe,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;IAG3E,eAAe,IAAI,MAAM,EAAE,CAAC;IAC5B,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,eAAe,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;CAC3C;;AAED,wBAAqE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,4CAAiC,CAAC;AACjE,eAAO,MAAM,OAAO,0BAAsB,CAAC;AAC3C,eAAO,MAAM,UAAU,0BAAyB,CAAC;AACjD,eAAO,MAAM,eAAe,YAA8B,CAAC;AAC3D,eAAO,MAAM,yBAAyB,4CAAwC,CAAC;AAC/E,eAAO,MAAM,eAAe,+DAA8B,CAAC;AAE3D,eAAO,MAAM,eAAe,gBAA8B,CAAC;AAC3D,eAAO,MAAM,aAAa,yBAA4B,CAAC;AACvD,eAAO,MAAM,eAAe,8BAA8B,CAAC"}
|
package/package.json
CHANGED
package/src/NativeCallManager.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// NativeCallManager.ts
|
|
2
|
+
import { type TurboModule, TurboModuleRegistry } from 'react-native';
|
|
2
3
|
|
|
3
4
|
export interface Spec extends TurboModule {
|
|
4
5
|
reportIncomingCall(callId: string, callData: string): void;
|
|
@@ -13,3 +14,5 @@ export interface Spec extends TurboModule {
|
|
|
13
14
|
setAudioRoute(route: string): void;
|
|
14
15
|
keepScreenAwake(keepAwake: boolean): void;
|
|
15
16
|
}
|
|
17
|
+
|
|
18
|
+
export default TurboModuleRegistry.getEnforcing<Spec>('CallManager');
|
package/src/index.tsx
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Spec } from './NativeCallManager';
|
|
1
|
+
import CallManager from './NativeCallManager';
|
|
3
2
|
|
|
4
|
-
const NativeCallManager = TurboModuleRegistry.getEnforcing<Spec>('CallManager');
|
|
5
3
|
|
|
6
|
-
export const reportIncomingCall =
|
|
7
|
-
export const endCall =
|
|
8
|
-
export const answerCall =
|
|
9
|
-
export const silenceRingtone =
|
|
10
|
-
export const rejectCurrentAndAnswerNew =
|
|
11
|
-
export const setEventHandler =
|
|
4
|
+
export const reportIncomingCall = CallManager.reportIncomingCall;
|
|
5
|
+
export const endCall = CallManager.endCall;
|
|
6
|
+
export const answerCall = CallManager.answerCall;
|
|
7
|
+
export const silenceRingtone = CallManager.silenceRingtone;
|
|
8
|
+
export const rejectCurrentAndAnswerNew = CallManager.rejectCurrentAndAnswerNew;
|
|
9
|
+
export const setEventHandler = CallManager.setEventHandler;
|
|
12
10
|
|
|
13
|
-
export const getAudioDevices =
|
|
14
|
-
export const setAudioRoute =
|
|
15
|
-
export const keepScreenAwake =
|
|
11
|
+
export const getAudioDevices = CallManager.getAudioDevices;
|
|
12
|
+
export const setAudioRoute = CallManager.setAudioRoute;
|
|
13
|
+
export const keepScreenAwake = CallManager.keepScreenAwake;
|