Skip to content

Commit a1e20b5

Browse files
martinzigraitompsotaclaude
authored
release: freeRASP 5.3.0 (#165)
* chore(android): bump Talsec SDK to 19.3.1 * feat(android): apply the Talsec Gradle plugin in host mode * fix(expo): accept the config plugin without options * release: freeRASP 5.3.0 (Android SDK 19.3.1) * feat(android): configure the Talsec plugin with sdkVersion and platform * docs(changelog): state the Android Gradle Plugin 8.3 requirement * chore: finalize the Talsec Gradle plugin at 1.1.0 Drop the internal plugin version from the changelog and the TODO next to the plugin reference, since 1.1.0 is the release version. * release: freeRASP 5.3.0 (Android SDK 19.3.1) Rebased onto master (5.2.3). Version set to 5.3.0 from package.json. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> * docs(changelog): use latest iOS SDK version 8.0.1 Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> * test(expo): run the plugin props test in test:plugin Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(changelog): set the release date to 2026-11-09 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Tomas Psota <to.psota@gmail.com> Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
1 parent 6a53ec6 commit a1e20b5

7 files changed

Lines changed: 58 additions & 6 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

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+
835
## [5.2.3] - 2026-10-05
936

1037
- Android SDK version: 19.2.3

‎android/build.gradle‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ buildscript {
66
repositories {
77
google()
88
mavenCentral()
9+
maven { url 'https://europe-west3-maven.pkg.dev/talsec-artifact-repository/plugin' }
910
}
1011

1112
dependencies {
1213
classpath "com.android.tools.build:gradle:7.2.1"
1314
// noinspection DifferentKotlinGradleVersion
1415
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1516
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
17+
classpath 'app.talsec.plugin:talsec-security-plugin:1.1.0'
1618
}
1719
}
1820

@@ -23,6 +25,7 @@ def isNewArchitectureEnabled() {
2325
apply plugin: "com.android.library"
2426
apply plugin: "kotlin-android"
2527
apply plugin: 'kotlinx-serialization'
28+
apply plugin: 'app.talsec.plugin'
2629

2730
if (isNewArchitectureEnabled()) {
2831
apply plugin: "com.facebook.react"
@@ -53,6 +56,11 @@ def getMaxVersion(name) {
5356
android {
5457
compileSdk getMaxVersion("compileSdk")
5558

59+
talsec {
60+
sdkVersion = "19.3.1"
61+
platform = "ReactNative"
62+
}
63+
5664
defaultConfig {
5765
minSdkVersion getIntegerDefault("minSdkVersion")
5866
targetSdkVersion getIntegerDefault("targetSdkVersion")
@@ -105,7 +113,6 @@ dependencies {
105113
implementation "com.facebook.react:react-native:$react_native_version"
106114
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
107115
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
108-
implementation "com.aheaditec.talsec.security:TalsecSecurity-Community-ReactNative:19.2.3"
109116
}
110117

111118
if (isNewArchitectureEnabled()) {

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "freerasp-react-native",
3-
"version": "5.2.3",
3+
"version": "5.3.0",
44
"description": "React Native plugin for improving app security and threat monitoring on Android and iOS mobile devices.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
@@ -14,7 +14,7 @@
1414
"prettier": "prettier \"**/*.{ts,js}\"",
1515
"prepack": "bob build && yarn build:plugin",
1616
"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",
1818
"example": "yarn --cwd example",
1919
"bootstrap": "yarn example && yarn install && yarn example pods",
2020
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build",

‎plugin/build/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { type ConfigPlugin } from '@expo/config-plugins';
22
import { type PluginConfigType } from './pluginConfig';
3-
declare const _default: ConfigPlugin<PluginConfigType>;
3+
declare const _default: ConfigPlugin<PluginConfigType | undefined>;
44
export default _default;

‎plugin/build/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const withRnTalsecIos = (config, props) => {
108108
config = withFreeraspIosPodfile(config, { spmEnabled });
109109
return config;
110110
};
111-
const withRnTalsecApp = (config, props) => {
111+
const withRnTalsecApp = (config, props = {}) => {
112112
config = withBuildscriptDependency(config);
113113
config = withAndroidMinSdkVersion(config, props);
114114
config = withAndroidR8Version(config, props);

‎plugin/src/index.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ const withRnTalsecIos: ConfigPlugin<PluginConfigType> = (config, props) => {
157157
return config;
158158
};
159159

160-
const withRnTalsecApp: ConfigPlugin<PluginConfigType> = (config, props) => {
160+
const withRnTalsecApp: ConfigPlugin<PluginConfigType | undefined> = (
161+
config,
162+
props: PluginConfigType = {}
163+
) => {
161164
config = withBuildscriptDependency(config);
162165
config = withAndroidMinSdkVersion(config, props);
163166
config = withAndroidR8Version(config, props);

‎plugin/tests/pluginProps.test.js‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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');

0 commit comments

Comments
 (0)