omikit-plugin 3.3.29 → 4.0.2
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 +994 -1217
- package/android/build.gradle +22 -72
- package/android/gradle.properties +4 -4
- package/android/src/main/java/com/omikitplugin/FLLocalCameraModule.kt +1 -1
- package/android/src/main/java/com/omikitplugin/FLRemoteCameraModule.kt +1 -1
- package/android/src/main/java/com/omikitplugin/OmikitPluginModule.kt +326 -356
- package/android/src/main/java/com/omikitplugin/constants/constant.kt +2 -1
- package/ios/CallProcess/CallManager.swift +45 -35
- package/ios/Constant/Constant.swift +1 -0
- package/ios/Library/OmikitPlugin.m +75 -1
- package/ios/Library/OmikitPlugin.swift +199 -16
- package/ios/OmikitPlugin-Protocol.h +161 -0
- package/lib/commonjs/NativeOmikitPlugin.js +9 -0
- package/lib/commonjs/NativeOmikitPlugin.js.map +1 -0
- package/lib/commonjs/index.js +11 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/omi_audio_type.js +20 -0
- package/lib/commonjs/omi_audio_type.js.map +1 -0
- package/lib/commonjs/omi_local_camera.js +18 -2
- package/lib/commonjs/omi_local_camera.js.map +1 -1
- package/lib/commonjs/omi_remote_camera.js +18 -2
- package/lib/commonjs/omi_remote_camera.js.map +1 -1
- package/lib/commonjs/omi_start_call_status.js +30 -0
- package/lib/commonjs/omi_start_call_status.js.map +1 -1
- package/lib/commonjs/omikit.js +125 -14
- package/lib/commonjs/omikit.js.map +1 -1
- package/lib/module/NativeOmikitPlugin.js +3 -0
- package/lib/module/NativeOmikitPlugin.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/omi_audio_type.js +14 -0
- package/lib/module/omi_audio_type.js.map +1 -0
- package/lib/module/omi_local_camera.js +19 -2
- package/lib/module/omi_local_camera.js.map +1 -1
- package/lib/module/omi_remote_camera.js +19 -2
- package/lib/module/omi_remote_camera.js.map +1 -1
- package/lib/module/omi_start_call_status.js +30 -0
- package/lib/module/omi_start_call_status.js.map +1 -1
- package/lib/module/omikit.js +119 -15
- package/lib/module/omikit.js.map +1 -1
- package/omikit-plugin.podspec +26 -24
- package/package.json +11 -2
- package/src/NativeOmikitPlugin.ts +160 -0
- package/src/index.tsx +2 -1
- package/src/omi_audio_type.tsx +9 -0
- package/src/omi_local_camera.tsx +17 -3
- package/src/omi_remote_camera.tsx +17 -3
- package/src/omi_start_call_status.tsx +29 -10
- package/src/omikit.tsx +118 -28
- package/src/types/index.d.ts +111 -11
package/android/build.gradle
CHANGED
|
@@ -1,45 +1,3 @@
|
|
|
1
|
-
// buildscript {
|
|
2
|
-
// // Buildscript is evaluated before everything else so we can't use getExtOrDefault
|
|
3
|
-
// def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["OmikitPlugin_kotlinVersion"]
|
|
4
|
-
|
|
5
|
-
// repositories {
|
|
6
|
-
// google()
|
|
7
|
-
// mavenCentral()
|
|
8
|
-
// // maven {
|
|
9
|
-
// // url("https://vihatgroup.jfrog.io/artifactory/omi-voice/")
|
|
10
|
-
// // credentials {
|
|
11
|
-
// // username = "downloader"
|
|
12
|
-
// // password = "Omi@2022"
|
|
13
|
-
// // }
|
|
14
|
-
// // }
|
|
15
|
-
// }
|
|
16
|
-
|
|
17
|
-
// dependencies {
|
|
18
|
-
// classpath 'com.android.tools.build:gradle-api:7.1.2'
|
|
19
|
-
// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
20
|
-
// classpath 'com.google.dagger:hilt-android-gradle-plugin:2.39.1'
|
|
21
|
-
// classpath 'com.github.kezong:fat-aar:1.3.8'
|
|
22
|
-
// classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.29.3"
|
|
23
|
-
// classpath 'com.android.tools.build:gradle:4.0.0'
|
|
24
|
-
// }
|
|
25
|
-
// }
|
|
26
|
-
|
|
27
|
-
buildscript {
|
|
28
|
-
ext {
|
|
29
|
-
kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["OmikitPlugin_kotlinVersion"]
|
|
30
|
-
}
|
|
31
|
-
repositories {
|
|
32
|
-
google()
|
|
33
|
-
mavenCentral()
|
|
34
|
-
}
|
|
35
|
-
dependencies {
|
|
36
|
-
classpath "com.android.tools.build:gradle:8.1.2"
|
|
37
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
38
|
-
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.39.1'
|
|
39
|
-
classpath 'com.github.kezong:fat-aar:1.3.8'
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
1
|
def isNewArchitectureEnabled() {
|
|
44
2
|
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
|
45
3
|
}
|
|
@@ -48,7 +6,6 @@ apply plugin: 'com.android.library'
|
|
|
48
6
|
apply plugin: 'kotlin-android'
|
|
49
7
|
apply plugin: 'kotlin-parcelize'
|
|
50
8
|
|
|
51
|
-
|
|
52
9
|
if (isNewArchitectureEnabled()) {
|
|
53
10
|
apply plugin: "com.facebook.react"
|
|
54
11
|
}
|
|
@@ -70,10 +27,11 @@ android {
|
|
|
70
27
|
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
71
28
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
|
72
29
|
}
|
|
73
|
-
buildFeatures {
|
|
74
|
-
buildConfig = true
|
|
75
|
-
}
|
|
76
30
|
|
|
31
|
+
buildFeatures {
|
|
32
|
+
buildConfig = true
|
|
33
|
+
dataBinding = true
|
|
34
|
+
}
|
|
77
35
|
|
|
78
36
|
buildTypes {
|
|
79
37
|
release {
|
|
@@ -81,7 +39,7 @@ android {
|
|
|
81
39
|
}
|
|
82
40
|
}
|
|
83
41
|
|
|
84
|
-
|
|
42
|
+
lint {
|
|
85
43
|
disable "GradleCompatible"
|
|
86
44
|
}
|
|
87
45
|
|
|
@@ -90,47 +48,39 @@ android {
|
|
|
90
48
|
targetCompatibility JavaVersion.VERSION_17
|
|
91
49
|
}
|
|
92
50
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
jvmTarget = "17"
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
dataBinding {
|
|
100
|
-
enabled = true
|
|
51
|
+
kotlinOptions {
|
|
52
|
+
jvmTarget = "17"
|
|
101
53
|
}
|
|
102
54
|
}
|
|
103
55
|
|
|
104
|
-
|
|
105
56
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
dependencies {
|
|
112
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7"
|
|
57
|
+
kotlinOptions {
|
|
58
|
+
jvmTarget = "17"
|
|
59
|
+
}
|
|
113
60
|
}
|
|
114
61
|
|
|
115
|
-
|
|
116
|
-
|
|
117
62
|
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
118
63
|
|
|
119
64
|
dependencies {
|
|
120
|
-
|
|
121
|
-
// use for OMISDK
|
|
65
|
+
// OMISDK
|
|
122
66
|
implementation("androidx.work:work-runtime:2.8.1")
|
|
123
67
|
implementation "androidx.security:security-crypto:1.1.0-alpha06"
|
|
124
|
-
|
|
125
|
-
|
|
68
|
+
api "io.omicrm.vihat:omi-sdk:2.6.4"
|
|
69
|
+
|
|
70
|
+
// React Native — resolved from consumer's node_modules
|
|
71
|
+
implementation "com.facebook.react:react-native:+"
|
|
126
72
|
|
|
127
|
-
|
|
73
|
+
// Kotlin
|
|
128
74
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
75
|
+
|
|
76
|
+
// UI & Android
|
|
129
77
|
implementation "com.google.android.flexbox:flexbox:3.0.0"
|
|
130
78
|
implementation "androidx.appcompat:appcompat:1.6.1"
|
|
131
79
|
implementation "androidx.lifecycle:lifecycle-process:2.6.1"
|
|
132
80
|
implementation "com.google.android.material:material:1.9.0"
|
|
133
81
|
implementation "com.google.firebase:firebase-messaging-ktx:23.1.2"
|
|
82
|
+
|
|
83
|
+
// Network
|
|
134
84
|
implementation("com.squareup.retrofit2:retrofit:2.9.0") {
|
|
135
85
|
exclude module: 'okhttp'
|
|
136
86
|
}
|
|
@@ -140,13 +90,13 @@ dependencies {
|
|
|
140
90
|
implementation "com.squareup.okhttp3:logging-interceptor:4.9.1"
|
|
141
91
|
implementation "com.google.code.gson:gson:2.8.9"
|
|
142
92
|
|
|
143
|
-
|
|
93
|
+
// Image
|
|
144
94
|
implementation "com.squareup.picasso:picasso:2.8"
|
|
145
95
|
|
|
96
|
+
// Coroutines
|
|
146
97
|
def coroutines_version = '1.7.2'
|
|
147
98
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
|
|
148
99
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
|
|
149
|
-
|
|
150
100
|
}
|
|
151
101
|
|
|
152
102
|
if (isNewArchitectureEnabled()) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
OmikitPlugin_kotlinVersion=
|
|
1
|
+
OmikitPlugin_kotlinVersion=2.0.21
|
|
2
2
|
OmikitPlugin_minSdkVersion=24
|
|
3
|
-
OmikitPlugin_targetSdkVersion=
|
|
4
|
-
OmikitPlugin_compileSdkVersion=
|
|
5
|
-
OmikitPlugin_ndkversion=
|
|
3
|
+
OmikitPlugin_targetSdkVersion=35
|
|
4
|
+
OmikitPlugin_compileSdkVersion=35
|
|
5
|
+
OmikitPlugin_ndkversion=27.1.12297006
|