Skip to content

Commit 9f0d787

Browse files
committed
feat: enhance listener logic
1 parent bd1f5cc commit 9f0d787

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [4.5.2] - 2026-03-24
9+
10+
- Android SDK version: 18.0.4
11+
- iOS SDK version: 6.14.1
12+
13+
### React Native
14+
15+
#### Cahnged
16+
17+
- Enhanced event dispatchers logic
18+
819
## [4.5.1] - 2026-03-16
920

1021
- Android SDK version: 18.0.4

android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class FreeraspReactNativeModule(private val reactContext: ReactApplicationContex
7171
override fun initialize() {
7272
reactContext.addLifecycleEventListener(lifecycleListener)
7373
initializeEventKeys()
74-
PluginThreatHandler.initializePluginListener(PluginListener(reactContext))
7574
super.initialize()
7675
}
7776

android/src/main/java/com/freeraspreactnative/PluginThreatHandler.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ import com.freeraspreactnative.events.ThreatEvent
1010

1111
internal object PluginThreatHandler {
1212

13-
fun initializePluginListener(listener: FreeraspReactNativeModule.PluginListener) {
14-
ThreatDispatcher.listener = listener
15-
ExecutionStateDispatcher.listener = listener
16-
}
17-
1813
private val threatDetected = object : ThreatListener.ThreatDetected() {
1914

2015
override fun onRootDetected() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "freerasp-react-native",
3-
"version": "4.5.1",
3+
"version": "4.5.2",
44
"description": "React Native plugin for improving app security and threat monitoring on Android and iOS mobile devices.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)