freerasp-react-native 5.2.3 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [5.3.0] - 2026-11-09
9
+
10
+ - Android SDK version: 19.3.1
11
+ - iOS SDK version: 8.0.1
12
+
13
+ ### React Native
14
+
15
+ #### Changed
16
+
17
+ - Android builds now request a license token from Talsec through the `app.talsec.plugin` Gradle plugin, applied by freeRASP automatically
18
+
19
+ #### Fixed
20
+
21
+ - Expo config plugin no longer fails when added to `app.json` without options
22
+
23
+ ### Android
24
+
25
+ #### Changed
26
+
27
+ - Changed Talsec integration from Maven dependency to the `app.talsec.plugin` Gradle plugin with `talsec { }` configuration block
28
+ - The Talsec Gradle plugin requires the app to build with Android Gradle Plugin 8.3 or newer
29
+
30
+ #### Fixed
31
+
32
+ - Root detection related bugs causing false positives
33
+
34
+
8
35
  ## [5.2.3] - 2026-10-05
9
36
 
10
37
  - Android SDK version: 19.2.3
@@ -6,6 +6,7 @@ buildscript {
6
6
  repositories {
7
7
  google()
8
8
  mavenCentral()
9
+ maven { url 'https://europe-west3-maven.pkg.dev/talsec-artifact-repository/plugin' }
9
10
  }
10
11
 
11
12
  dependencies {
@@ -13,6 +14,7 @@ buildscript {
13
14
  // noinspection DifferentKotlinGradleVersion
14
15
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
15
16
  classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
17
+ classpath 'app.talsec.plugin:talsec-security-plugin:1.1.0'
16
18
  }
17
19
  }
18
20
 
@@ -23,6 +25,7 @@ def isNewArchitectureEnabled() {
23
25
  apply plugin: "com.android.library"
24
26
  apply plugin: "kotlin-android"
25
27
  apply plugin: 'kotlinx-serialization'
28
+ apply plugin: 'app.talsec.plugin'
26
29
 
27
30
  if (isNewArchitectureEnabled()) {
28
31
  apply plugin: "com.facebook.react"
@@ -53,6 +56,11 @@ def getMaxVersion(name) {
53
56
  android {
54
57
  compileSdk getMaxVersion("compileSdk")
55
58
 
59
+ talsec {
60
+ sdkVersion = "19.3.1"
61
+ platform = "ReactNative"
62
+ }
63
+
56
64
  defaultConfig {
57
65
  minSdkVersion getIntegerDefault("minSdkVersion")
58
66
  targetSdkVersion getIntegerDefault("targetSdkVersion")
@@ -105,7 +113,6 @@ dependencies {
105
113
  implementation "com.facebook.react:react-native:$react_native_version"
106
114
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
107
115
  implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
108
- implementation "com.aheaditec.talsec.security:TalsecSecurity-Community-ReactNative:19.2.3"
109
116
  }
110
117
 
111
118
  if (isNewArchitectureEnabled()) {
@@ -1,5 +1,5 @@
1
1
  import { type ConfigPlugin } from '@expo/config-plugins';
2
2
  import { type PluginConfigType } from './pluginConfig';
3
- declare const _default: ConfigPlugin<PluginConfigType>;
3
+ declare const _default: ConfigPlugin<PluginConfigType | undefined>;
4
4
  export default _default;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../plugin/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;;AAiKvD,wBAA2E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../plugin/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;;AAoKvD,wBAA2E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freerasp-react-native",
3
- "version": "5.2.3",
3
+ "version": "5.3.0",
4
4
  "description": "React Native plugin for improving app security and threat monitoring on Android and iOS mobile devices.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -14,7 +14,7 @@
14
14
  "prettier": "prettier \"**/*.{ts,js}\"",
15
15
  "prepack": "bob build && yarn build:plugin",
16
16
  "build": "bob build",
17
- "test:plugin": "yarn build:plugin && node plugin/tests/iosSpm.test.js",
17
+ "test:plugin": "yarn build:plugin && node plugin/tests/iosSpm.test.js && node plugin/tests/pluginProps.test.js",
18
18
  "example": "yarn --cwd example",
19
19
  "bootstrap": "yarn example && yarn install && yarn example pods",
20
20
  "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build",
@@ -1,4 +1,4 @@
1
1
  import { type ConfigPlugin } from '@expo/config-plugins';
2
2
  import { type PluginConfigType } from './pluginConfig';
3
- declare const _default: ConfigPlugin<PluginConfigType>;
3
+ declare const _default: ConfigPlugin<PluginConfigType | undefined>;
4
4
  export default _default;
@@ -108,7 +108,7 @@ const withRnTalsecIos = (config, props) => {
108
108
  config = withFreeraspIosPodfile(config, { spmEnabled });
109
109
  return config;
110
110
  };
111
- const withRnTalsecApp = (config, props) => {
111
+ const withRnTalsecApp = (config, props = {}) => {
112
112
  config = withBuildscriptDependency(config);
113
113
  config = withAndroidMinSdkVersion(config, props);
114
114
  config = withAndroidR8Version(config, props);
@@ -0,0 +1,15 @@
1
+ /* eslint-env node */
2
+
3
+ const assert = require('assert').strict;
4
+ const withRnTalsecApp = require('../build').default;
5
+
6
+ const expoConfig = () => ({ name: 'example', slug: 'example' });
7
+
8
+ assert.doesNotThrow(() => withRnTalsecApp(expoConfig()));
9
+ assert.doesNotThrow(() => withRnTalsecApp(expoConfig(), undefined));
10
+ assert.doesNotThrow(() => withRnTalsecApp(expoConfig(), {}));
11
+ assert.doesNotThrow(() =>
12
+ withRnTalsecApp(expoConfig(), { android: { minSdkVersion: 26 } })
13
+ );
14
+
15
+ console.log('pluginProps tests passed');