omikit-plugin 3.2.81 → 3.2.82
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 +14 -0
- package/android/build.gradle +2 -1
- package/android/gradle.properties +0 -2
- package/android/src/main/java/com/omikitplugin/OmikitPluginModule.kt +564 -94
- package/ios/CallProcess/CallManager.swift +9 -0
- package/lib/commonjs/omikit.js +41 -15
- package/lib/commonjs/omikit.js.map +1 -1
- package/lib/module/omikit.js +38 -15
- package/lib/module/omikit.js.map +1 -1
- package/omikit-plugin.podspec +1 -1
- package/package.json +12 -3
- package/src/omikit.tsx +49 -25
- package/src/types/index.d.ts +54 -54
package/README.md
CHANGED
|
@@ -275,6 +275,20 @@ class MainActivity : ReactActivity() {
|
|
|
275
275
|
}
|
|
276
276
|
```
|
|
277
277
|
|
|
278
|
+
```kotlin
|
|
279
|
+
import com.google.firebase.FirebaseApp;
|
|
280
|
+
|
|
281
|
+
// This is important because we push incoming calls via Firebase.
|
|
282
|
+
class MainApplication : Application() {
|
|
283
|
+
override fun onCreate() {
|
|
284
|
+
super.onCreate()
|
|
285
|
+
if (FirebaseApp.getApps(this).isEmpty()) {
|
|
286
|
+
FirebaseApp.initializeApp(this)
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
```
|
|
278
292
|
|
|
279
293
|
- ✨ Setup remote push notification: Only support Firebase for remote push notification.
|
|
280
294
|
|
package/android/build.gradle
CHANGED
|
@@ -120,7 +120,8 @@ dependencies {
|
|
|
120
120
|
// use for OMISDK
|
|
121
121
|
implementation("androidx.work:work-runtime:2.8.1")
|
|
122
122
|
implementation "androidx.security:security-crypto:1.1.0-alpha06"
|
|
123
|
-
api 'vn.vihat.omicall:omi-sdk:2.3.23'
|
|
123
|
+
// api 'vn.vihat.omicall:omi-sdk:2.3.23'
|
|
124
|
+
api "io.omicrm.vihat:omi-sdk:2.3.67"
|
|
124
125
|
|
|
125
126
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
126
127
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|