omikit-plugin 2.2.2 → 2.2.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
CHANGED
|
@@ -300,10 +300,6 @@ if (@available(iOS 10.0, *)) {
|
|
|
300
300
|
configPushNotification({
|
|
301
301
|
notificationIcon : "calling_face", //notification icon on Android
|
|
302
302
|
prefix : "Cuộc gọi tới từ: ",
|
|
303
|
-
declineTitle : "Từ chối",
|
|
304
|
-
acceptTitle : "Chấp nhận",
|
|
305
|
-
acceptBackgroundColor : "#FF3700B3",
|
|
306
|
-
declineBackgroundColor : "#FF000000",
|
|
307
303
|
incomingBackgroundColor : "#FFFFFFFF",
|
|
308
304
|
incomingAcceptButtonImage : "join_call", //image name
|
|
309
305
|
incomingDeclineButtonImage : "hangup", //image name
|
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.2.
|
|
99
|
+
api 'vn.vihat.omicall:omi-sdk:1.2.6'
|
|
100
100
|
|
|
101
101
|
implementation 'androidx.core:core-ktx:1.7.0'
|
|
102
102
|
implementation 'androidx.fragment:fragment-ktx:1.4.0'
|
|
@@ -72,7 +72,6 @@ class OmikitPluginModule(reactContext: ReactApplicationContext?) :
|
|
|
72
72
|
startTime: Long,
|
|
73
73
|
transactionId: String?,
|
|
74
74
|
) {
|
|
75
|
-
OmiClient.instance.changeLocalCameraOrientation(0)
|
|
76
75
|
Handler(Looper.getMainLooper()).postDelayed({
|
|
77
76
|
Log.d("OmikitReactNative", "onCallEstablished")
|
|
78
77
|
val map: WritableMap = WritableNativeMap()
|
|
@@ -141,24 +140,15 @@ class OmikitPluginModule(reactContext: ReactApplicationContext?) :
|
|
|
141
140
|
currentActivity?.runOnUiThread {
|
|
142
141
|
val notificationIcon = data.getString("notificationIcon")
|
|
143
142
|
val prefix = data.getString("prefix")
|
|
144
|
-
val declineTitle = data.getString("declineTitle")
|
|
145
|
-
val acceptTitle = data.getString("acceptTitle")
|
|
146
|
-
val acceptBackgroundColor = data.getString("acceptBackgroundColor")
|
|
147
|
-
val declineBackgroundColor = data.getString("declineBackgroundColor")
|
|
148
143
|
val incomingBackgroundColor = data.getString("incomingBackgroundColor")
|
|
149
144
|
val incomingAcceptButtonImage = data.getString("incomingAcceptButtonImage")
|
|
150
145
|
val incomingDeclineButtonImage = data.getString("incomingDeclineButtonImage")
|
|
151
146
|
val prefixMissedCallMessage = data.getString("prefixMissedCallMessage")
|
|
152
|
-
val missedCallTitle = data.getString("missedCallTitle")
|
|
153
147
|
val backImage = data.getString("backImage")
|
|
154
148
|
val userImage = data.getString("userImage")
|
|
155
149
|
OmiClient.instance.configPushNotification(
|
|
156
150
|
notificationIcon = notificationIcon ?: "",
|
|
157
151
|
prefix = prefix ?: "Cuộc gọi tới từ: ",
|
|
158
|
-
declineTitle = declineTitle ?: "Từ chối",
|
|
159
|
-
acceptTitle = acceptTitle ?: "Chấp nhận",
|
|
160
|
-
acceptBackgroundColor = acceptBackgroundColor ?: "#FF3700B3",
|
|
161
|
-
declineBackgroundColor = declineBackgroundColor ?: "#FF000000",
|
|
162
152
|
incomingBackgroundColor = incomingBackgroundColor ?: "#FFFFFFFF",
|
|
163
153
|
incomingAcceptButtonImage = incomingAcceptButtonImage ?: "join_call",
|
|
164
154
|
incomingDeclineButtonImage = incomingDeclineButtonImage ?: "hangup",
|