diff --git a/CHANGELOG.md b/CHANGELOG.md index 080e33f..a0fae39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [4.3.2] - 2025-01-03 + +- Android SDK version: 17.0.1 +- iOS SDK version: 6.13.0 + +### React Native + +#### Fixed + +- Resolved potential NullPointerException when execution state events are being sent + ## [4.3.1] - 2025-12-16 - Android SDK version: 17.0.1 diff --git a/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt b/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt index d1c5807..746a16b 100644 --- a/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt +++ b/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt @@ -59,6 +59,7 @@ class FreeraspReactNativeModule(private val reactContext: ReactApplicationContex init { appReactContext = reactContext reactContext.addLifecycleEventListener(lifecycleListener) + initializeEventKeys() } @ReactMethod @@ -89,6 +90,12 @@ class FreeraspReactNativeModule(private val reactContext: ReactApplicationContex } } + // Trigger lazy initialization of the freeRASP events + private fun initializeEventKeys() { + ThreatEvent.ALL_EVENTS + RaspExecutionStateEvent.ALL_EVENTS + } + /** * Method to get the random identifiers of callbacks */ diff --git a/package.json b/package.json index 4c25405..acfff88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "freerasp-react-native", - "version": "4.3.1", + "version": "4.3.2", "description": "React Native plugin for improving app security and threat monitoring on Android and iOS mobile devices.", "main": "lib/commonjs/index", "module": "lib/module/index",