You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fa3757c
Browse filesBrowse the repository at this point in the historyBrowse files
feat!: unify the public API with the other freeRASP plugins (#172)
* feat!: unify the public API with the other freeRASP plugins
- TalsecIosConfig.appBundleId (string) -> appBundleIds (string[]), as in the
iOS SDK
- methods that resolved with status strings or constants resolve to void
- all methods reject with TalsecError carrying a stable code, including
Android-only methods called on iOS
- onInvalidCallback and removeListenerForEvent are no longer exported;
abortApp is the only exported internal helper
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat: return start status and errors from useFreeRasp
useFreeRasp returns { started, error } instead of only logging failures, so
apps can react when the listeners can't be registered or freeRASP fails to
start.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(types): type threat and execution state actions as returning void
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
### Breaking
14
14
15
15
-`allChecksFinished` RASP execution state action renamed to `fastChecksFinished`. On Android, it is triggered when the fast checks are completed, while the postponed checks may still run; on iOS, when all checks are completed
16
+
-`TalsecIosConfig.appBundleId` (string) replaced by `appBundleIds` (string[]), matching the iOS SDK
17
+
- Methods that resolved with a status string or a constant now resolve to `void`: `talsecStart`, `addToWhitelist`, `blockScreenCapture`, `blockScreenControl`, `startOngoingCallDetection`, `stopOngoingCallDetection`, `storeExternalId`, `removeExternalId`
18
+
- All methods now reject with `TalsecError` (`code`: `talsec-failure`, `unsupported-platform`, `configuration-exception`, `external-id-failure`, `malware-failure`) instead of native errors or plain strings
19
+
-`onInvalidCallback` and `removeListenerForEvent` are no longer exported; use `abortApp` to terminate the app
16
20
17
21
### React Native
18
22
19
23
#### Added
20
24
25
+
-`useFreeRasp` returns `{ started, error }`; `error` is the `TalsecError` that prevented the listeners from being registered or freeRASP from starting, which was previously only logged to the console
21
26
-`ongoingCall` threat action with the new `CallState` type (`'STARTED' | 'ONGOING' | 'STOPPED'`), driven by `startOngoingCallDetection()` and `stopOngoingCallDetection()` (Android only)
22
27
-`blockScreenControl()` and `isScreenControlBlocked()` to prevent accessibility services from reading or controlling the app screen (Android only)
23
28
-`blockOverlayWindows()` and `isOverlayWindowsBlocked()` to hide overlay windows of other apps (Android 12+ only, requires the `HIDE_OVERLAY_WINDOWS` permission)
@@ -27,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
27
32
28
33
- Android package (namespace) of the plugin renamed from `com.freeraspreactnative` to `app.talsec.rasp.reactnative`, following the Android SDK's `app.talsec.rasp` (update the import if you register `FreeraspReactNativePackage` manually)
29
34
- On Android, `isScreenCaptureBlocked()` reports the protection state of the current activity
35
+
- Threat and RASP execution state actions are typed as returning `void` instead of `any`
0 commit comments