Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

## [2.4.1] - 2026-02-13

- Android SDK version: 18.0.2
- iOS SDK version: 6.13.0

### Capacitor

#### Fixed

- Resolved potential NullPointerException when execution state events are being sent

## [2.4.0] - 2026-02-13

- Android SDK version: 18.0.2
Expand Down
11 changes: 11 additions & 0 deletions android/src/main/java/com/aheaditec/freerasp/FreeraspPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ class FreeraspPlugin : Plugin() {

private var registered = true

override fun load() {
initializeEventKeys()
super.load()
}

@PluginMethod
fun talsecStart(call: PluginCall) {
val config = call.getObject("config")
Expand Down Expand Up @@ -107,6 +112,12 @@ class FreeraspPlugin : Plugin() {
backgroundHandlerThread.quitSafely()
}

// Trigger lazy initialization of the freeRASP events
private fun initializeEventKeys() {
ThreatEvent.ALL_EVENTS
RaspExecutionStateEvent.ALL_EVENTS
}

/**
* Method to get the random identifiers of callbacks
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capacitor-freerasp",
"version": "2.4.0",
"version": "2.4.1",
"description": "Capacitor plugin for improving app security and threat monitoring on Android and iOS mobile devices",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down
Loading