Skip to content

refactor(android): move plugin to the app.talsec.rasp.reactnative namespace - #171

Merged
tompsota merged 2 commits into
chore/android-sdk-20.0.1from
chore/android-namespace
Nov 11, 2026
Merged

tompsota merged 2 commits into
chore/android-sdk-20.0.1from
chore/android-namespace

Conversation

@tompsota

Copy link
Copy Markdown
Member

What's new

Moves the plugin's Android package from com.freeraspreactnative to app.talsec.rasp.reactnative, following the Android SDK's app.talsec.rasp namespace with the platform as the last segment. All four freeRASP plugins now follow the same scheme.

Moves android/src/main/java/com/freeraspreactnative to app/talsec/rasp/reactnative and updates the Gradle namespace, codegenJavaPackageName, the manifest and proguard-rules.pro.

The example apps keep their own application ids. The SDK ships no package-wide keep rules for app.talsec.rasp, so plugin classes are still obfuscated, and no SDK class clashes with the new package.

Merging

This PR is stacked on #170 (chore/android-sdk-20.0.1) because #170 adds new imports of the old package. A branch cut from master would merge without conflicts but fail to compile. Either merge this into #170 first, or merge #170 and then this one (GitHub retargets it to master). Squash-merge is recommended: the first commit only moves files and doesn't compile on its own.

Testing

  • Android example app builds against SDK 20.0.1. Autolinking resolves import app.talsec.rasp.reactnative.FreeraspReactNativePackage (npx react-native config). Apps that register the package manually need the new import; this is noted in the changelog.
  • No references to the old package remain in the plugin sources or build config
  • Not re-run on the emulator; this change only renames packages

🤖 Generated with Claude Code

tompsota and others added 2 commits November 11, 2026 10:56
Align the Android package of the plugin with the Android SDK's app.talsec.rasp,
adding the platform as the last segment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Completes the move of the plugin sources: package declarations, imports,
Gradle namespace and build configuration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tompsota
tompsota merged commit 8023a65 into chore/android-sdk-20.0.1 Nov 11, 2026
@tompsota
tompsota deleted the chore/android-namespace branch November 11, 2026 17:30
tompsota added a commit that referenced this pull request Nov 13, 2026
* release: freeRASP 5.4.0 (Android SDK 20.0.1)

Bump the Android SDK to 20.0.1 (app.talsec.rasp:TalsecRasp-Community-ReactNative)
and expose its new features:

- ongoing call detection: ongoingCall threat action with CallState,
  startOngoingCallDetection/stopOngoingCallDetection
- screen control blocking: blockScreenControl/isScreenControlBlocked
- overlay windows hiding: blockOverlayWindows/isOverlayWindowsBlocked
- criticalChecksFinished/postponedChecksFinished execution states

The new threat and execution-state identifiers and the call-state channel
key are Android only; the TypeScript lists are branched per platform so the
iOS identifier counts stay unchanged.

allChecksFinished is now driven by the SDK's onFastChecksFinished, which
fires where the removed onAllChecksFinished used to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: reword the Maven coordinates changelog entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat!: rename allChecksFinished to fastChecksFinished

The execution state that fires when the fast (standard) checks complete is
renamed on all platforms to match the Android SDK's onFastChecksFinished. On
iOS it is driven by the SDK's onAllChecksFinished. This is a breaking change,
so the package major version is bumped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: drop Breaking markers from Android SDK changes absorbed by the plugin

The plugin hides these native API changes from its users, so they move from
the Android Breaking Changes section to Changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: drop Android changelog entries already listed in the plugin section

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* example: show the ongoing call state (Not detected, Started, Ongoing, Stopped)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(ios): send placeholder threat channel keys for Android-only payloads

iOS now sends placeholder keys for malware and ongoing call, so the threat
channel data has the same length on both platforms and the JS check no longer
branches by platform.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(android): move plugin to the app.talsec.rasp.reactnative namespace (#171)

* refactor(android): move plugin to the app.talsec.rasp namespace

Align the Android package of the plugin with the Android SDK's app.talsec.rasp,
adding the platform as the last segment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(android): update package names to app.talsec.rasp

Completes the move of the plugin sources: package declarations, imports,
Gradle namespace and build configuration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* 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>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant