Skip to content

feat: add screenshot blocking protection for ios, add external id (freeRASP 4.1.0) #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 21, 2025
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
43 changes: 40 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,43 @@ 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).

## [4.0.0] - 2024-03-25
## [4.1.0] - 2025-05-15

- iOS SDK version: 6.11.0
- Android SDK version: 15.1.0

### React Native

#### Added

- Added interface for screenshot / screen recording blocking on iOS
- Added interface for external ID storage

### Android

#### Added

- Added externalId to put an integrator-specified custom identifier into the logs.
- Added eventId to the logs, which is unique per each log. It allows traceability of the same log across various systems.

#### Changed

- New root detection checks added

### iOS

#### Added

- Added externalId to put an integrator-specified custom identifier into the logs.
- Added eventId to the logs, which is unique per each log. It allows traceability of the same log across various systems.
- Screen capture protection obscuring app content in screenshots and screen recordings preventing unauthorized content capture. Refer to the freeRASP integration documentation.

#### Fixed

- Resolved an issue with the screen recording detection.
- Resolved an issue that prevented Xcode tests from running correctly.

## [4.0.0] - 2025-03-25

- iOS SDK version: 6.9.0
- Android SDK version: 15.0.0
Expand All @@ -28,6 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
#### Fixed

- ANR issues bug-fixing

### iOS

#### Added
Expand All @@ -38,7 +75,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Deep signing of the OpenSSL binaries.

## [3.14.1] - 2024-03-10
## [3.14.1] - 2025-03-10

- iOS SDK version: 6.8.0
- Android SDK version: 14.0.1
Expand All @@ -49,7 +86,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Take Android targetSdkVersion, compileSdkVersion from plugin only

## [3.14.0] - 2024-03-05
## [3.14.0] - 2025-03-05

- iOS SDK version: 6.8.0
- Android SDK version: 14.0.1
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ dependencies {
implementation "com.facebook.react:react-native:$react_native_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
implementation "com.aheaditec.talsec.security:TalsecSecurity-Community-ReactNative:15.0.0"
implementation "com.aheaditec.talsec.security:TalsecSecurity-Community-ReactNative:15.1.0"
}

if (isNewArchitectureEnabled()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,21 @@ class FreeraspReactNativeModule(private val reactContext: ReactApplicationContex
}
}

@ReactMethod
fun storeExternalId(
externalId: String, promise: Promise
) {
try {
Talsec.storeExternalId(reactContext, externalId)
promise.resolve("OK - Store external ID")
} catch (e: Exception) {
promise.reject(
"NativePluginError",
"Error during storeExternalId operation in Talsec Native Plugin"
)
}
}

private fun buildTalsecConfig(config: ReadableMap): TalsecConfig {
val androidConfig = config.getMapThrowing("androidConfig")
val packageName = androidConfig.getStringThrowing("packageName")
Expand Down
4 changes: 3 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"@react-native-material/core": "^1.3.7",
"react": "19.0.0",
"react-native": "0.78.0",
"react-native-alert-notification": "^0.4.2",
"react-native-safe-area-context": "^5.4.0",
"react-native-svg": "^15.11.1"
},
"devDependencies": {
Expand All @@ -27,8 +29,8 @@
"@react-native/eslint-config": "0.78.0",
"@react-native/metro-config": "0.78.0",
"@react-native/typescript-config": "0.78.0",
"babel-plugin-module-resolver": "^5.0.2",
"@types/react": "^19.0.0",
"babel-plugin-module-resolver": "^5.0.2",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.3",
"metro-react-native-babel-preset": "^0.77.0",
Expand Down
Loading
Loading