omikit-plugin 3.0.2 → 3.0.4
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/README.md +25 -3
- package/android/build.gradle +24 -9
- package/android/src/main/java/com/omikitplugin/FLLocalCameraView.kt +1 -1
- package/android/src/main/java/com/omikitplugin/FLRemoteCameraModule.kt +1 -1
- package/android/src/main/java/com/omikitplugin/OmikitPluginModule.kt +161 -105
- package/android/src/main/java/com/omikitplugin/state/CallState.kt +7 -6
- package/ios/CallProcess/CallManager.swift +109 -47
- package/ios/CallProcess/CallState.swift +13 -1
- package/ios/CallProcess/OmiUtils.swift +53 -0
- package/ios/Model/OmiCallModel.swift +66 -0
- package/ios/Model/StartCalModel.swift +17 -0
- package/lib/commonjs/omi_call_state.js +10 -10
- package/lib/commonjs/omi_call_state.js.map +1 -1
- package/lib/commonjs/omi_local_camera.js.map +1 -1
- package/lib/commonjs/omi_remote_camera.js.map +1 -1
- package/lib/commonjs/omi_start_call_status.js +4 -4
- package/lib/commonjs/omi_start_call_status.js.map +1 -1
- package/lib/commonjs/omikit.js +1 -0
- package/lib/commonjs/omikit.js.map +1 -1
- package/lib/module/omi_call_state.js +10 -10
- package/lib/module/omi_call_state.js.map +1 -1
- package/lib/module/omi_local_camera.js.map +1 -1
- package/lib/module/omi_remote_camera.js.map +1 -1
- package/lib/module/omi_start_call_status.js +3 -3
- package/lib/module/omi_start_call_status.js.map +1 -1
- package/lib/module/omikit.js +1 -0
- package/lib/module/omikit.js.map +1 -1
- package/lib/typescript/omi_call_state.d.ts +7 -7
- package/lib/typescript/omi_call_state.d.ts.map +1 -1
- package/lib/typescript/omikit.d.ts +4 -4
- package/lib/typescript/omikit.d.ts.map +1 -1
- package/omikit-plugin.podspec +1 -1
- package/package.json +1 -1
- package/src/omi_call_state.tsx +7 -7
- package/src/omikit.tsx +5 -4
- package/CHANGELOG.md +0 -86
package/package.json
CHANGED
package/src/omi_call_state.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export enum OmiCallState {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
unknown = 0,
|
|
3
|
+
calling = 1,
|
|
4
|
+
incoming = 2,
|
|
5
|
+
early = 3,
|
|
6
|
+
connecting = 4,
|
|
7
|
+
confirmed = 5,
|
|
8
|
+
disconnected = 6
|
|
9
9
|
}
|
package/src/omikit.tsx
CHANGED
|
@@ -30,6 +30,7 @@ export function getInitialCall(): Promise<any> {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export function initCallWithUserPassword(data: any): Promise<boolean> {
|
|
33
|
+
console.log("data OmikitPlugin: ", data)
|
|
33
34
|
return OmikitPlugin.initCallWithUserPassword(data);
|
|
34
35
|
}
|
|
35
36
|
|
|
@@ -41,19 +42,19 @@ export function updateToken(data: any): Promise<void> {
|
|
|
41
42
|
return OmikitPlugin.updateToken(data);
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
export function startCall(data: any): Promise<
|
|
45
|
+
export function startCall(data: any): Promise<boolean> {
|
|
45
46
|
return OmikitPlugin.startCall(data);
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
export function startCallWithUuid(data: any): Promise<
|
|
49
|
+
export function startCallWithUuid(data: any): Promise<boolean> {
|
|
49
50
|
return OmikitPlugin.startCallWithUuid(data);
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
export function joinCall(): Promise<
|
|
53
|
+
export function joinCall(): Promise<any> {
|
|
53
54
|
return OmikitPlugin.joinCall();
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
export function endCall(): Promise<
|
|
57
|
+
export function endCall(): Promise<any> {
|
|
57
58
|
return OmikitPlugin.endCall();
|
|
58
59
|
}
|
|
59
60
|
|
package/CHANGELOG.md
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
## 3.0.1
|
|
6
|
-
- Increase android core
|
|
7
|
-
- Update new readme
|
|
8
|
-
- Update sample
|
|
9
|
-
|
|
10
|
-
## 3.0.0
|
|
11
|
-
- **BREAKING CHANGE**
|
|
12
|
-
- Increase android/core core
|
|
13
|
-
- We support lifecycle for calling
|
|
14
|
-
- Support cancel a call
|
|
15
|
-
- Return `startCallStatus`
|
|
16
|
-
- Update sample
|
|
17
|
-
|
|
18
|
-
## 2.4.0
|
|
19
|
-
- **BREAKING CHANGE**
|
|
20
|
-
- Increase android/core core
|
|
21
|
-
- Support Swift document
|
|
22
|
-
- Support to return `outgoing`, `ringing`, `connecting`, `calling` status
|
|
23
|
-
- Fix null point on release mode Android
|
|
24
|
-
- Improve performance
|
|
25
|
-
- Update sample
|
|
26
|
-
|
|
27
|
-
## 2.3.4
|
|
28
|
-
- Increase android/iOS core
|
|
29
|
-
- Support to custom channel id
|
|
30
|
-
- Return call quality
|
|
31
|
-
- Update sample
|
|
32
|
-
|
|
33
|
-
## 2.3.3
|
|
34
|
-
- Increase android core
|
|
35
|
-
- Add `systemAlertWindow`, `openSystemAlertSetting` to check system alert window permission
|
|
36
|
-
- Update sample
|
|
37
|
-
|
|
38
|
-
## 2.3.2
|
|
39
|
-
- Increase android core
|
|
40
|
-
- Improve background and kill app state
|
|
41
|
-
- Update sample
|
|
42
|
-
|
|
43
|
-
## 2.3.1
|
|
44
|
-
- Increase android core
|
|
45
|
-
- Improve setup camera
|
|
46
|
-
- Update sample
|
|
47
|
-
|
|
48
|
-
## 2.3.0
|
|
49
|
-
- Increase android/iOS core
|
|
50
|
-
- Support to receive switchboard
|
|
51
|
-
- Update sample
|
|
52
|
-
|
|
53
|
-
## 2.2.3
|
|
54
|
-
- Increase android core
|
|
55
|
-
- Allow to set image for the incoming notification
|
|
56
|
-
- Update sample
|
|
57
|
-
|
|
58
|
-
## 2.2.2
|
|
59
|
-
- Increase android/ ios core
|
|
60
|
-
- Support to change notification icon on Android
|
|
61
|
-
- Update sample
|
|
62
|
-
|
|
63
|
-
## 2.2.1
|
|
64
|
-
- Update readme
|
|
65
|
-
|
|
66
|
-
## 2.2.0
|
|
67
|
-
- Increase Android/iOS core version
|
|
68
|
-
- Replace `FMService` to `FirebaseMessageReceiver` in AndroidManifest.xml
|
|
69
|
-
- Support missed call
|
|
70
|
-
- Return call information after the call ending.
|
|
71
|
-
- Add `getCurrentUser`, `getGuestUser` and `getUserInfo` to get user information.
|
|
72
|
-
- Update document and sample
|
|
73
|
-
|
|
74
|
-
## 2.1.2
|
|
75
|
-
- Fix crash when startCall on Android
|
|
76
|
-
|
|
77
|
-
## 2.1.1
|
|
78
|
-
- Increase Android/iOS core version
|
|
79
|
-
- Add `registerVideoEvent` to register remote video ready.
|
|
80
|
-
- Update document and sample
|
|
81
|
-
|
|
82
|
-
## 2.1.0
|
|
83
|
-
- Increase Android/iOS core version
|
|
84
|
-
- Add `logout` function
|
|
85
|
-
- Remove appId and deviceId in `updateToken`
|
|
86
|
-
- Update sample
|