omikit-plugin 2.2.1 → 2.2.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
CHANGED
|
@@ -298,6 +298,7 @@ if (@available(iOS 10.0, *)) {
|
|
|
298
298
|
import { configPushNotification } from 'omikit-plugin';
|
|
299
299
|
|
|
300
300
|
configPushNotification({
|
|
301
|
+
notificationIcon : "calling_face", //notification icon on Android
|
|
301
302
|
prefix : "Cuộc gọi tới từ: ",
|
|
302
303
|
declineTitle : "Từ chối",
|
|
303
304
|
acceptTitle : "Chấp nhận",
|
package/android/build.gradle
CHANGED
|
@@ -96,7 +96,7 @@ dependencies {
|
|
|
96
96
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
97
97
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
98
98
|
|
|
99
|
-
api 'vn.vihat.omicall:omi-sdk:1.1
|
|
99
|
+
api 'vn.vihat.omicall:omi-sdk:1.2.1'
|
|
100
100
|
|
|
101
101
|
implementation 'androidx.core:core-ktx:1.7.0'
|
|
102
102
|
implementation 'androidx.fragment:fragment-ktx:1.4.0'
|
|
@@ -51,7 +51,7 @@ class OmikitPluginModule(reactContext: ReactApplicationContext?) :
|
|
|
51
51
|
val map: WritableMap = WritableNativeMap()
|
|
52
52
|
val timeStartToAnswer = call["time_start_to_answer"] as Long?
|
|
53
53
|
val timeEnd = call["time_end"] as Long
|
|
54
|
-
map.putString("transaction_id", call["transaction_id"] as String)
|
|
54
|
+
map.putString("transaction_id", call["transaction_id"] as String?)
|
|
55
55
|
map.putString("direction", call["direction"] as String)
|
|
56
56
|
map.putString("source_number", call["source_number"] as String)
|
|
57
57
|
map.putString("destination_number", call["destination_number"] as String)
|
|
@@ -139,6 +139,7 @@ class OmikitPluginModule(reactContext: ReactApplicationContext?) :
|
|
|
139
139
|
@ReactMethod
|
|
140
140
|
fun configPushNotification(data: ReadableMap, promise: Promise) {
|
|
141
141
|
currentActivity?.runOnUiThread {
|
|
142
|
+
val notificationIcon = data.getString("notificationIcon")
|
|
142
143
|
val prefix = data.getString("prefix")
|
|
143
144
|
val declineTitle = data.getString("declineTitle")
|
|
144
145
|
val acceptTitle = data.getString("acceptTitle")
|
|
@@ -152,6 +153,7 @@ class OmikitPluginModule(reactContext: ReactApplicationContext?) :
|
|
|
152
153
|
val backImage = data.getString("backImage")
|
|
153
154
|
val userImage = data.getString("userImage")
|
|
154
155
|
OmiClient.instance.configPushNotification(
|
|
156
|
+
notificationIcon = notificationIcon ?: "",
|
|
155
157
|
prefix = prefix ?: "Cuộc gọi tới từ: ",
|
|
156
158
|
declineTitle = declineTitle ?: "Từ chối",
|
|
157
159
|
acceptTitle = acceptTitle ?: "Chấp nhận",
|
|
@@ -312,7 +314,7 @@ class OmikitPluginModule(reactContext: ReactApplicationContext?) :
|
|
|
312
314
|
val map: WritableMap = WritableNativeMap()
|
|
313
315
|
val timeStartToAnswer = call["time_start_to_answer"] as Long?
|
|
314
316
|
val timeEnd = call["time_end"] as Long
|
|
315
|
-
map.putString("transaction_id", call["transaction_id"] as String)
|
|
317
|
+
map.putString("transaction_id", call["transaction_id"] as String?)
|
|
316
318
|
map.putString("direction", call["direction"] as String)
|
|
317
319
|
map.putString("source_number", call["source_number"] as String)
|
|
318
320
|
map.putString("destination_number", call["destination_number"] as String)
|
package/omikit-plugin.podspec
CHANGED