From b5e361379faeac1e5fa5715ffa342b161ee8df54 Mon Sep 17 00:00:00 2001 From: Tomas Psota Date: Wed, 15 May 2024 12:57:46 +0200 Subject: [PATCH 1/3] fix(iOS): resolve bad access error --- src/ios/TalsecPlugin.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ios/TalsecPlugin.swift b/src/ios/TalsecPlugin.swift index 28392d3..b0fa8e3 100644 --- a/src/ios/TalsecPlugin.swift +++ b/src/ios/TalsecPlugin.swift @@ -3,11 +3,14 @@ import TalsecRuntime @objc(TalsecPlugin) class TalsecPlugin : CDVPlugin { public static var shared:TalsecPlugin? - let threatIdentifierList = (1...12).map { _ in Int.random(in: 100_000..<999_999_999) } + var threatIdentifierList: [Int] = (1...12).map { _ in Int.random(in: 100_000..<999_999_999) } override func pluginInitialize() { TalsecContext.context.commandDelegate = self.commandDelegate TalsecPlugin.shared = self + if (threatIdentifierList == nil) { + threatIdentifierList = (1...12).map { _ in Int.random(in: 100_000..<999_999_999) } + } } /** From cb64fa4bc1ca1d17a7e6fd19f516dcc88bceb31c Mon Sep 17 00:00:00 2001 From: Tomas Psota Date: Wed, 15 May 2024 12:58:09 +0200 Subject: [PATCH 2/3] chore(Android): remove namespace --- src/android/talsec.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/talsec.gradle b/src/android/talsec.gradle index fbf58cf..0f2bea6 100644 --- a/src/android/talsec.gradle +++ b/src/android/talsec.gradle @@ -13,7 +13,7 @@ android { srcDirs += 'src/main/kotlin' } } - if (project.android.hasProperty("namespace")) { + if (project.android.hasProperty("namespace") && project.android.namespace == null) { namespace("com.aheaditec.talsec.cordova") } } From f8ae2683715e8e36ad828901506badbad51c1415 Mon Sep 17 00:00:00 2001 From: Tomas Psota Date: Wed, 15 May 2024 13:01:45 +0200 Subject: [PATCH 3/3] chore(release): freeRASP 6.1.2 --- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- plugin.xml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34cd289..8832f24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +# freeRASP 6.1.2 + +### Android + +- ❗ Removed the talsec namespace that caused change of namespaces for whole app + +### iOS + +- ⚡ Fixed issue causing app crash with lower versions of `cordova-ios` plugin + # freeRASP 6.1.1 ### Android diff --git a/package.json b/package.json index 91e3d67..15f1c3a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-talsec-plugin-freerasp", - "version": "6.1.1", + "version": "6.1.2", "description": "Cordova plugin for improving app security and threat monitoring on Android and iOS mobile devices.", "cordova": { "id": "cordova-talsec-plugin-freerasp", diff --git a/plugin.xml b/plugin.xml index e17e38b..0248f42 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="6.1.2"> freerasp Talsec (info@talsec.app)