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.
Files changed (50) hide show
  1. package/README.md +994 -1217
  2. package/android/build.gradle +22 -72
  3. package/android/gradle.properties +4 -4
  4. package/android/src/main/java/com/omikitplugin/FLLocalCameraModule.kt +1 -1
  5. package/android/src/main/java/com/omikitplugin/FLRemoteCameraModule.kt +1 -1
  6. package/android/src/main/java/com/omikitplugin/OmikitPluginModule.kt +326 -356
  7. package/android/src/main/java/com/omikitplugin/constants/constant.kt +2 -1
  8. package/ios/CallProcess/CallManager.swift +45 -35
  9. package/ios/Constant/Constant.swift +1 -0
  10. package/ios/Library/OmikitPlugin.m +75 -1
  11. package/ios/Library/OmikitPlugin.swift +199 -16
  12. package/ios/OmikitPlugin-Protocol.h +161 -0
  13. package/lib/commonjs/NativeOmikitPlugin.js +9 -0
  14. package/lib/commonjs/NativeOmikitPlugin.js.map +1 -0
  15. package/lib/commonjs/index.js +11 -0
  16. package/lib/commonjs/index.js.map +1 -1
  17. package/lib/commonjs/omi_audio_type.js +20 -0
  18. package/lib/commonjs/omi_audio_type.js.map +1 -0
  19. package/lib/commonjs/omi_local_camera.js +18 -2
  20. package/lib/commonjs/omi_local_camera.js.map +1 -1
  21. package/lib/commonjs/omi_remote_camera.js +18 -2
  22. package/lib/commonjs/omi_remote_camera.js.map +1 -1
  23. package/lib/commonjs/omi_start_call_status.js +30 -0
  24. package/lib/commonjs/omi_start_call_status.js.map +1 -1
  25. package/lib/commonjs/omikit.js +125 -14
  26. package/lib/commonjs/omikit.js.map +1 -1
  27. package/lib/module/NativeOmikitPlugin.js +3 -0
  28. package/lib/module/NativeOmikitPlugin.js.map +1 -0
  29. package/lib/module/index.js +1 -0
  30. package/lib/module/index.js.map +1 -1
  31. package/lib/module/omi_audio_type.js +14 -0
  32. package/lib/module/omi_audio_type.js.map +1 -0
  33. package/lib/module/omi_local_camera.js +19 -2
  34. package/lib/module/omi_local_camera.js.map +1 -1
  35. package/lib/module/omi_remote_camera.js +19 -2
  36. package/lib/module/omi_remote_camera.js.map +1 -1
  37. package/lib/module/omi_start_call_status.js +30 -0
  38. package/lib/module/omi_start_call_status.js.map +1 -1
  39. package/lib/module/omikit.js +119 -15
  40. package/lib/module/omikit.js.map +1 -1
  41. package/omikit-plugin.podspec +26 -24
  42. package/package.json +11 -2
  43. package/src/NativeOmikitPlugin.ts +160 -0
  44. package/src/index.tsx +2 -1
  45. package/src/omi_audio_type.tsx +9 -0
  46. package/src/omi_local_camera.tsx +17 -3
  47. package/src/omi_remote_camera.tsx +17 -3
  48. package/src/omi_start_call_status.tsx +29 -10
  49. package/src/omikit.tsx +118 -28
  50. package/src/types/index.d.ts +111 -11
@@ -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
- lintOptions {
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
- kotlinOptions {
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
- kotlinOptions {
107
- jvmTarget = "17"
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
- // api 'vn.vihat.omicall:omi-sdk:2.3.23'
125
- api "io.omicrm.vihat:omi-sdk:2.5.17"
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
- implementation "com.facebook.react:react-native:+" // From node_modules
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
- implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
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.8.20
1
+ OmikitPlugin_kotlinVersion=2.0.21
2
2
  OmikitPlugin_minSdkVersion=24
3
- OmikitPlugin_targetSdkVersion=33
4
- OmikitPlugin_compileSdkVersion=33
5
- OmikitPlugin_ndkversion=21.4.7075529
3
+ OmikitPlugin_targetSdkVersion=35
4
+ OmikitPlugin_compileSdkVersion=35
5
+ OmikitPlugin_ndkversion=27.1.12297006
@@ -18,7 +18,7 @@ class FLLocalCameraModule(reactContext: ReactApplicationContext, localViewManage
18
18
  lateinit var localViewManager : FLLocalCameraView
19
19
 
20
20
  override fun getName(): String {
21
- return "FLLocalCameraView"
21
+ return "FLLocalCameraModule"
22
22
  }
23
23
 
24
24
  init {
@@ -16,7 +16,7 @@ class FLRemoteCameraModule(reactContext: ReactApplicationContext, remoteViewMana
16
16
  var cameraView: TextureView
17
17
 
18
18
  override fun getName(): String {
19
- return "FLRemoteCameraView"
19
+ return "FLRemoteCameraModule"
20
20
  }
21
21
 
22
22
  init {