omikit-plugin 3.1.8 → 3.2.0

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.
@@ -104,13 +104,13 @@ dependencies {
104
104
  // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
105
105
  //noinspection GradleDynamicVersion
106
106
  // implementation "com.facebook.react:react-native"
107
- api 'vn.vihat.omicall:omi-sdk:2.0.45'
107
+ api 'vn.vihat.omicall:omi-sdk:2.0.47'
108
108
 
109
109
  implementation "com.facebook.react:react-native:+" // From node_modules
110
110
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
111
111
  // implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
112
- // implementation fileTree(include: ['*.jar'], dir: 'libs')
113
- // implementation files('OmiSDK.aar')
112
+ // implementation fileTree(include: ['*.jar'], dir: 'libs')
113
+ // implementation files('OmiSDK.aar')
114
114
  implementation "com.google.android.flexbox:flexbox:3.0.0"
115
115
  implementation "androidx.appcompat:appcompat:1.6.1"
116
116
  implementation "androidx.lifecycle:lifecycle-process:2.6.1"
@@ -320,6 +320,7 @@ class OmikitPluginModule(reactContext: ReactApplicationContext?) :
320
320
  val isVideo = data.getBoolean("isVideo") ?: false
321
321
  val phone = data.getString("phone")
322
322
  val firebaseToken = data.getString("fcmToken") as String
323
+ requestPermission(isVideo)
323
324
  withContext(Dispatchers.Default) {
324
325
  try {
325
326
  if (usrName != null && usrUuid != null && apiKey != null) {
@@ -331,13 +332,13 @@ class OmikitPluginModule(reactContext: ReactApplicationContext?) :
331
332
  isVideo = isVideo,
332
333
  firebaseToken
333
334
  )
335
+ promise.resolve(true)
334
336
  }
335
337
  } catch (_: Throwable) {
336
-
338
+ promise.resolve(loginResult)
337
339
  }
338
340
  }
339
- requestPermission(isVideo)
340
- promise.resolve(loginResult)
341
+
341
342
  }
342
343
  }
343
344
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omikit-plugin",
3
- "version": "3.1.8",
3
+ "version": "3.2.0",
4
4
  "description": "Omikit Plugin by ViHAT",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",