omikit-plugin 3.2.40 → 3.2.41

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
@@ -46,9 +46,6 @@ maven {
46
46
  }
47
47
  }
48
48
 
49
- dependencies {
50
- api 'vn.vihat.omicall:omi-sdk:2.3.12'
51
- }
52
49
  ```
53
50
  ```kotlin
54
51
  // gradle.properties
@@ -753,11 +753,15 @@ class OmikitPluginModule(reactContext: ReactApplicationContext?) :
753
753
  }
754
754
 
755
755
  fun sendEvent(eventName: String?, params: Any?) {
756
+ if (eventName == null) {
757
+ Log.e("OmikitPlugin", "eventName is null. Event cannot be emitted.")
758
+ return
759
+ }
756
760
  if (currentActivity != null) {
757
- currentActivity!!.runOnUiThread {
758
- reactApplicationContext.getJSModule(RCTNativeAppEventEmitter::class.java)
759
- .emit(eventName, params)
760
- }
761
+ currentActivity!!.runOnUiThread {
762
+ reactApplicationContext.getJSModule(RCTNativeAppEventEmitter::class.java)
763
+ .emit(eventName, params)
764
+ }
761
765
  }
762
766
  }
763
767
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omikit-plugin",
3
- "version": "3.2.40",
3
+ "version": "3.2.41",
4
4
  "description": "Omikit Plugin by ViHAT",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",