Skip to content

Commit

Permalink
Merge pull request #29 from talsec/fix-cordova-ios-issue
Browse files Browse the repository at this point in the history
Fix cordova ios issue
  • Loading branch information
xprikryl2 committed May 16, 2024
2 parents bd75905 + f8ae268 commit 60e3be8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
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": "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",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-talsec-plugin-freerasp"
version="6.1.1">
version="6.1.2">

<name>freerasp</name>
<author>Talsec ([email protected])</author>
Expand Down
2 changes: 1 addition & 1 deletion src/android/talsec.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
5 changes: 4 additions & 1 deletion src/ios/TalsecPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}
}

/**
Expand Down

0 comments on commit 60e3be8

Please sign in to comment.